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 3000What happens next?
hostc creates a temporary tunnel, opens binary data channels, and prints a public HTTPS URL that forwards to your local service.
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/hostcWhat 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.