Understand the Sandstorm runtime model
mainEvery request follows a specific lifecycle:
- Sandbox Creation: Sandstorm creates a fresh sandbox using the configured runtime (E2B by default).
- Upload: Your configuration, prompt, and any specified files are uploaded to the sandbox.
- Execution: The Claude Agent SDK runs inside the sandbox using the configured tools.
- Streaming: Sandstorm streams events back to the user via CLI, API, or Slack.
- Cleanup: The sandbox is destroyed once the task is finished.