Products may give each user or project a sandbox with persistent files, a coding agent and a preview URL.
- Backend key.
froog api-key create backend --preset cimanages only what it created, no billing. Per-user component:--sandbox user-42. See API keys. - Nothing of yours inside. Create with
"environment": falseand pass the user's own variables:POST /v1/sandboxes {"name": "user-42", "from": "web-stack", "environment": false, "env": {"TENANT_ID": "42", "ANTHROPIC_API_KEY": "<the user's key>"}} - Template. Install your stack and agent rules once,
froog snapshot base --name web-stack, then create with"from": "web-stack". - Ready. Create answers
202; wait for staterunningor thesandbox.runningwebhook. - Agent.
POST /v1/sandboxes/{name}/prompts(harnesses); stream events to your UI;/steerand/interruptare send and stop. - Preview.
POST /urls {"port": 3000}gives a private URL (its token is a password);"public": truefor iframes. Files via signed URLs. - Retention. Monitoring off and zero data retention keep nothing.
Patterns and cost
Each setup slot runs one sandbox 24/7 ($8.16 a month for a resumable default, $7.48 ephemeral).
- Always on: one slot per user or project.
- More users than slots: stop sandboxes when users leave (disk kept 14 days) and start them on return (~15 s);
ttl_secsauto-stops. Restart servers from the setup script. - Per task: start from the template, run, delete.
Starts are rate limited: see limits.