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.
-
Click the "Create" button on Vercel to begin setting up your project.
-
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.
-
Set Environment Variables.
- You must enter a value for BETTER_AUTH_SECRET (any random string is fine). You can generate one here.
- 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.
-
Deploy your project. Once everything is set, Vercel will automatically build and deploy your project.
-
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
- You can customize authentication, signup/login, and other options by editing your environment variables here.
- To enable web search, you can request an API key from Exa. 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.examplefor all available settings.