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/connectgit 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.00928 |
| Opus 5 | $0.00000 | $0.00464 |
| Sonnet 5 | $0.00000 | $0.00186 |
| Haiku 4.5 | $0.00000 | $0.00093 |
Grade A, and why
connect 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 2d 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 — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
connect
crabbox connect resolves a lease and opens an interactive SSH session to it.
It accepts the same provider, target, and network resolution flags as
crabbox ssh, but runs the local ssh client directly instead of
printing a command string.
crabbox connect swift-crab
crabbox connect --id swift-crab --network tailscale
crabbox connect --provider ssh --target macos --static-host mac-studio.local
The first positional argument is treated as the lease id or slug, so
crabbox connect swift-crab is equivalent to
crabbox connect --id swift-crab.
What it opens
The command uses the resolved SSH target directly: host, user, port, per-lease
private key, optional certificate, optional provider ProxyCommand, host-key
policy, and connection keepalives. It does not pass through a shell and does not
print token-based SSH auth material.
crabbox connect touches the lease as a side effect. Opening an interactive
session signals intended manual use, so the lease's idle timer is refreshed and
the local repo claim is validated. While the SSH process is running, Crabbox
keeps coordinator-backed leases heartbeating and marks direct-provider leases
running/ready where supported. Pass --reclaim when you are intentionally
taking over a lease that is claimed by another repo checkout.
Network selection
The --network flag controls which path to the box the SSH session targets:
auto(default) prefers the tailnet host when the lease carries Tailscale metadata and this client can reach it, otherwise falls back to the public provider host.tailscalerequires the tailnet path and fails if it is unavailable.publicalways uses the provider's public host.
Provider-specific behavior
crabbox connect works for any provider that exposes an SSH-reachable box. A
few providers resolve access lazily or wrap the connection:
provider=ssh(aliasesstatic,static-ssh) resolves the configured static target from--static-host/--static-user/--static-port(or the matching config keys /CRABBOX_STATIC_HOST) instead of a leased machine.- Token-as-username providers are rejected by
connectbecause safely handing their secret username to every supported OpenSSH client is not portable. Usecrabbox ssh --show-secretin a trusted terminal. - Proxy-based providers pass the provider
ProxyCommanddirectly tossh. - Provider-routed direct providers accept the same provider-specific routing
flags here as
status,stop, andssh; for example--kubevirt-contextor--external-routing-filecan select the exact lease backend when config defaults are not enough.
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.
- 2d ago First seen · 87 lines · 0 tokens per session scan A 78c35352418a
connect is a command published in the GitHub repository openclaw/crabbox (1,343 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 928 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.
generate-dashboard
Generate OpenShift Console operator dashboard from operator name and CRD discovery.
observability
Instrument services with structured logging, Prometheus metrics, and OpenTelemetry tracing. Build Grafana dashboards, write Prometheus alerting rules, run k6 load tests, and plan infrastructure capacity.
deploy
Build, test, deploy with staged rollout.
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.