Environment:AI Builder Club Skills crabbox cli
| Knowledge Sources | |
|---|---|
| Domains | Cloud_Infrastructure, Agent_Engineering |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
crabbox CLI tool for leasing, managing, and tearing down isolated cloud development boxes per agent via a cloud provider.
Description
This environment provides the crabbox CLI, which wraps cloud provider APIs to provision isolated development boxes. The cbx.sh wrapper script uses crabbox warmup to lease a box, crabbox run to execute commands inside it, crabbox ssh for SSH tunneling, and crabbox stop to release the box. Crabbox handles the provider's 60-second exec cap by backgrounding long-running setup commands and polling for completion.
= Usage
Use this environment for Parallel Isolation — when multiple agents need concurrent, isolated dev stacks. Each agent gets its own cloud box with its own Docker daemon, ports, and services. Required by the cbx_sh implementation.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | macOS, Linux | CLI tool; not tested on Windows |
| Hardware | Any (local CLI; compute is remote) | Minimal local resources |
| Disk | 50MB | CLI binary + config |
Dependencies
System Packages
crabboxCLI (installed and on PATH)- A configured cloud provider (see Environment:AI_Builder_Club_Skills_daytona_cli)
Python Packages
- None
Credentials
The following environment variables must be set in .env or .env.local:
- Provider-specific credentials (e.g., Daytona API key) — forwarded via
env.allow .envfile at project root (sourced bycbx.shfor secret forwarding)
Quick Install
# Install crabbox CLI (follow provider-specific instructions)
# Verify installation:
crabbox --version
# Configure provider (see Daytona setup):
# Set provider credentials in .env
Code Evidence
Leasing a box from cbx.sh:37:
out="$(crabbox warmup --provider "$PROVIDER" --slug "$NAME" 2>&1)"
Running commands in the box from cbx.sh:31-32:
R() { crabbox run --provider "$PROVIDER" --id "$1" "${@:2}"; }
RN() { crabbox run --provider "$PROVIDER" --id "$1" --no-sync "${@:2}"; }
Releasing a box from cbx.sh:77:
down) ID="$(resolve_id)"; crabbox stop --provider "$PROVIDER" "$ID" 2>&1 | tail -1; rm -f "$IDFILE" ".cbx-${NAME}.sandbox" ;;
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
could not parse lease id |
warmup output format changed or failed | Check crabbox warmup output; verify provider is configured
|
no box for 'NAME' |
Lease ID file missing or empty | Run bash cbx.sh up NAME first
|
setup failed |
dockerd failed or services failed inside the box |
Check bash cbx.sh logs NAME for details
|
Compatibility Notes
- Daytona provider: Default provider; requires daytona_cli.
- 60-second exec cap: The provider caps each
crabbox runexec at 60s. Thecbx.shwrapper backgroundssetup.shand polls/tmp/setup.logforSTACK READY. - No auto-stop: Daytona does not auto-stop boxes. Always run
cbx.sh downto release resources. - No
cp: File transfer uses base64 encoding viacbx.sh get.