# Billing & Limits Source: https://docs.ariana.dev/box/billing How Box billing works, what you get, and the limits that apply. ## Billing model Box charges in **credit seconds** — one second of a box in an active state costs one credit second. **1 dollar = 100,000 credit seconds** (\~27.8 hours of active box time per dollar. ### What counts as billable A box accumulates credit seconds while in any of these states: `provisioned` · `cloning` · `ready` · `idle` · `running` **Not billed:** `archived` (stopped), `provisioning`, `archiving`, `error` Stop a box to pause billing: ```bash theme={null} box stop bx_f7k2q9hd ``` *** ## Plans ### Base subscription — \$20/month * **2,000,000 credit seconds included** (\~23 days of continuous uptime) * Monthly refresh — unused seconds from your subscription do **not** carry over * 7-day free trial included (see below) ### Extra credit pack — \$20 one-time * **2,000,000 additional credit seconds** * Carries over month-to-month — never expires * Purchase as many packs as you need from the dashboard *** ## Free trial * **7 days** from first sign-up * Full access to box creation during the trial * Trial limits apply (see table below) * If the trial ends without a paid subscription, your account freezes until you complete checkout *** ## Limits ### Active box limits | Plan | Max simultaneous boxes | | ----- | ---------------------- | | Trial | 15 | | Paid | 100 | ### Creation rate limits | Plan | Per minute | Per day | | ----- | ---------- | --------- | | Trial | 20 | 50 | | Paid | 20 | Unlimited | ### Box TTL | Setting | Value | | ----------- | --------------------------- | | Default TTL | 1 hour (3,600 seconds) | | Maximum TTL | 30 days (2,592,000 seconds) | Set a custom TTL at creation: ```bash theme={null} box new --ttl 86400 # 24 hours ``` A box auto-deletes when its TTL expires regardless of state. *** ## Check your usage ```bash theme={null} box limits ``` This shows your current credit balance, subscription status, active box count, and the limits that apply to your account. # CLI Reference Source: https://docs.ariana.dev/box/cli-reference Complete reference for all box CLI commands and global flags. ## Installation & updates ```bash theme={null} # Install (run once) curl -fsSL https://box.ascii.dev/install | sh # Check for and apply updates box self-update ``` The CLI auto-checks for updates on each run. Suppress with `--no-update`. *** ## Global flags These flags work with any command: | Flag | Description | | ----------------- | -------------------------------------------------- | | `--api-url ` | Override the API endpoint (env: `BOX_API_URL`) | | `--json` | Output machine-readable JSON instead of human text | | `--no-update` | Skip the automatic update check | *** ## Authentication ### `box onboard` Full onboarding flow: opens GitHub OAuth, authenticates, and saves your token. ```bash theme={null} box onboard ``` ### `box login [key]` Sign in with an existing API token, or start the browser OAuth flow if no key is given. ```bash theme={null} box login box login box_abc123... ``` *** ## Box lifecycle ### `box new` Create a new box. ```bash theme={null} box new [--ttl SECONDS] ``` | Flag | Default | Maximum | | ------- | --------------- | ------------------- | | `--ttl` | `3600` (1 hour) | `2592000` (30 days) | Returns the box ID, IP, and initial state. ### `box list` List all your boxes with their current state and ID. ```bash theme={null} box list ``` ### `box info ` Get details for a specific box: state, IP, desktop availability, TTL remaining. ```bash theme={null} box info bx_f7k2q9hd ``` ### `box stop ` Pause a running box. Creates a snapshot then stops billing. The box enters `archiving` → `archived`. ```bash theme={null} box stop bx_f7k2q9hd ``` Snapshotting takes a moment. The box is not yet stopped when the command returns — poll `box info` to confirm `archived` state. ### `box resume ` Resume a stopped box from its last snapshot. ```bash theme={null} box resume bx_f7k2q9hd ``` Requires the box to have a completed snapshot (i.e. it was stopped cleanly via `box stop`). ### `box delete ` Permanently delete a box and all its data. ```bash theme={null} box delete bx_f7k2q9hd ``` ### `box fork ` Clone a box from its latest snapshot into a new independent box. ```bash theme={null} box fork bx_f7k2q9hd ``` Returns the new box ID asynchronously (HTTP 202). Requires the source box to have a completed snapshot. *** ## Access ### `box ssh ` SSH into a box. Manages the key at `~/.ssh/ascii_box_ed25519` automatically. ```bash theme={null} box ssh bx_f7k2q9hd ``` ### `box scp` Copy files to/from a box. Use `bx_:/path` as the remote address. ```bash theme={null} # Download a file box scp bx_f7k2q9hd:/home/user/output.zip ./output.zip # Upload a file box scp ./local-file.txt bx_f7k2q9hd:/home/user/ # Copy a directory recursively box scp --recursive ./my-project bx_f7k2q9hd:/home/user/ ``` | Flag | Description | | ------------- | ---------------------------- | | `--recursive` | Copy directories recursively | ### `box forward ` Forward one or more ports from a box to your local machine. ```bash theme={null} box forward bx_f7k2q9hd --remote 8080 box forward bx_f7k2q9hd --remote 8080,5432 --local 8080,5433 box forward bx_f7k2q9hd --remote 3000 --bind 0.0.0.0 ``` | Flag | Default | Description | | ------------------ | -------------- | -------------------------------- | | `--remote ` | required | Comma-separated ports on the box | | `--local ` | same as remote | Local ports to bind | | `--bind ` | `127.0.0.1` | Local bind address | ### `box desktop ` Open the box's desktop streaming URL in your browser. ```bash theme={null} box desktop bx_f7k2q9hd ``` *** ## AI agents ### `box prompt ` Send a natural-language prompt to an AI agent running inside the box. ```bash theme={null} box prompt bx_f7k2q9hd --provider claude "Fix the failing tests in this repo" box prompt bx_f7k2q9hd --provider codex --model o3 "Refactor auth module" ``` | Flag | Required | Values | | ------------ | -------- | -------------------------------- | | `--provider` | yes | `claude`, `codex`, `claude-code` | | `--model` | no | Provider-specific model name | *** ## Account ### `box limits` Display your current usage, quota, and subscription status. ```bash theme={null} box limits ``` ### `box dashboard` Open your web dashboard in the browser. ```bash theme={null} box dashboard ``` ### `box config` Show the path to your local config file and its current contents. ```bash theme={null} box config ``` Config is stored at `~/.config/ascii/box/config.json`. # Host with box Source: https://docs.ariana.dev/box/hosting Run a service inside a Box and expose it on a stable public HTTPS URL. ## Quick path 1. Enter a Box: ```bash theme={null} box ssh ``` 2. Inside the Box, start your app on an explicit port. Your app must bind to `0.0.0.0`. If it only listens on `localhost` or `127.0.0.1`, the hosted HTTPS URL will not be able to reach it. 3. Inside the Box, run this command to start hosting your app: ```bash theme={null} host 3000 --title "App preview" ``` 4. Open the public HTTPS URL printed by `host`: ```text theme={null} https://-3000.on.ascii.dev ``` If the port is protected, the usable URL includes a `_token` query parameter: ```text theme={null} https://-3000.on.ascii.dev?_token= ``` A fresh `host ` URL is public unless you pass `--private`. If the same Box port was already hosted with protected access, it stays protected and the URL keeps its existing `_token`. If you want the process to survive after your SSH command exits, start it as a detached process before hosting the port. ## Host CLI reference The `host` CLI runs inside a Box and exposes services from that Box on public HTTPS URLs. The service you expose must listen on `0.0.0.0`, not only on `localhost` or `127.0.0.1`. ### `host ` Expose a running service on a stable HTTPS URL: ```bash theme={null} host 3000 host 3000 --title "Login preview" host 3000 --private ``` The command opens the firewall for that port, registers an HTTPS subdomain, and prints the URL. Calling it again for the same port returns the same URL. | Option | Description | | ----------------- | ----------------------------------------------------------------- | | `--title ` | Set the display title for the hosted port. | | `--private` | Require the generated `_token` query parameter to access the URL. | By default, a fresh `host <port>` command creates a public URL. Protected access starts when you pass `--private`, or when the same Box port already has a saved access token. That protection is sticky: hosting the same port again returns a URL with the same `_token` query parameter. ### `host list` Show hosted ports for the current Box: ```bash theme={null} host list ``` Protected ports are shown as `(gated)`. `host list` does not print the access token. Use `host url <port>` to print the full URL with `_token=...`. ### `host url <port>` Wait until the HTTPS URL is ready, then print it: ```bash theme={null} host url 3001 ``` For a protected port, this prints the full token-gated URL: ```text theme={null} https://<box-subdomain>-3001.on.ascii.dev?_token=<access-token> ``` This is useful when one service needs another service's public URL: ```bash theme={null} BACKEND_URL=$(host url 3001) ``` ### `host hide <port>` Take down the public URL: ```bash theme={null} host hide 3000 ``` This closes public access and unregisters the HTTPS route. It does not stop the local server process. Stop the server separately when you are done. Access tokens are preserved, so hosting the same port again keeps existing protected links valid. To get an ungated URL after a port has become protected, host a different port that does not already have a saved access token. # Machine Capabilities Source: https://docs.ariana.dev/box/machines What's pre-installed on every box and what you can do with it. Every box is a Linux VM with a curated set of tools available from the moment you SSH in. Nothing to install before you start working. ## Pre-installed tools ### AI & automation | Tool | Description | | -------- | ----------------------------------------- | | `claude` | Claude Code CLI — AI coding assistant | | `codex` | OpenAI Codex CLI | | `host` | Expose localhost services to the internet | | `lux` | Desktop and browser automation | | `ascii` | Ascii workspace tools | ### Languages & runtimes | Tool | Description | | ----------------- | -------------------------------------------- | | `node` / `npm` | Node.js and npm | | `bun` | Bun JavaScript runtime | | `python3` | Python 3 | | `uv` | Fast Python package runner / project manager | | `go` | Go toolchain | | `rustc` / `cargo` | Rust compiler and package manager | ### Version control | Tool | Description | | ----- | ------------------------------------------------ | | `git` | Git | | `gh` | GitHub CLI — PR creation, issue management, etc. | ### Utilities | Tool | Description | | -------- | ------------------------------------------------- | | `rg` | ripgrep — fast code search | | `jq` | JSON processor | | `curl` | HTTP client | | `docker` | Container runtime (available on supported images) | | `chrome` | Headless Chromium | | `ffmpeg` | Media processing | ## Desktop access Every box has a browser-based desktop stream. Open it with: ```bash theme={null} box desktop bx_f7k2q9hd ``` Useful for tools that need a GUI — browsers, Electron apps, visual debugging. ## SSH access Boxes accept connections over standard SSH. The CLI manages your key automatically at `~/.ssh/ascii_box_ed25519`, but you can also retrieve the private key for use with external tools: ```bash theme={null} # CLI-managed (easiest) box ssh bx_f7k2q9hd # Manual — get the private key box info bx_f7k2q9hd # shows IP and SSH user ``` ## Port forwarding Forward any port from the box to your local machine: ```bash theme={null} box forward bx_f7k2q9hd --remote 3000 ``` See [CLI Reference](/box/cli-reference#box-forward-id) for full options. # Architecture Source: https://docs.ariana.dev/box/overview Instant cloud development sandboxes you can SSH into, run AI agents on, and snapshot at will. Box gives you on-demand Linux VMs in seconds. Each box is a fully isolated machine pre-loaded with the tools you need to code, test, or run AI agents — accessible from your terminal or the web dashboard. ## Key concepts | Concept | What it means | | ------------------ | --------------------------------------------------------------------------- | | **Box** | A single Linux VM with a unique ID like `bx_f7k2q9hd` | | **TTL** | How long the box lives before it auto-deletes (default 1 hour, max 30 days) | | **Snapshot** | A point-in-time image of a box, used for stop/resume and fork | | **Credit seconds** | The billing unit — seconds your box is in an active state | ## Box lifecycle ```mermaid theme={null} stateDiagram-v2 [*] --> provisioning: box new provisioning --> provisioned: VM reserved provisioned --> ready: setup complete ready --> archiving: box stop archiving --> archived: snapshot saved archived --> ready: box resume ready --> [*]: box delete ``` **Billable states:** `provisioned`, `cloning`, `ready`, `idle`, `running`\ **Not billed:** `archived` (stopped), `provisioning`, `archiving`, `error` ## Box IDs Every box gets a unique public ID in the format `bx_<8 chars>` (e.g. `bx_f7k2q9hd`). Use this ID with every CLI command. Internal UUIDs are never exposed. # Quickstart Source: https://docs.ariana.dev/box/quickstart Install Box, finish onboarding, and start your first cloud sandbox. ## Install the CLI <CodeGroup> ```bash macOS theme={null} curl -fsSL https://box.ascii.dev/install | sh ``` ```powershell Windows theme={null} irm https://box.ascii.dev/install.ps1 | iex ``` ```bash Linux theme={null} curl -fsSL https://box.ascii.dev/install | sh ``` </CodeGroup> Onboarding starts automatically after installation and is short: 1. Sign in with GitHub in your browser. 2. Optionally choose repositories for Box to use. You can skip this and add repositories later. 3. Start the base plan in Stripe Checkout. It includes a free-of-charge 7-day trial. 4. Return to the terminal while the CLI waits for billing to become active. 5. Box starts your first machine automatically. ## Next steps <CardGroup> <Card title="Host with box" icon="globe" href="/box/hosting"> Run a service inside a Box and expose it on a stable public HTTPS URL. </Card> </CardGroup>