An Open-Source AI Chatbot extenstion from the Template Built With Next.js and the AI SDK by Vercel.
screenrecord2.mp4
Features · Model Providers · Deploy Your Own · Running locally
-
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
-
- Unified API for generating text, structured objects, and tool calls with LLMs
- Hooks for building dynamic chat and generative user interfaces
- Supports OpenAI (default), Anthropic, Cohere, and other model providers
-
- Styling with Tailwind CSS
- Component primitives from Radix UI for accessibility and flexibility
-
Data Persistence
- Postgres for saving chat history and user data
- minio for efficient file storage
-
Simple and secure authentication with Google Oauth and Auth0 can easily extend to other providers using NextAuth.js
- OpenAI
- Ollama
- Groq
- Bedrock
You will need to use the environment variables defined in .env.example
to run Chatbot.
pnpm install
npx drizzle-kit generate
npx drizzle-kit migrate
pnpm dev
Your app template should now be running on localhost:3000.
By default all login is restricted , user email needs to be added to VerifiedUsers table . This can be done by manually adding it to db or through this script.
pnpm users:add --admin username@email.com
Only admin users are allowed to edit the model,provider,mcp tools config in settings page as of now.
Run this command again once the user signed up to make them admin
pnpm users:add --admin username@email.com