Burrow CLI reference - commands & options
CLI reference: http, share, tcp, start, login, whoami, tunnels, companion, mcp, config, doctor and update, plus every burrow http option and burrow.yml.
Run burrow --help (or npx useburrow --help) for the same surface in your terminal, and
burrow <command> --help for any single command.
Commands
| Command | What it does |
|---|---|
burrow http <port|url> |
Tunnel an HTTP(S) service on a local port (or full URL). |
burrow share <port|url> |
Alias for http with sharing-friendly defaults. |
burrow tcp <port|host:port> |
Tunnel a raw TCP service (e.g. Postgres). |
burrow start |
Start every service defined in a burrow.yml multi-service config. |
burrow login |
Authenticate this machine (device-code flow). |
burrow logout |
Remove stored credentials. |
burrow whoami |
Show the authenticated account. |
burrow tunnels |
List active tunnels for your team. |
burrow companion |
Run an idle daemon so AI agents can open tunnels on demand. |
burrow mcp |
Print MCP server connection details for AI agents. |
burrow config <get|set> <key> [value] |
Read/write ~/.burrow/config.toml. |
burrow doctor |
Connectivity diagnostics (DNS, egress, proxy, ports). |
burrow update |
Show the current version and how to update. |
burrow http
Expose a local HTTP(S) service. Pass a port (3000) or a full URL
(http://127.0.0.1:8443), or use --target.
burrow http 3000
burrow http https://127.0.0.1:8443 --host-header preserve
burrow http 3000 --subdomain acme --basic-auth user:secret
Options
| Option | Default | Description |
|---|---|---|
--target <url> |
- | Forward target (alternative to the positional port/URL). |
--subdomain <name> |
- | Request a reserved subdomain (requires login + entitlement). |
--domain <host> |
- | Use a verified custom domain. |
--region <region> |
eu |
Edge region. |
--basic-auth <user:pass> |
- | Protect the tunnel at the edge. |
--host-header <mode> |
rewrite |
Forwarded Host: handling: rewrite, preserve, or a literal value. |
--header <kv> |
- | Inject a "Key: Value" header on every forwarded request (repeatable). |
--inspect <port> |
4040 |
Local inspector port. |
--no-inspect |
- | Disable the local inspector. |
--qr |
- | Print a scannable QR code of the public URL (handy for mobile testing). |
--json |
- | Machine-readable output (CI-friendly). |
--ws-url <url> |
- | Override the edge WebSocket URL (advanced). |
--allow-link-local |
- | Allow link-local / cloud-metadata targets (SSRF guard override). |
burrow share accepts the same options - it is http with sharing-friendly defaults.
burrow tcp
Tunnel a raw TCP service (databases, SSH, game servers). Pass a port or host:port.
burrow tcp 5432
burrow tcp 127.0.0.1:5432 --region eu
Raw TCP is a paid feature; an anonymous tunnel is refused with an entitlement error.
burrow start (burrow.yml)
Start many named tunnels at once from a burrow.yml in your project root:
# burrow.yml
services:
- name: web
http: 3000
subdomain: acme
- name: api
http: 8080
- name: db
tcp: 5432
burrow start # reads ./burrow.yml
burrow start --config infra/burrow.yml
The local inspector is single-tunnel, so it is disabled when start runs multiple services.
Auth & account commands
burrow login # device-code flow; stores the token in ~/.burrow/config.toml
burrow whoami # show the authenticated account
burrow logout # clear the stored token
burrow tunnels # list active tunnels for your team
See Configuration for BURROW_TOKEN and CI usage.
burrow doctor & update
burrow doctor # DNS, egress, proxy and port diagnostics
burrow update # current version + how to update
burrow doctor exits non-zero if a hard check fails - useful as a CI preflight. See
Troubleshooting.