# Vercel

URL: https://docs.usestitch.ai/docs/resources/sandboxes/vercel



## Image Profiles [#image-profiles]

Set `imageProfileId` to choose an environment.

| Profile            | Environment                                                    |
| ------------------ | -------------------------------------------------------------- |
| `vercel-universal` | Ubuntu 26.04, Node 24, Python 3.14, uv, and common agent tools |
| `vercel-node22`    | Ubuntu 26.04 with Node 22                                      |
| `vercel-node24`    | Ubuntu 26.04 with Node 24                                      |
| `vercel-node26`    | Ubuntu 26.04 with Node 26                                      |
| `vercel-python`    | Ubuntu 26.04 with Python 3.14 and uv                           |
| `vercel-ubuntu`    | Ubuntu 26.04 with platform agent tools                         |
| `vercel-arch`      | Arch Linux with platform agent tools                           |

## Authentication [#authentication]

### Platform — Coming Soon [#platform--coming-soon]

Platform authentication is not yet available.

### BYOK — Available [#byok--available]

Use `auth.mode: byok` with your Vercel team ID, project ID, and access token.
Store the token as a [Stitch secret](/docs/resources/secrets) and reference it with
`tokenSecretName`.

```yaml title="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 [#resources-and-timeout]

| Setting           | Allowed values                                    | Default                    |
| ----------------- | ------------------------------------------------- | -------------------------- |
| `resources.vcpus` | `1`, or an even number from `2` to `32`           | Set by Vercel when omitted |
| `timeoutMs`       | A positive number of milliseconds, up to 24 hours | 10 minutes (`600000`)      |

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

## Setup [#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:

```yaml title="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.
