Configuration
Enable providers inchat.config.ts:
chat.config.ts
Environment Variables
| Provider | Environment Variables |
|---|---|
| GitHub | AUTH_GITHUB_ID, AUTH_GITHUB_SECRET |
AUTH_GOOGLE_ID, AUTH_GOOGLE_SECRET | |
| Vercel | VERCEL_APP_CLIENT_ID, VERCEL_APP_CLIENT_SECRET |
bun run prebuild. It checks that enabled providers have their required env vars set. Missing vars will fail the build.
Anonymous Mode
Users can try the app without signing up. Anonymous sessions:- Have limited message credits
- Access a subset of models and tools
- Do not persist chat history to database
chat.config.ts:
chat.config.ts
models.anonymousModels.
Auth Secret
Generate a secureAUTH_SECRET: