An open-source AI chatbot app built with Next.js, the Vercel AI SDK, OpenAI, Anthropic, and Vercel KV.
Features · Model Providers · Running locally ·
- Next.js App Router
- React Server Components (RSCs), Suspense, and Server Actions
- Vercel AI SDK for streaming chat UI
- Support for OpenAI (default) and Anthropic
- Edge runtime-ready
- Chat History, rate limiting, and session storage with Vercel KV
- NextAuth.js for authentication
This template ships with OpenAI gpt-3.5-turbo as the default. However, thanks to the Vercel AI SDK, you can switch LLM providers to Anthropic, Hugging Face, or using LangChain with just a few lines of code.
- Install Vercel CLI:
npm i -g vercel - Link local instance with the Vercel project accounts (creates
.verceldirectory):vercel link - Download the environment variables:
vercel env pull
pnpm install
pnpm devnpx inngest-cli@latest devThe app should now be running on localhost:3000.