# dev-code-proxy > dev-code-proxy (command: dcp) gives local dev servers real HTTPS addresses. On this machine: https://.localhost for an app started with `dcp run`, with a certificate the OS trusts. Online: one stable URL per running dev server, through Tailscale (https://..ts.net//, Funnel public or Serve tailnet only) and, when turned on, a Cloudflare Tunnel under your own domain (https://-.), for webhooks, OAuth callbacks, phones and teammates. Open source, one Go binary, macOS, Linux, Windows. Install: `brew install meabed/tap/dcp` or `npm i -g dev-code-proxy`. Every page in one file: https://dev-code-proxy.com/llms-full.txt ## Start - [Overview](https://dev-code-proxy.com): What dcp does, the problems it solves, and a two-minute start. - [Install](https://dev-code-proxy.com/installation): Install dcp, set up local HTTPS once, and connect Tailscale or Cloudflare for online URLs. ## Workflows - [Local HTTPS names](https://dev-code-proxy.com/local-https): dcp run: https://.localhost for an app on this machine, with a trusted certificate. - [Share online](https://dev-code-proxy.com/share): dcp status: one stable URL per dev server through Tailscale (public Funnel or tailnet-only Serve) and Cloudflare (your own domain). - [Webhooks & OAuth callbacks](https://dev-code-proxy.com/webhooks): Point Stripe, GitHub, Slack or an OAuth provider at your laptop once, at a URL that stays the same. - [Use with AI agents](https://dev-code-proxy.com/agents): A prompt and an AGENTS.md section that teach a coding agent to run and share apps with dcp. - [Desktop app](https://dev-code-proxy.com/desktop): The menu-bar app: the same sharing without a terminal. ## Reference - [Commands](https://dev-code-proxy.com/commands): Every command and flag. - [Configuration](https://dev-code-proxy.com/configuration): Saved defaults in ~/.dcp/config.json and the host header. - [Logs and stats](https://dev-code-proxy.com/logs-and-stats): dcp stats and dcp logs: requests, failures and latency per name, updates and rollbacks, kept on your machine. - [How it works](https://dev-code-proxy.com/how-it-works): Discovery, routing, the local proxy, certificates and the boot service. - [Troubleshooting](https://dev-code-proxy.com/troubleshooting): Symptoms and the command that fixes each. ## Agent prompt ```text 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://.localhost. Never hard-code a port. - To pick the name, put it in the project: .dcp.json { "name": "." }, 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 ` or `dcp stop `, 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 -- ''`, 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 --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 status --json` says per provider whether it is on and online, and otherwise the problem, the fix and a docs link; `dcp 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 cloudflare on --zone --env-file `. The token needs Account › Cloudflare Tunnel › Edit and Zone › DNS › Edit; ask the user for it, never invent one. - `dcp tailscale on --tailnet` limits Tailscale to the tailnet (Serve); `dcp tailscale off` and `dcp cloudflare off` turn them 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 ```