Stitch / docs
Sandboxes

Vercel

Run agents in hosted Vercel sandboxes with your own credentials.

Sandbox details
Providervercel
Default imagevercel-universal
WebsiteVercel

Image Profiles

Set imageProfileId to choose an environment.

ProfileEnvironment
vercel-universalUbuntu 26.04, Node 24, Python 3.14, uv, and common agent tools
vercel-node22Ubuntu 26.04 with Node 22
vercel-node24Ubuntu 26.04 with Node 24
vercel-node26Ubuntu 26.04 with Node 26
vercel-pythonUbuntu 26.04 with Python 3.14 and uv
vercel-ubuntuUbuntu 26.04 with platform agent tools
vercel-archArch Linux with platform agent tools

Authentication

Platform — Coming Soon

Platform authentication is not yet available.

BYOK — Available

Use auth.mode: byok with your Vercel team ID, project ID, and access token. Store the token as a Stitch secret and reference it with tokenSecretName.

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
    imageProfileId: vercel-universal
    resources:
      vcpus: 4
    timeoutMs: 1800000

Resources and Timeout

SettingAllowed valuesDefault
resources.vcpus1, or an even number from 2 to 32Set by Vercel when omitted
timeoutMsA positive number of milliseconds, up to 24 hours10 minutes (600000)

Your Vercel plan may have a lower timeout limit. The Hobby plan allows up to 45 minutes.

Setup

Setup defaults to mode: none. To run a script, set setup.mode: script, choose shell: sh or shell: bash, and provide script and timeoutMs. The setup timeout must not exceed one hour or the sandbox timeout.

Ubuntu profiles support sudo apt-get. The Arch profile supports sudo pacman.

For example, configure a sandbox to install dependencies before the agent runs:

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
    setup:
      mode: script
      shell: bash
      script: npm ci
      timeoutMs: 300000

This gives dependency installation up to 5 minutes. Use npm ci for repositories with a package-lock.json file.

On this page