No description
Find a file
2026-04-17 07:05:40 -07:00
.cursor/rules Restore Ultracite + fix sidebar (#1233) 2025-09-21 19:02:31 +01:00
.github/workflows feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
.vscode fix: title generation + ai sdk upgrade (#1392) 2026-01-15 16:06:42 +00:00
app feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
artifacts feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
components fix: use optional chaining to fix lint errors (#1485) 2026-04-16 18:43:22 +02:00
hooks feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
lib drop kimi-k2-0905, default to kimi-k2.5 (#1487) 2026-04-17 07:05:40 -07:00
public feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
tests feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
.env.example feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
.gitignore feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
biome.jsonc Upgrades (#1419) 2026-03-13 13:12:33 -07:00
components.json Redesign sidebar (#1455) 2026-03-13 20:30:52 -07:00
drizzle.config.ts feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
instrumentation-client.ts fix(botid): re-add bot protection to demo branch (#1445) 2026-03-04 11:20:57 -08:00
instrumentation.ts rename openchat branding to chatbot on demo (#1421) 2026-02-23 17:24:17 -08:00
LICENSE Clean up deps 2024-08-24 23:23:37 -05:00
next.config.ts chore: conditionalize mfe config behind demo env var (#1463) 2026-03-20 03:21:31 -07:00
package.json feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
playwright.config.ts test: add playwright e2e tests for chat, auth, model selector, and api (#1355) 2025-12-15 14:43:39 +00:00
pnpm-lock.yaml feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
postcss.config.mjs Restore Ultracite + fix sidebar (#1233) 2025-09-21 19:02:31 +01:00
proxy.ts feat: v1 — persistent shell, model gateway, artifact improvements (#1462) 2026-03-20 02:37:02 -07:00
README.md update links in README.md (#1476) 2026-04-01 15:11:37 -07:00
tsconfig.json fix: scroll behavior, browser back navigation, and weather widget sizing (#1336) 2025-11-30 03:48:27 +00:00
vercel-template.json Add vercel-template.json (#1193) 2025-09-13 14:26:49 -04:00
vercel.json chore: conditionalize mfe config behind demo env var (#1463) 2026-03-20 03:21:31 -07:00

Chatbot

Chatbot

Chatbot (formerly AI Chatbot) is a free, open-source template built with Next.js and the AI SDK that helps you quickly build powerful chatbot applications.

Read Docs · Features · Model Providers · Deploy Your Own · Running locally


Features

  • Next.js App Router
    • Advanced routing for seamless navigation and performance
    • React Server Components (RSCs) and Server Actions for server-side rendering and increased performance
  • AI SDK
    • Unified API for generating text, structured objects, and tool calls with LLMs
    • Hooks for building dynamic chat and generative user interfaces
    • Supports OpenAI, Anthropic, Google, xAI, and other model providers via AI Gateway
  • shadcn/ui
  • Data Persistence
  • Auth.js
    • Simple and secure authentication

Model Providers

This template uses the Vercel AI Gateway to access multiple AI models through a unified interface. Models are configured in lib/ai/models.ts with per-model provider routing. Included models: Mistral, Moonshot, DeepSeek, OpenAI, and xAI.

AI Gateway Authentication

For Vercel deployments: Authentication is handled automatically via OIDC tokens.

For non-Vercel deployments: You need to provide an AI Gateway API key by setting the AI_GATEWAY_API_KEY environment variable in your .env.local file.

With the AI SDK, you can also switch to direct LLM providers like OpenAI, Anthropic, Cohere, and many more with just a few lines of code.

Deploy Your Own

You can deploy your own version of Chatbot to Vercel with one click:

Deploy with Vercel

Running locally

You will need to use the environment variables defined in .env.example to run Chatbot. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various AI and authentication provider accounts.

  1. Install Vercel CLI: npm i -g vercel
  2. Link local instance with Vercel and GitHub accounts (creates .vercel directory): vercel link
  3. Download your environment variables: vercel env pull
pnpm install
pnpm db:migrate # Setup database or apply latest database changes
pnpm dev

Your app template should now be running on localhost:3000.