hostc
Localhost, anywhere.
One command gives your dev server a public HTTPS URL. WebSockets and hot reload included.
Free, open source, no account.
hostc.dev · 简体中文
## Quick start
Start your app, then point hostc at its port:
```sh
npx hostc@latest 3000
```
```text
https://k7m2xq9pa4dn.hostc.app → http://localhost:3000
Anyone with this URL can reach your local server. Press Ctrl+C to stop.
```
Open the URL on any device. Every request shows up in your terminal as it arrives.
hostc is free and open source. If it helps you, [a star on GitHub](https://github.com/akazwz/hostc) helps
other developers find it, and it's the best encouragement for the project.
## Why hostc
- **Nothing to set up.** No sign-up, no auth token, no binary to download. If you have Node.js,
you have hostc.
- **Visitors see your app.** No warning page to click through before they reach it.
- **Hot reload works.** WebSockets pass straight through, so Vite, Next.js and friends update
every open device the moment you save. Server-Sent Events stream as they are produced.
- **Dev servers accept it as is.** Requests arrive addressed to localhost and redirects point back
to the public URL, so there is no allowed-hosts setting to change.
- **The link survives.** Network drops and server restarts don't change the URL; hostc reconnects
on its own.
- **Free and open source.** The server is a Cloudflare Worker you can also run on your own domain.
## Use it to
- share something you built with an AI coding tool before you deploy it anywhere,
- show work in progress to a teammate or a client,
- test webhooks from Stripe, GitHub or Slack against the code on your machine,
- try your site on a real phone, with hot reload,
- let a coding agent share what it built. Point the agent at
[hostc.dev/llms.txt](https://hostc.dev/llms.txt) and it knows how to run hostc and read the URL.
## Usage
```text
hostc