froogdocs
Dashboard

DocsAgents

Build a platform: a sandbox per user

Products may give each user or project a sandbox with persistent files, a coding agent and a preview URL.

  1. Backend key. froog api-key create backend --preset ci manages only what it created, no billing. Per-user component: --sandbox user-42. See API keys.
  2. Nothing of yours inside. Create with "environment": false and 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>"}}
  3. Template. Install your stack and agent rules once, froog snapshot base --name web-stack, then create with "from": "web-stack".
  4. Ready. Create answers 202; wait for state running or the sandbox.running webhook.
  5. Agent. POST /v1/sandboxes/{name}/prompts (harnesses); stream events to your UI; /steer and /interrupt are send and stop.
  6. Preview. POST /urls {"port": 3000} gives a private URL (its token is a password); "public": true for iframes. Files via signed URLs.
  7. 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_secs auto-stops. Restart servers from the setup script.
  • Per task: start from the template, run, delete.

Starts are rate limited: see limits.