egress

egress is a command for coding agents from openclaw/crabbox. It costs 0 tokens per session (1,518 once invoked), scanned A, original, MIT.

A command that gives a temporary, controlled route for a leased browser or application to reach the internet through the operator’s host machine.

In plain words
What is it for?
Use it to start, inspect, or stop an egress connection, select an access profile, or launch a browser with that connection.
Why use it?
It lets an isolated box use approved outbound network access without allowing it to connect directly to the internet.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/openclaw/crabbox/egress
Clone the repo
git clone --depth 1 https://github.com/openclaw/crabbox

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for egress

README.md
[![agentmods](https://agentmods.dev/badge/commands/openclaw/crabbox/egress.svg)](https://agentmods.dev/commands/openclaw/crabbox/egress)
Your own site
<a href="https://agentmods.dev/commands/openclaw/crabbox/egress"><img src="https://agentmods.dev/badge/commands/openclaw/crabbox/egress.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01518
Opus 5 $0.00000 $0.00759
Sonnet 5 $0.00000 $0.00304
Haiku 4.5 $0.00000 $0.00152

Measured 4d ago against content hash a80d1fc86f5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

egress scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/egress.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

egress

crabbox egress gives a lease mediated outbound network: a lease-local browser or app proxies its traffic out through the machine running the egress host agent, rather than reaching the internet directly from the box.

crabbox egress start --id blue-lobster --profile slack
crabbox egress start --id blue-lobster --profile slack --daemon
crabbox desktop launch --id blue-lobster --browser --url https://example.com/login --egress slack
crabbox egress status --id blue-lobster
crabbox egress stop --id blue-lobster

How it works

egress start does three things:

  1. Installs a short-lived egress client helper on the lease.
  2. Starts a loopback HTTP proxy on the box (default 127.0.0.1:3128).
  3. Runs a local host bridge on the operator machine.

Both sides connect outbound to the coordinator using one-use tickets. The coordinator pairs the two WebSockets and forwards multiplexed proxy frames; it never opens internet connections itself. Only the host agent dials real outbound TCP connections.

Automatic egress start sends the client ticket through SSH stdin, keeping it out of SSH, remote shell, and helper process arguments. A foreground helper validates and closes the bounded SSH input, then hands it through a private pipe to the detached client before returning. Invalid input fails without starting a client or falling back to coordinator login. Manual host/client --ticket behavior is unchanged.

The data path is:

browser/app in lease
  -> lease 127.0.0.1:3128 (egress client)
  -> coordinator Durable Object (pairs the two sockets)
  -> local crabbox egress host process
  -> internet from the operator machine

desktop launch --egress <profile> wires the lease-local proxy into the browser by appending:

--proxy-server=http://127.0.0.1:3128

Override the proxy address with --egress-proxy if you changed --listen.

The portal lease detail page shows the active egress session, host/client connection state, and copyable egress status / egress stop commands. It does not expose tickets or raw proxy URLs.

Read the full file on GitHub · 163 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 163 lines · 0 tokens per session scan A a80d1fc86f5e

Subscribe to this mod's changes

egress is a command published in the GitHub repository openclaw/crabbox (1,362 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,518 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.