Command-line client
One binary for everything the API does. The command is ahub; kabin is an alias.
Status: the client is built and tested, but release binaries are not published yet (planned). Everything the client does is also a plain API call; see the quickstart.
Configuration
KABIN_API_KEY: your API key (required).KABIN_API_URLor--api-url: defaults tohttps://api.kabin.dev.--json: print the raw API response, for scripts and agents.
Commands
| Command | What it does |
|---|---|
ahub new [--type small|default|large] [--ttl SECONDS] [-e K=V] [--file LOCAL | REMOTE=LOCAL] [--from SNAPSHOT --count N] [--idempotency-key KEY] | Create a sandbox |
ahub list [--state ready,archived] [--label k=v] | List sandboxes |
ahub info ID | Show one sandbox |
ahub exec ID [--cwd DIR] [--timeout S] [--detach] [--stream] -- COMMAND... | Run a command; --status PID and --kill PID manage detached commands |
ahub stop ID, ahub resume ID [--type T --ttl S], ahub fork ID [--type T --ttl S] | Lifecycle |
ahub delete ID [--yes] | Delete (asks for confirmation unless --yes) |
ahub files get|put|list|rm ID PATH | File operations (rm --recursive for directories) |
ahub snapshot save ID NAME, list, rm NAME | Saved snapshots |
ahub usage [ID] [--since T --until T] | Machine seconds per sandbox or account roll-up |
ahub webhook create URL [--name N --event E...]|list|rotate ID|remove ID | Webhook endpoints; without --event all events are subscribed |
ahub limits, ahub me | Quotas and identity |
ahub billing [plan [DOLLARS] | cancel] | Plan, plan table, change or cancel |
ahub wallet [pay DOLLARS | card | auto-top-up DOLLARS|off] | Wallet, top-up checkout link, card link, auto top-up |
ahub ssh ID | Injects your key and connects. Remote SSH is not offered at launch. |
Example
export KABIN_API_KEY=kbn_...
ahub new --type default --ttl 3600 --idempotency-key build-42
ahub exec sbx_23456789ab -- uname -a
ahub files put sbx_23456789ab notes.txt ./notes.txt
ahub stop sbx_23456789ab
ahub delete sbx_23456789ab --yes