Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

crabbox

> AI 编程
Open source

Crabbox: warm a box, sync the diff, run the suite.

1.2K stars0 likes2 views
WebsiteGitHub

About

Crabbox: warm a box, sync the diff, run the suite.

Run your code on the right machine.

Crabbox runs your repository's commands on remote machines, existing SSH hosts, and local containers. Keep editing locally; send your working tree to a box, stream the output, and get the command's exit code back. Quick start · Commands · Install · Providers · Documentation · Security

Inside a Git repository you trust, with Docker or Podman running:

bash
crabbox run \
  --provider docker \
  -- uname -a

One command creates a Linux container, syncs your checkout, runs uname -a, streams the result, and removes the container. No cloud account or login needed. For remote compute, choose a provider or your team's coordinator.

Why Crabbox?

  • Test the code you are editing. Sync uncommitted changes and nonignored files without pushing a commit. Dependency and build directories are excluded; install dependencies on the box. Workspace sync
  • Keep a box warm. Reuse a prepared environment through an edit–run loop, or use a one-shot run for work that should clean up afterward. Warm workspaces
  • Make runs reviewable. Collect test reports and artifacts; use coordinator history, logs, and events to inspect remote work. Evidence
  • Choose your infrastructure. Use local containers, your own SSH machines, cloud VMs, or delegated execution providers. Capabilities vary by provider. Provider matrix
  • Share capacity with your team. An optional coordinator owns cloud credentials, tracks usage, enforces spend caps, and expires stale leases. Coordinator

Install

Homebrew installs the complete release distribution:

bash
brew install openclaw/tap/crabbox
crabbox --version

For macOS, Linux, and Windows, you can also download a release archive. Windows users should follow the Windows installation guide.

When a release includes a crabbox-runtime directory, keep it beside the real CLI executable. New filesystem-capable packs contain amd64 and arm64 companions for Linux, macOS, and Windows. Linux companions additionally provide native managed execution for Linux and WSL2; copying only the CLI omits those bundled capabilities. Do not mix a runtime pack with a differently built controller. An official release with a missing or incomplete pack is a broken installation: reinstall its matching archive or Homebrew package. It does not silently compile replacement companions from source. CLI-only source builds retain their existing shell-backed supervisor route.

Local prerequisites for the SSH workflow: git, ssh, ssh-keygen, rsync, and curl. The local quick start also needs a running Docker or Podman engine.

Install with Go (CLI only)

bash
go install github.com/openclaw/crabbox/cmd/[email protected]

This install channel is supported starting with v0.44.0. Use an explicit release version; do not use @latest while older, incompatible releases remain visible. The module requires Go 1.26 and prefers go1.26.5; use Go 1.26.5 or newer, or leave automatic toolchain selection enabled.

go install compiles only the CLI. It omits companion executables and assets, including crabbox-apple-vm-helper and the native runtime pack, and is not the signed/notarized prebuilt distribution. Use Homebrew or a release archive for complete platform capabilities, especially Apple VM support on Apple Silicon. Without an installed pack, source-built CLIs can compile the dependency-free filesystem helper with a local Go 1.26-or-newer compiler. This does not compile the managed-command supervisor or produce a signed release installation.

Quick start

1. Try a local box

Inside a Git repository you trust, with Docker or Podman running:

bash
crabbox doctor --provider local-container
crabbox run --provider local-container -- uname -a

You should see the container's Linux kernel information. Crabbox returns the command's exit code and cleans up the one-shot container. First startup includes an image pull and bootstrap, so allow extra time.

The default box is bare. It includes Crabbox's sync/run prerequisites, but not your project's Node, Go, Python packages, or other build dependencies. Prepare those before replacing uname -a with your test command.

2. Run a project's tests

For a Node.js repository with a package-lock.json and an npm test script, select an image with Node installed and install the dependencies on the box:

bash
crabbox run --provider local-container \
  --local-container-image node:22-bookworm \
  --shell 'npm ci && npm test'

Choose a Node version compatible with your project. Crabbox does not install project runtimes for you: supply them with a prepared image, the repository's own setup scripts, a devcontainer, Nix, or mise/asdf. Crabbox can also reuse supported setup steps from GitHub Actions; full Actions semantics require the documented runner path.

3. Reuse a box while you iterate

bash
crabbox warmup --provider local-container --slug dev-box
crabbox run --provider local-container --id dev-box -- uname -a

# Edit locally, then run again on the same box.
crabbox run --provider local-container --id dev-box -- uname -a

# Open a shell, or release the box when finished.
crabbox ssh --provider local-container --id dev-box
crabbox stop --provider local-container dev-box

Replace uname -a with your test command once the box is prepared. warmup creates a reusable lease; prewarm additionally performs Actions hydration. A lease has both a stable cbx_... ID and a friendly slug; either works with --id.

For a complete repository setup, see Getting started and Local Container.

Already have a team coordinator?

Use the URL supplied by your team; the address below is a placeholder:

bash
crabbox login --url https://broker.example.com
crabbox doctor
crabbox run -- pnpm test

This assumes the repository's provider and remote runtime/dependency setup are configured. For your own cloud account, follow a direct-provider setup guide and skip login. Cloud runs use your infrastructure and may incur charges.

Everyday commands

Command What it does
crabbox doctor Check local prerequisites, configuration, and provider reachability.
crabbox run -- One-shot: get a box, sync, run, stream output, release.
crabbox run --shell '' The same, for a multi-step shell command.
crabbox warmup / crabbox prewarm Create a reusable box; prewarm also runs Actions hydration.
crabbox run --id -- Reuse a warm box, syncing only what changed.
crabbox ssh --id Open an interactive shell on the box.
crabbox job run Run a named workflow defined in .crabbox.yaml.
crabbox list / crabbox stop See active boxes, and release one when finished.

Pass long commands as a file with --script instead of a large quoted string. Every command has a page under Commands, and the CLI reference lists all flags and environment variables.

When a run fails

Situation Try this
The run never reaches the box crabbox doctor --provider for prerequisites and reachability.
You need to inspect the failure Add --keep-on-failure, then crabbox ssh --id into the exact box that failed.
A warm box behaves as if stale Add --full-resync to reset the remote workdir before syncing.
Output is binary or terminal-hostile --capture-stdout , and --capture-stderr .
You need a file the run produced --download remote=local, repeatable for several files.

Failed SSH-backed and Blacksmith delegated runs save local bundles to .crabbox/captures/*.tar.gz by default, falling back to the Crabbox user state directory when the project destination is unwritable. Follow the reported failure-bundle local=… path; see local capture storage. Crabbox does not scrub bundles, captured output, or artifacts; review them before sharing.

Troubleshooting · History and logs · Observability

How it works

Your working tree
       |
       v
Select a box -> Sync changes -> Run command -> Stream output
                    ^                              |
                    |                              v
                    +------ Reuse the box, or release it

The CLI runs on your machine. For SSH providers, it sends files and runs commands directly on the runner over SSH and rsync. Delegated providers use their own execution transports.

An optional coordinator handles provider credentials, leases, budgets, history, and cleanup for supported managed providers. It is separate from the normal CLI-to-runner data path. Local containers and existing hosts work without a coordinator.

Coordinator deployment choices

Path Use it when
No coordinator You want local containers, existing hosts, or direct providers with local credentials and state.
Cloudflare Workers + Durable Object You want the established managed coordinator deployment.
Node.js + PostgreSQL You want to host the coordinator in containers, on a VM, or in Kubernetes. Complete the deployment proof before production cutover.

State does not automatically migrate between coordinator runtimes. For deployment requirements and the separate SSM-only private AWS workspace path, see Infrastructure and Private AWS Workspaces.

Read How Crabbox works for the full lifecycle, Architecture for internals, and Vision for scope and non-goals.

Providers

Start with the environment you already have:

Your starting point Provider guides
Docker or Podman on your laptop Local Container
An existing Linux, macOS, or Windows machine Static SSH
A cloud account AWS, Azure, Google Cloud, Hetzner
Your own virtualization infrastructure Proxmox, Incus, Firecracker
Apple Silicon Apple VM, Apple Container
A managed sandbox service Daytona, E2B, Modal
GPU workloads RunPod

Browse the complete provider matrix →

The matrix documents operating systems, sync methods, lifecycle support, and provider limitations. Support for SSH, snapshots, desktops, and cleanup is not uniform across providers.

Machine classes

Managed providers with class-based capacity default to beast. Choose a smaller --class deliberately when evaluating cloud capacity. --class selects a capacity tier; --type pins a provider-native instance size and disables class fallback. See Configuration and your provider's guide for sizes and pricing considerations.

Highlights

Once the basic loop works, add the capabilities your workflow needs:

Capability What it adds
Named jobs Store setup, test commands, and cleanup

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goagent-skillsherdr-pluginremote-test-runner

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.