hostc
hostc docs

Create a public tunnel in one command.

hostc exposes local HTTP and WebSocket services through a temporary public HTTPS URL. Start with the CLI, then use the SDK when you need tunnels inside your own product.

Create your first tunnel

Run hostc against a local port. Use @latest while hostc is in preview so the CLI matches the current server protocol.

Recommended
npx hostc@latest 3000

Use hostc from an agent

Install the hostc public preview skill when your agent needs to expose a local app, test a webhook against localhost, or share a temporary preview URL.

Install skill
npx skills add akazwz/hostc

What the skill does

It tells the agent to prefer npx hostc@latest <port>, wait for the public URL, and keep the process running while the preview is needed.

How to stop

Terminate the running hostc process. In an interactive terminal this is usually Ctrl+C. If the agent started hostc in the background, ask it to stop or kill that process.

Where to go next

Use the CLI for local development workflows. Use the SDK when hostc should be embedded in another app.

Use the CLI

Expose localhost:3000, configure a custom server URL, show a QR code, or run diagnostics before opening a tunnel.

Embed the SDK

Install @hostc/client and create tunnels from Node.js, desktop apps, daemons, or your own command-line tools.