amp template supports AMP_API_KEY.
Run Amp
Create a sandbox from theamp template, run Amp headlessly, and clean up. The
SDK and CLI paths are equivalent — use the one that matches your workflow.
Interactive terminal
Open a PTY instead of a headless run to drive Amp interactively:session_id from sandbox pty create with --session-id.
Work on a cloned repository
Streaming JSON
Thread continuation
Amp manages threads through its CLI. Keep the sandbox alive when you want to continue a thread with follow-up tasks, then inspect the resulting diff throughsandbox.git.diff().