bdy agent tunnel

View as Markdown
$bdy agent tunnel [options] [command]

Manage tunnels run by the agent

OPTIONS
--context <name>
Connection and scope context: default, git, link or a saved name. Overrides the globally active context for this invocation.
--examples
Show only examples; with this flag --format accepts text, json or jsonl
--verbose
Show REST API requests, responses, timing and retries on stderr
-h, --help
display help for command
AVAILABLE COMMANDS
Add the tunnels from the configuration file to the agent
Disable tunneling in the agent
Enable tunneling in the agent
Add an HTTP tunnel run by the agent
List tunnels run by the agent
Remove a tunnel from the agent by ID
Show the status of the agent's tunnels, or of one tunnel by ID
Add a TCP tunnel run by the agent
Add a TLS tunnel run by the agent

Documentation for bdy v1.26.3

Last modified on Nov 24, 2026

Examples

Start http tunnel on port 80
bdy agent tunnel http 80$
Start http tunnel, whitelist ip and turn on on basic auth
bdy agent tunnel http https://myhost.com -w 1.1.1.1 -a user:pass$
Add an http tunnel to another agent through the REST API
bdy agent tunnel http 80 --agent build-server --workspace my-workspace$
Start tls tunnel on port 80
bdy agent tunnel tls 80$
Start tls tunnel and terminate tls at target
bdy agent tunnel tls 443 -i target$
Add a tls tunnel to another agent through the REST API
bdy agent tunnel tls 443 --agent build-server --workspace my-workspace$
Start tcp tunnel on port 22
bdy agent tunnel tcp 22$
Start named tcp tunnel with whitelist
bdy agent tunnel tcp 80 -n name -w 1.1.1.1/27$
Add a tcp tunnel to another agent through the REST API
bdy agent tunnel tcp 22 --agent build-server --workspace my-workspace$
Add tunnel to config
bdy tunnel config add http name 80$
Start agent tunnel from config
bdy agent tunnel start name$
Add the tunnel from config to another agent through the REST API
bdy agent tunnel start name --agent build-server --workspace my-workspace$
List agent tunnels
bdy agent tunnel list$
Return the result as JSON
bdy agent tunnel list --format json$
List the tunnels of another agent through the REST API
bdy agent tunnel list --agent build-server --workspace my-workspace$
Get agent tunnel status
bdy agent tunnel status tunnel-id$
Return the result as JSON
bdy agent tunnel status --format json$
Status of a tunnel of another agent through the REST API, printed once (statistics from the last report of the agent)
bdy agent tunnel status tunnel-id --agent build-server --workspace my-workspace$
Remove agent tunnel (asks for confirmation)
bdy agent tunnel rm tunnel-id$
Remove agent tunnel without confirmation
bdy agent tunnel rm tunnel-id -f$
Remove a tunnel of another agent through the REST API
bdy agent tunnel rm tunnel-id -f --agent build-server --workspace my-workspace$