Skip to main content

Vercel

aixyz has first-class Vercel support using the Build Output API v3.
The build automatically detects the Vercel environment via VERCEL=1 and outputs a Vercel serverless function using Bun Runtime. The agent URL is auto-detected from Vercel environment variables.

vercel.json

Every aixyz project includes a vercel.json:
vercel.json
No need to pass --vercel — the flag is automatically detected during Vercel builds. Set OPENAI_API_KEY and any payment environment variables in the Vercel dashboard under Settings → Environment Variables.

Standalone (Bun Runtime)

For direct deployment on Bun-compatible hosts (DigitalOcean, Railway, Fly.io, etc.):
The build outputs a single bundled file at .aixyz/output/server.js.

Environment Variables

Set these before running:

Docker

Using the standalone build:
Dockerfile
Build and run:
Never bake API keys into Docker images. Pass them as environment variables at runtime.
Set the url field in aixyz.config.ts manually for Docker deployments since Vercel environment variables won’t be available.

Build Output Formats

FormatFlagOutput PathDescription
Standalone(default).aixyz/output/server.jsSingle-file bundle, run with bun
VercelVERCEL=1 or --output vercel.vercel/output/Build Output API v3 for serverless
Executable--output executable.aixyz/output/serverSelf-contained binary, no Bun runtime required

Verifying Your Deployment

After deploying, verify your agent is accessible: