This guide walks through creating a sandbox, waiting for it to become ready, and tearing it down. By default everything runs on the hosted platform at app.amika.dev.Documentation Index
Fetch the complete documentation index at: https://docs.amika.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An Amika account and an API token. The CLI uses
amika auth login; the SDK expects you to source a token viaaccessTokenortokenSource. - (For the
--gitflow) Git installed and a repo to mount. - For the SDK:
npm install @amika/sdk.
Step 1 — Create the sandbox
The simplest sandbox uses thecoder preset (Ubuntu 24.04 with Node, Python,
and the Claude Code / Codex / OpenCode CLIs pre-installed).
--git (CLI) or repoUrl (SDK). The
CLI’s --git accepts a local path or a git URL; the SDK accepts a URL.
Step 2 — Wait until it’s ready
A new sandbox starts in stateinitializing and transitions to active /
running / started once it’s reachable.
waitForSandbox throws an AmikaError if the sandbox reaches the failed
state. New state values can appear over time — the wait helper treats
active, running, and started as ready and anything else (except
failed) as still working.