Install
dcp is one binary with two halves. Set up the half you need, or both: they don't depend on each other.
| You want | Set up | Takes |
|---|---|---|
https://<name>.localhost on this machine | Local HTTPS | one command, your password once per machine |
| A link that works from anywhere (webhooks, callbacks, sharing) | Tailscale | a free Tailscale account, two switches in its admin console |
| A public link under your own domain | Cloudflare | a domain on Cloudflare, an API token, one dcp cloudflare on |
1. Install dcp
brew install meabed/tap/dcpnpm i -g dev-code-proxy # the command is still dcp; a small Node launcher runs itgo install github.com/meabed/dev-code-proxy@latestnpx dev-code-proxy doctor # any command, without installingHomebrew is the lightest on macOS and Linux: the binary runs directly, with no Node process beside each dcp run.
macOS, Linux, Windows and WSL, on amd64 and arm64. Prefer a window to a terminal? The desktop app shares
dev servers from the menu bar.
2. Local HTTPS, once per machine
dcp service install✓ boot service /Library/LaunchDaemons/com.meabed.dev-code-proxy.plist
✓ proxy running (dcp 1.11.0, pid 57001, port 443)
✓ local CA trusted by the OSIt starts the local proxy at boot and adds its certificate authority to the system's trust store, so browsers, curl,
Bun and Node accept https://<name>.localhost. Your password is asked once: port 443 needs admin rights to open.
After that the proxy keeps itself current: a newer dcp, from brew upgrade, npm update or its own daily check,
takes over within seconds, with no password and no command to run. Running dcp service install again is always safe;
it checks what is in place and fixes only what is missing. dcp service status prints the same lines and exits 1 if
any is off.
That's all: start a dev server the way you always do and it answers at https://<folder>.localhost. Open
https://dcp.localhost to see the names. Naming apps and other ways to run them: Local HTTPS names.
3. Tailscale, for online links
Tailscale carries the online links: it gives your machine a stable name and a certificate, and its Funnel feature makes a port reachable from the internet. The free plan is enough.
brew install --cask tailscale # or the app from tailscale.com/download
tailscale up # sign in in the browsercurl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale upwinget install tailscale.tailscale
tailscale upTwo switches in the admin console, once per Tailscale network:
- DNS: turn on MagicDNS and HTTPS Certificates (guide).
- Access controls: allow Funnel, which public links need (guide):
{ "nodeAttrs": [{ "target": ["autogroup:member"], "attr": ["funnel"] }] }
Links only for your own devices and teammates on your Tailscale network don't need step 2: use
dcp tailscale on --tailnet.
Check both halves at once:
dcp doctorSharing online (https://<machine>.<tailnet>.ts.net/<project>/, through Tailscale)
✓ tailscale installed (1.104.7)
✓ tailscale up
✓ funnel enabled
✓ service discovery (6 service(s) in 3000-6000)
✓ tailscale: online at https://bigfoot.tail1234.ts.net, anyone with a link (6 apps)
✓ cloudflare: off
note: dcp cloudflare on --zone example.com turns it on
Local HTTPS names (https://<name>.localhost: every dev server found, and dcp run apps)
✓ boot service /Library/LaunchDaemons/com.meabed.dev-code-proxy.plist
✓ proxy running (dcp 1.16.2, pid 57001, port 443)
✓ http://*.localhost redirects to https
✓ local CA trusted by the OS
✓ finds dev servers on ports 3000-6000 (2 found now; scans every 10s while in use, 1m0s idle)
✓ dashboard: https://dcp.localhost (every app, its links, CPU, memory, requests, Stop)
✓ auto-update on (checked 2h ago, latest 1.16.2)
All checks passed: your dev servers answer at https://<name>.localhost and online at their Tailscale links.
Every app with both links: https://dcp.localhostEach ✗ is followed by the command that fixes it (a page for what only Tailscale's admin console changes), and the last line says which half is ready. Each sharing provider gets one line: online, not online with its fix, or off with the command that turns it on. Sharing online is on by default: Share online.
Updates
The local proxy updates itself without dropping a request: once a day it checks for a release and verifies the
download against the release's checksums. The new version starts beside the running one and must answer a real HTTPS
request before it takes over; then the old one finishes its requests and stops. A version that fails that check, or
crashes in its first minute, is set aside and skipped, and the previous one keeps serving. dcp logs shows each
swap. In a terminal, dcp tells you once a day when a release
is out for the command itself.
dcp update # now: runs brew or npm when that is how dcp was installed
dcp configure --auto-update=false # no automatic updates (DCP_NO_UPDATE=1 for one shell; off in CI)Remove
dcp uninstall # asks first; --yes to skip the question✓ Tailscale Serve/Funnel entry removed (it pointed at 127.0.0.1:18443)
✓ boot service removed: nothing answers https://*.localhost now
✓ local CA removed from the OS trust store
✓ /Users/you/.dcp emptied (config.json kept: --all removes it)
Last step, the dcp command: brew uninstall dcpA step with nothing to do prints –; one that fails prints ✗ and the command to finish it by hand.
It removes only a Tailscale entry that points at dcp, so it never takes down someone else's. Safe to run twice.
dcp service uninstall removes just the boot service.