# Vercel Deployment Guide
The easiest way to get started with **better-chatbot** is to deploy it directly to Vercel.
You only need **one AI Provider API Key** (OpenAI, Gemini, Claude, etc.) to run the app.
Database, file storage, and caching are all available on free tiers.
---
## Steps
1. **Click this button** to start the deployment process:
[](https://vercel.com/new/clone?repository-url=https://github.com/cgoinglove/better-chatbot&env=BETTER_AUTH_SECRET&env=OPENAI_API_KEY&env=GOOGLE_GENERATIVE_AI_API_KEY&env=ANTHROPIC_API_KEY&envDescription=BETTER_AUTH_SECRET+is+required+%28enter+any+secret+value%29.+At+least+one+LLM+provider+API+key+%28OpenAI,+Claude,+or+Google%29+is+required,+but+you+can+add+all+of+them.+See+the+link+below+for+details.&envLink=https://github.com/cgoinglove/better-chatbot/blob/main/.env.example&demo-title=better-chatbot&demo-description=An+Open-Source+Chatbot+Template+Built+With+Next.js+and+the+AI+SDK+by+Vercel.&products=[{%22type%22:%22integration%22,%22protocol%22:%22storage%22,%22productSlug%22:%22neon%22,%22integrationSlug%22:%22neon%22},{%22type%22:%22integration%22,%22protocol%22:%22storage%22,%22productSlug%22:%22upstash-kv%22,%22integrationSlug%22:%22upstash%22},{%22type%22:%22blob%22}])
2. **Click the "Create" button** on Vercel to begin setting up your project.
3. **Add all required resources.**
When prompted, add:
- **Database (Neon Postgres)**
- **Blob Storage (Vercel Blob)**
- **Redis (Upstash KV)**
All of these are available with free-tier plans.
4. **Set Environment Variables.**
- You must enter a value for **BETTER_AUTH_SECRET** (any random string is fine). You can generate one [here](https://auth-secret-gen.vercel.app/).
- Enter your **AI Provider API Key(s)**. Only one is required to start (OpenAI, Google Gemini, or Anthropic Claude).
- You can use placeholder values and update them later in **Project Settings > Environments** after deployment.
5. **Deploy your project.**
Once everything is set, Vercel will automatically build and deploy your project.
6. **Update API Keys and Settings (optional).**
After deployment, go to **Settings > Environments** to add or update your API keys and configuration.
- Example environment file: [example.env](https://github.com/cgoinglove/better-chatbot/blob/main/.env.example)
- You can customize authentication, signup/login, and other options by editing your environment variables here.
---
## Notes
- To enable **web search**, you can request an API key from [Exa](https://dashboard.exa.ai). A free tier is available.
- Only Remote (SSE, Streamable) MCP servers are supported. STDIO-based servers are not supported on Vercel (consider Docker or Render if needed).
- Check `.env.example` for all available settings.