BURROW // API

Chain operations

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

OperationAvailabilityPurpose
chain.connectsupportedExport a reviewed connection chain
chain.exportsupportedExport a Hovel saved chain for an existing tunnel
chain.httpsupportedPerform a reviewed HTTP GET through one existing tunnel
chain.selectsupportedDiscover current live tunnel identities

chain.connect

Export a reviewed connection chain

supported

Invocation

burrow --workspace PATH chain connect NAME HOST --user USER [OPTIONS]

Example

burrow --workspace /absolute/workspace chain connect target 192.0.2.10 --user alice

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
host · string
SSH host/alias for connection calls; destination hostname or literal IP for tunnel calls.
user · string
Required --user USER; '-' uses the SSH config user. Positional third USER also accepted.
connection-options · object
Options / request fields
Field / optionTypePresenceDescription / constraints
--agentstringOptionalDefault frontend SSH_AUTH_SOCK / effective SSH configuration; must be accessible by daemon.
--jumpstringOptional[USER@]HOST[:PORT][,...]; config ProxyJump otherwise.
--keystringOptionalAbsolute private-key reference; ~/ expansion supported; default current-user SSH identities.
--passwordtrue | stringOptionalBare flag prompts privately; optional explicit value supplies target once, mutually exclusive with key/explicit nonempty agent. Value remains visible in original process argv; never persist it.
--portintegerOptionalDefault SSH config port or 22.
--promptbooleanOptionalDefault: false
--reviewstringOptionalBind direct connection approval to preview digest.
--ssh-configstringOptionalDefault ~/.ssh/config; supports aliases and selected safe settings.
--yesbooleanOptionalNot accepted by chain connect; exported chains need a separate confirmed Hovel throw.
Default: false
-proxytrue | integerOptionalOptional SOCKS port; omitted off, bare flag 9050. Not accepted by chain connect.

Approval and effects

Export does not connect. Confirm a separate Hovel throw; connection-only options exclude --yes and -proxy.

Requires an existing SSH server; never deploys it. Key/agent export exits; password/prompt export holds a private one-use authentication broker for up to 10 minutes. TUI stages the chain.

Returns

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

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: chain connect NAME HOST --user USER [OPTIONS]
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/chains.go
semantic-check: core/cmd/burrow/chains_lab.py

Evidence limits · JSON inventory

chain.export

Export a Hovel saved chain for an existing tunnel

supported

Invocation

burrow --workspace PATH chain export CONNECTION TUNNEL_ID URL

Example

burrow --workspace /absolute/workspace chain export target target/0123456789abcdef0123456789abcdef http://127.0.0.1:80/

Parameters

connection · string
Explicit existing connection name; live verified manager ownership is required for operations using its transport.
tunnel-id · string
Exact qualified CONNECTION/creation-ID from tunnel list or chain select; never synthesize an ID from a port.
url · string
http://HOST[:PORT]/PATH only; no TLS, redirects, credentials or query. Fixed tunnels require the exact destination. GET limit 8 seconds and 1 MiB.

Approval and effects

Export does not approve execution. Hovel throw requires its normal planning/confirmation and --allow-dangerous.

CLI emits JSON without execution. TUI stages a private chain and opens Hovel with throw ready for review.

Returns

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

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: chain export CONNECTION TUNNEL_ID URL
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/chains.go
semantic-check: core/cmd/burrow/chains_lab.py

Evidence limits · JSON inventory

chain.http

Perform a reviewed HTTP GET through one existing tunnel

supported

Invocation

burrow --workspace PATH chain http CONNECTION TUNNEL_ID URL [--review HASH] [--yes]

Example

burrow --workspace /absolute/workspace chain http target target/0123456789abcdef0123456789abcdef http://127.0.0.1:80/

Parameters

connection · string
Explicit existing connection name; live verified manager ownership is required for operations using its transport.
tunnel-id · string
Exact qualified CONNECTION/creation-ID from tunnel list or chain select; never synthesize an ID from a port.
url · string
http://HOST[:PORT]/PATH only; no TLS, redirects, credentials or query. Fixed tunnels require the exact destination. GET limit 8 seconds and 1 MiB.
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.

Uses the exact live owner and tunnel; never provisions or reconnects. Bounded GET retains status, byte count and SHA256 evidence, not response bodies.

Returns

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

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: chain http CONNECTION TUNNEL_ID URL [--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/chains.go
semantic-check: core/cmd/burrow/chains_lab.py

Evidence limits · JSON inventory

chain.select

Discover current live tunnel identities

supported

Invocation

burrow --workspace PATH chain select CONNECTION

Example

burrow --workspace /absolute/workspace chain select 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

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

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: chain select 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/chains.go
semantic-check: core/cmd/burrow/chains_lab.py

Evidence limits · JSON inventory