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

# Quickstart

> Create a sandbox, run a command and clean up, in about two minutes.

**1. Get an API key**

Sign in to the [dashboard](https://compute.anonalabs.com), open **API keys** and create a key. Keys look like `ac_` followed by hex (older keys start with `e2b_` and still work); the secret is shown once.

```bash env.sh
export ANONA_API_KEY=ac_YOUR_API_KEY
```

The Anona SDK extras and the CLI read `ANONA_API_KEY` and default to `compute.anonalabs.com`.

**2. Install**

```text Python
pip install anona-compute
```

```text TypeScript
npm install @anona-labs/compute-sdk e2b
```

```text CLI
npm install -g @anona-labs/anona-compute   # one native binary for Linux, macOS and Windows (amd64, arm64)
```

The CLI is also a direct download from the [releases page](https://github.com/anonalabs/anona-compute-sdk/releases), or `go install github.com/anonalabs/anona-compute-sdk/cli/cmd/anona-compute@latest`; see [Install the CLI](/docs/cli/overview.md#install). The stock E2B SDK also works on its own (`pip install e2b` or `npm install e2b` with `E2B_DOMAIN=compute.anonalabs.com`); see [Migrate from E2B](/docs/migrate-from-e2b.md).

**3. Run code in a sandbox**

```python quickstart.py
from anona_compute import Sandbox

sbx = Sandbox.create("base")  # a KVM microVM, ready in about a second
print("sandbox", sbx.sandbox_id)

result = sbx.commands.run("uname -a && whoami")
print(result.stdout)

sbx.files.write("/home/user/hello.txt", "hello from Anona\n")
print(sbx.files.read("/home/user/hello.txt"))

sbx.kill()
```

```typescript quickstart.ts
import { Sandbox } from "@anona-labs/compute-sdk";

const sbx = await Sandbox.create("base"); // a KVM microVM, ready in about a second
console.log("sandbox", sbx.sandboxId);

const result = await sbx.commands.run("uname -a && whoami");
console.log(result.stdout);

await sbx.files.write("/home/user/hello.txt", "hello from Anona\n");
console.log(await sbx.files.read("/home/user/hello.txt"));

await sbx.kill();
```

```bash quickstart.sh
printenv ANONA_API_KEY | anona-compute login --with-api-key   # or: anona-compute login (browser)

SANDBOX_ID=$(anona-compute create -t base --json | jq -r .sandbox_id)
anona-compute exec "$SANDBOX_ID" -- 'uname -a && whoami'
anona-compute list
anona-compute delete "$SANDBOX_ID"
```

## Next

> [card] [Run code](/docs/guides/run-code.md)
>
> Commands, exit codes, environment and working directories.

> [card] [Long-running sandboxes](/docs/concepts/lifecycle.md)
>
> Timeouts, no-limit sandboxes, pause and resume.

> [card] [Templates](/docs/concepts/templates.md)
>
> `base`, `python`, `node`, `code-interpreter`, `desktop`, `agent-desktop`.

> [card] [Agents over MCP](/docs/guides/mcp.md)
>
> Let Claude Code, Codex or Cursor drive sandboxes.


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