Stitch / docs
Sandboxes

Sandboxes

Choose where your agents run and prepare their execution environment.


Sandboxes provide the environment where your agents run. Choose an image profile for your toolchain and use setup scripts to prepare the workspace.

Schema

Hosted sandboxes JSON Schema: the factory's sandboxes array. Only available hosted options appear in this schema.

stitch-factory.yaml
sandboxes:
  - key: workspace
    name: Workspace
    provider: vercel
    auth:
      mode: byok
      teamId: REPLACE_WITH_YOUR_TEAM_ID
      projectId: REPLACE_WITH_YOUR_PROJECT_ID
      tokenSecretName: VERCEL_TOKEN
    resources:
      vcpus: 4
    timeoutMs: 1800000

Replace identifiers before full validation. Store the access token as a managed secret. Optional setup scripts and timeouts must satisfy the schema and cross-field validation.

On this page