.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
OPENAI_API_KEY
secret
Get your OpenAI API Key here: https://platform.openai.com/account/api-keys
OPENROUTER_API_KEY
secret
Get your OpenRouter API Key here: https://openrouter.ai/settings/keys
FIRECRAWL_API_KEY
secret
Get your Firecrawl API Key here: https://www.firecrawl.dev/
AUTH_SECRET
secret
Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32`
MAX_DURATION
Maximum duration in seconds for serverless functions (Vercel Edge has a lower limit on lower plans)
BLOB_READ_WRITE_TOKEN
secret
Instructions to create a Vercel Blob Store here: https://vercel.com/docs/storage/vercel-blob
POSTGRES_URL
secret
Instructions to create a database here: https://vercel.com/docs/storage/vercel-postgres/quickstart
UPSTASH_REDIS_REST_URL
Get your Upstash Redis URL and Token here: https://console.upstash.com/
UPSTASH_REDIS_REST_TOKEN
secret
Get your Upstash Redis Token here: https://console.upstash.com/
BYPASS_JSON_VALIDATION
Bypass JSON schema validation for models that don't support it
TOGETHER_API_KEY
secret
Get your TogetherAI API Key here: https://together.ai/ (optional)