Real HTTPS addresses for your local dev servers
dcp gives each app a name on your machine and, when you need one, a link that works from anywhere: for webhooks, OAuth callbacks, your phone and your teammates. One small open-source binary, on top of Tailscale.
~/acme/web $ npm run dev VITE ready in 412 ms ➜ Local: http://localhost:5173/~/acme $ dcp share✓ tailscale online https://bigfoot.tail1234.ts.net, anyone with a link (2 apps)~/acme $ dcp lsNAME PORT PROVIDER STATE URLweb.acme 5173 local up https://web.acme.localhostweb.acme 5173 tailscale online https://bigfoot.tail1234.ts.net/web/api.acme 4100 local up https://api.acme.localhostapi.acme 4100 tailscale online https://bigfoot.tail1234.ts.net/api/
A browser on your Mac opens https://api.acme.localhost; the dcp proxy on port 443 passes the request to the app on 127.0.0.1:4417. A Stripe webhook, your phone or a teammate opens https://bigfoot.tail1234.ts.net/api/; Tailscale Funnel ends TLS on your Mac and dcp sends /api/ to the same app.
Two addresses, taken apart
Your app keeps listening on a plain local port. dcp puts a name in front of it on your machine, and Tailscale carries the online link to the same port. Use either side alone, or both. The technical details are a page of their own.
https://api.acme.localhost
- https://
- A real certificate your browser and curl trust, signed on this machine.
- api.acme
- The project folder's name, or the one in its config. You never type a port again.
- .localhost
- Reachable only from this machine.
dcphttps://bigfoot.tail1234.ts.net/api/webhooks/stripe
- https://
- Tailscale's certificate, valid everywhere.
- bigfoot.tail1234.ts.net
- Your machine on your Tailscale network. It stays the same, so links you register keep working.
- /api/
- The project folder the dev server runs from, found by port.
- webhooks/stripe
- The rest of the path reaches your app as is.
dcpWhat it is for
Pick the problem you have. Each one has an address that solves it.
Stripe, GitHub or Slack has to call your laptop
Register the endpoint once. It is the same URL tomorrow, after a reboot, on any network. Webhooks
https://bigfoot.tail1234.ts.net/api/webhooks/stripeYour sign-in provider wants a fixed callback URL
Google and GitHub accept it as a redirect URI, like a deployed site. OAuth callbacks
https://bigfoot.tail1234.ts.net/web/auth/callbackSecure cookies, service workers and passkeys need HTTPS
A trusted certificate on your own machine, so the browser treats the app like production. Local HTTPS names
https://app.acme.localhostThree services, and nobody remembers which port is which
Each app is named after its folder, or the name in its config, whatever port it runs on today. Names instead of ports
https://api.acme.localhostYou want the app on your phone, or in front of a teammate
Private to your Tailscale network, or public when someone outside needs it. Share online
dcp share tailscale on --tailnetAn AI agent starts servers and loses track of them
One command lists every running app and each of its links, as JSON. Use with AI agents
dcp ls --json
Start in two minutes
Install dcp
Homebrew on macOS and Linux, or npm anywhere. Windows: see Install.
brew install meabed/tap/dcpnpm i -g dev-code-proxySet up local HTTPS, once per machine
It starts the local proxy from boot and trusts its certificate. Run it again any time: it checks what is in place and fixes only what is missing.
dcp service installStart your app as usual
Any dev server, any language, with no script changes: dcp finds it and serves it at
https://<folder>.localhost. To pick the name, put it in the project, in.dcp.jsonor thedcpkey of the manifest it already has.echo '{ "name": "web.acme" }' > .dcp.jsonnpm run dev # https://web.acme.localhostEvery config file, and running apps through dcp. Open
https://dcp.localhostto see what runs.Share it online
With Tailscale signed in (
dcp doctorchecks it), every running dev server is online by default, after reboots too.dcp sharesays what is online; Cloudflare adds links under your own domain.dcp url web # https://bigfoot.tail1234.ts.net/web/dcp share cloudflare on --zone example.com --env-file .env
Tell your agent
Coding agents follow the same steps. Paste this before asking one to run or share an app, or point it at llms.txt and llms-full.txt. More on the agents page.
Prompt for a coding agent
Paste it into Claude Code, Codex, Cursor or any agent before asking it to run or share an app.
You are working in a project whose dev servers run through dev-code-proxy (dcp). Use it instead of raw ports.
Check the machine first, and fix what is missing:
- `dcp --version` (missing: `brew install meabed/tap/dcp` or `npm i -g dev-code-proxy`)
- `dcp doctor` checks both halves and each sharing provider; each ✗ is followed by the command that fixes it, and it exits 1 when one fails.
- `dcp service install` fixes local HTTPS; it may ask the user for their password once, so tell them.
- Tailscale sign-in and Funnel are the user's to do in a browser; give them the link doctor prints.
Run an app at a local HTTPS name:
- Start the dev server the usual way (npm run dev, uvicorn, rails s, go run .): dcp finds it and serves it at https://<project folder>.localhost. Never hard-code a port.
- To pick the name, put it in the project: .dcp.json { "name": "<app>.<project>" }, or the "dcp" key of package.json / deno.json, [tool.dcp] in pyproject.toml, [package.metadata.dcp] in Cargo.toml, "extra"."dcp" in composer.json.
- `dcp ls --json` lists every app and link, one entry each (name, port, pid, source "found" or "run", dir, provider local/tailscale/cloudflare, url, state up/online/not shared/exited, public); https://dcp.localhost/api/status has them with requests and latency.
- A port is taken by a dev server left running: `dcp stop <port>` or `dcp stop <name>`, with --yes (there is no terminal to ask in) and --force when it ignores SIGTERM. Stop only servers you started, unless the user says so.
- To run a command through dcp instead (it picks a free port and sets $PORT and $HOST): `dcp run <name> -- '<command using $PORT and $HOST>'`, e.g. `dcp run api.acme -- 'uvicorn main:app --port $PORT --host $HOST'`.
Share an app online (webhooks, OAuth callbacks, a phone, a teammate):
- Sharing is on by default: the local HTTPS proxy keeps every dev server online through Tailscale (Funnel), after reboots too. `dcp url <app> --tailscale` (or `--cloudflare`) prints just that URL, e.g. `curl $(dcp url api --cloudflare)/health`; it exits 1 when the link is not online yet.
- `dcp share --json` says per provider whether it is on and online, and otherwise the problem, the fix and a docs link; `dcp share --check` opens every link from the outside (DNS, certificate, HTTP status). Run the fix it names, or hand it to the user when it is theirs (a sign-in, an admin page).
- Cloudflare (a public link under the user's own domain) is off until set up once: `dcp share cloudflare on --zone <domain> --env-file <file with CLOUDFLARE_API_TOKEN>`. The token needs Account › Cloudflare Tunnel › Edit and Zone › DNS › Edit; ask the user for it, never invent one.
- `dcp share tailscale on --tailnet` limits Tailscale to the tailnet (Serve); `dcp share off` turns every provider off. Change these only when the user asks.
- The URL is the same every time on this machine, so register it once with Stripe, GitHub, Slack or an OAuth provider.
- Apps see Host: localhost by default; use `dcp --forward-host` when the app builds absolute URLs (OAuth redirects).
Report the URLs you used. Docs for agents: https://dev-code-proxy.com/llms-full.txt