> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# A dev box for a coding agent

> Claude Code or Codex inside a sandbox, with previews you can open.

**You want** a coding agent to work in its own machine: install packages, run servers, break things.

**Pieces.** The `agent-desktop` [template](/docs/concepts/templates.md#agent-desktop) ships seven agent CLIs (Claude Code, Codex, OpenCode, pi, Kimi Code, Mistral Vibe, Cursor Agent), Node, Python, Bun, Rust, Java, `gh`, Chrome and a desktop, `ripgrep` and `jq`, with 2 vCPU, 6 GiB and 8 GiB of disk.

**1. Create the sandbox with the agent's key**

Pass the provider key as an environment variable at create time. The agents need their own credentials.

```bash coding_box.sh
SANDBOX_ID=$(anona-compute create -t agent-desktop --timeout 1h --json | jq -r .sandbox_id)
echo "$SANDBOX_ID"
anona-compute delete "$SANDBOX_ID"
```

**2. Work in it**

Open a terminal with [`anona-compute ssh`](/docs/guides/ssh) or watch and take over from the browser with [live view](/docs/guides/live-view.md).

**3. Show what it built**

When the agent starts a dev server on a port, share it with a [preview link](/docs/guides/preview-links.md): `anona-compute preview "$SANDBOX_ID" 3000`. The link works for anyone who has it, until it expires (1 minute to 24 hours).

**Driving it from your own agent.** Register the [MCP server](/docs/guides/mcp.md) so an outer agent can create these boxes and hand work to the one inside.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.