Open an interactive agent terminal
Work with the native CLI in an open sandbox.
Start from Reuse a sandbox and its configuration. Work with the native CLI in an open sandbox.
Open an interactive terminal
Section titled “Open an interactive terminal”sandbox.attach() starts the agent’s own CLI in your terminal, inside the sandbox. You work with it by hand; the call resolves when you quit, with status and the commits made during the session.
Run it from a real terminal. continuation reopens a captured conversation. The top-level attach() opens and closes its own sandbox, and applies the branch policy when the session exits with status 0.
| Provider | attach() |
|---|---|
| Docker, Podman, host | Supported |
| Daytona | Supported |
| Vercel, Firecracker | Rejected |
Attach needs a CLI agent such as Codex or Claude Code. The built-in harness, fallback agents and replay agents are rejected.

