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.
npx agentmods add commands/openclaw/crabbox/portsgit clone --depth 1 https://github.com/openclaw/crabboxWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00724 |
| Opus 5 | $0.00000 | $0.00362 |
| Sonnet 5 | $0.00000 | $0.00145 |
| Haiku 4.5 | $0.00000 | $0.00072 |
Grade A, and why
ports 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ports
crabbox ports bridges provider-native port publishing for an existing Crabbox
lease. It resolves a Crabbox-owned lease id or slug first, then asks the active
provider to list, publish, or unpublish ports.
crabbox ports --provider docker-sandbox --id blue-box
crabbox ports --provider docker-sandbox --id blue-box --publish 3000
crabbox ports --provider docker-sandbox --id blue-box --unpublish 41000:3000
crabbox ports --provider docker-sandbox --id blue-box --json
crabbox ports --provider codesandbox --id web-box --publish 3000 --json
Lease Resolution
--id is required. It accepts a Crabbox lease id or active slug. Providers only
act on Crabbox-owned leases; raw user-created sandboxes are rejected.
For provider=docker-sandbox, Crabbox resolves the local dsbx_... claim and
then calls sbx ports <sandbox-name> ....
For provider=codesandbox, Crabbox resolves the local csbx_... claim,
verifies the remote CodeSandbox ownership tag, then asks the CodeSandbox SDK
bridge for open ports or provider-owned host URLs.
Flags
--id <lease-id-or-slug>
--provider <name>
--publish <spec> publish a port mapping; repeatable
--unpublish <spec> unpublish a port mapping; repeatable
--json print provider-native listing output as JSON
--publish and --unpublish cannot be combined in the same call.
For Docker Sandbox, the spec format mirrors sbx ports:
[[HOST_IP:]HOST_PORT:]SANDBOX_PORT[/PROTOCOL]
Examples:
3000lets Docker Sandbox allocate an ephemeral host port for sandbox port3000.41000:3000binds host port41000to sandbox port3000.127.0.0.1:41000:3000/tcp4restricts the published port to IPv4 loopback.
For CodeSandbox, the spec is only the sandbox port number:
SANDBOX_PORT
--publish 3000 waits for port 3000 in the sandbox and prints the
CodeSandbox SDK host URL. With --json, CodeSandbox returns objects with
port, host, and url fields. --unpublish is not supported for
CodeSandbox because the SDK observes ports owned by running processes rather
than exposing a close-port operation; stop the process inside the sandbox.
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.
- 3d ago First seen · 80 lines · 0 tokens per session scan A f42c0e6b4b25
ports is a command published in the GitHub repository openclaw/crabbox (1,343 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 724 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.
Other commands, from other repositories
account
This API allows you to manage your Scaleway Projects.
domains
Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.
d1-migration
Run D1 migration workflow — generate, inspect, apply.
deploy
Deploy a frontend (React, Next.js, or static HTML) to a live URL on Butterbase.
deploy
Build a container image, push it, and deploy the service to the Akka platform. This is the transition from local development to development on the AAO platform.
env
Manage Vercel environment variables. Commands include list, pull, add, remove, and diff. Use to sync environment variables between Vercel and your local development environment.