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

# Give Claude Code, Codex or Cursor a computer

> Register the MCP server once; your agent creates sandboxes, runs code in them and shares what it built.

**You want** the agent in your editor to run things somewhere other than your laptop: try an install script, start a server, run a test suite on a clean machine, without touching your files.

**Pieces.** `anona-compute mcp` is an MCP server with 23 tools: create, run commands, read and write files, background processes, preview links, live view, usage. It acts with your CLI sign-in, so your role and key decide what it can do. See [Agents via MCP](/docs/guides/mcp.md).

**1. Set it up**

Fastest: paste the one-line [setup prompt](/docs/agents/overview.md) into the agent, and it installs, signs in and registers itself. By hand, for Claude Code:

```text register_mcp
npm install -g @anona-labs/anona-compute
anona-compute login
claude mcp add anona-compute -- anona-compute mcp
```

Codex, Cursor and other clients: [Agents via MCP](/docs/guides/mcp.md).

**2. Ask in plain words**

The agent picks the tools. Prompts that work well:

```text example_prompts
Create a python sandbox, clone https://github.com/psf/requests, run its tests, and tell me what failed.

Start a node sandbox, scaffold a Vite app, run the dev server on port 5173, and give me a preview link.

In a fresh base sandbox with internet off, run ./install.sh from this repo and show me every file it wrote.

How much have my sandboxes cost this month, and which were the most expensive?
```

**3. Tell it to clean up**

Sandboxes are billed while they run. Add to the agent's instructions (`CLAUDE.md`, `AGENTS.md`, rules): "delete Anona sandboxes when you are done, and create them with a timeout". `create_sandbox` takes `timeout_seconds`, so a forgotten one ends on its own.

**Watching it.** Ask for a live-view link (`get_live_view_url`) to see its terminal or desktop as it works. For an agent that should only look, start the server with `anona-compute mcp --read-only`: 8 tools that change nothing.

**The other way round.** To run the coding agent itself inside a sandbox, use the `agent-desktop` template: [A dev box for a coding agent](/docs/recipes/coding-agent-box.md).


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