WEBINARLive webinar: Terraform in Buddy, Oct 21st.Terraform: plan, approve, apply with state in Buddy. Live on October 21st.Save your seat

bdy agent tunnel http

View as Markdown
$bdy agent tunnel http|HTTP [options] [protocol://host:port]

Add an HTTP tunnel run by the agent

ARGUMENTS
protocol://host:port
Target address to redirect traffic to. Host is optional and by default local machine. Port is by default 80 (optional)
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
-r, --region <region>
override default region ("eu", "us", "as")
-w, --whitelist <cidrs...>
Whitelist provided IP CIDRs. Use "*" to allow all
-n, --name <name>
Name of the tunnel
-t, --timeout <seconds>
Enforce connection timeout in seconds
-h, --host <host>
Provide custom HTTP host header
--header <headers...>
Header key:value to add to the request
--response-header <headers...>
Header key:value to add to the response
--useragent <useragent...>
Whitelist browser user-agent by contained text or regular expressions (e.g. /my-user-agent/). By Default all are allowed
-a, --auth <user:pass>
Enforce HTTP basic authorization
-b, --buddy
Enforce HTTP Buddy authorization
-l, --log
Log HTTP requests
-v, --verify
Enforce TLS verify
-2, --http2
Enforce HTTP/2
-c, --compression
Turn on HTTP response compression
--ca <ca>
Path to a TLS PEM CA certificate for TLS auth
--note <note>
Resource note
--agent-note <note>
Note for AI agents operating on this resource; stored as agent_note and meant to be read before acting on the resource
--circuit-breaker <threshold>
Turn on circuit breaker. Provide the failure-rate threshold as a percentage between 0 and 100
-f, --follow
Follow tunnel details
--format <text|json>
Output format: json, text. JSON CLI errors: {error:{code,message,hint}}, exit 1. Default: text (choices: "text", "json")
--help
display help for command

Documentation for bdy v1.25.20

Last modified on Oct 14, 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$