BURROW // API

Tunnel operations

Commands and contracts for tunnel. Place global flags before the command. Examples use placeholders and do not grant approval.

OperationAvailabilityPurpose
tunnel.checksupportedPassively check the destination greeting
tunnel.createsupportedCreate a local or reverse forward on an existing connection
tunnel.listsupportedList retained forwards and exact qualified IDs
tunnel.proxy-createsupportedCreate connection-owned SOCKS4/5
tunnel.proxy-inspectsupportedInspect SOCKS endpoint and owner identity
tunnel.proxy-removesupportedRemove SOCKS only
tunnel.removesupportedRemove exactly one listener

tunnel.check

Passively check the destination greeting

supported

Invocation

burrow --workspace PATH tunnel check CONNECTION/ID

Example

burrow --workspace /absolute/workspace tunnel check target/0123456789abcdef0123456789abcdef

Parameters

tunnel-id · string
Exact qualified CONNECTION/creation-ID from tunnel list or chain select; never synthesize an ID from a port.

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Attempts traffic through the existing listener; no remote bytes retained. Silent protocols need their own client to prove reachability.

Returns

TunnelCheck. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: tunnel check CONNECTION/ID
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/forward.go
semantic-check: core/cmd/burrow/forward_lab.py

Evidence limits · JSON inventory

tunnel.create

Create a local or reverse forward on an existing connection

supported

Invocation

burrow --workspace PATH tunnel create CONNECTION forward|reverse LISTEN HOST PORT [--review HASH] [--yes]

Example

burrow --workspace /absolute/workspace tunnel create target forward 8080 127.0.0.1 80

Parameters

connection · string
Explicit existing connection name; live verified manager ownership is required for operations using its transport.
direction · "forward" | "reverse"
tunc aliases use l/r.

Allowed: forward, reverse

listen · string
PORT defaults to 127.0.0.1, or explicit IP:PORT ([IPv6]:PORT). Reverse only: 0 chooses 49152–65535 with at most 8 attempts.
host · string
SSH host/alias for connection calls; destination hostname or literal IP for tunnel calls.
port · integer

Minimum: 1 · Maximum: 65535

review · string
--review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
yes · boolean
--yes is explicit approval; discovery never adds it automatically.

Default: false

Approval and effects

CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.

After approval binds a listener; explicit broad IP binds expose it. Reverse LISTEN 0 requests a random high port; returns actual endpoint.

Returns

TunnelReview. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: tunnel create CONNECTION forward|reverse LISTEN HOST PORT [--review HASH] [--yes]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/forward.go
semantic-check: core/cmd/burrow/forward_lab.py

Evidence limits · JSON inventory

tunnel.list

List retained forwards and exact qualified IDs

supported

Invocation

burrow --workspace PATH tunnel list

Example

burrow --workspace /absolute/workspace tunnel list

Parameters

No operation-specific parameters.

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Inspects existing state; requires a verified running workspace. Operational audit/history may be appended; does not initialize a workspace or connect.

Returns

Tunnels. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: tunnel list
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/forward.go
semantic-check: core/cmd/burrow/forward_lab.py

Evidence limits · JSON inventory

tunnel.proxy-create

Create connection-owned SOCKS4/5

supported

Invocation

burrow --workspace PATH proxy create CONNECTION LISTEN [--review HASH] [--yes]

Example

burrow --workspace /absolute/workspace proxy create target 1080

Parameters

connection · string
Explicit existing connection name; live verified manager ownership is required for operations using its transport.
listen · string
PORT defaults to 127.0.0.1, or explicit IP:PORT ([IPv6]:PORT). Reverse only: 0 chooses 49152–65535 with at most 8 attempts.
review · string
--review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
yes · boolean
--yes is explicit approval; discovery never adds it automatically.

Default: false

Approval and effects

CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.

Binds an unauthenticated SOCKS listener; one per connection, separate from L/R IDs and counts.

Returns

ProxyReview. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: proxy create CONNECTION LISTEN [--review HASH] [--yes]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/proxy.go
semantic-check: core/cmd/burrow/connection_lab.py

Evidence limits · JSON inventory

tunnel.proxy-inspect

Inspect SOCKS endpoint and owner identity

supported

Invocation

burrow --workspace PATH proxy inspect CONNECTION

Example

burrow --workspace /absolute/workspace proxy inspect target

Parameters

connection · string
Explicit existing connection name; live verified manager ownership is required for operations using its transport.

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Inspects existing state; requires a verified running workspace. Operational audit/history may be appended; does not initialize a workspace or connect.

Returns

Proxy. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: proxy inspect CONNECTION
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/proxy.go
semantic-check: core/cmd/burrow/connection_lab.py

Evidence limits · JSON inventory

tunnel.proxy-remove

Remove SOCKS only

supported

Invocation

burrow --workspace PATH proxy remove CONNECTION [--review HASH] [--yes]

Example

burrow --workspace /absolute/workspace proxy remove target

Parameters

connection · string
Explicit existing connection name; live verified manager ownership is required for operations using its transport.
review · string
--review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
yes · boolean
--yes is explicit approval; discovery never adds it automatically.

Default: false

Approval and effects

CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.

Removes SOCKS while preserving the master and L/R forwards.

Returns

ProxyReview. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: proxy remove CONNECTION [--review HASH] [--yes]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/proxy.go
semantic-check: core/cmd/burrow/connection_lab.py

Evidence limits · JSON inventory

tunnel.remove

Remove exactly one listener

supported

Invocation

burrow --workspace PATH tunnel remove CONNECTION/ID [--yes]

Example

burrow --workspace /absolute/workspace tunnel remove target/0123456789abcdef0123456789abcdef

Parameters

tunnel-id · string
Exact qualified CONNECTION/creation-ID from tunnel list or chain select; never synthesize an ID from a port.
yes · boolean
--yes is explicit approval; discovery never adds it automatically.

Default: false

Approval and effects

Review then --yes. No --review flag; the exact qualified ID selects the listener.

Stops new connections on that listener; accepted streams may finish; siblings survive.

Returns

TunnelReview. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: tunnel remove CONNECTION/ID [--yes]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/forward.go
semantic-check: core/cmd/burrow/forward_lab.py

Evidence limits · JSON inventory