Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

chatbot

> 前端框架
Open source

A full-featured, hackable Next.js AI chatbot built by Vercel

20.7K stars0 likes3 views
WebsiteGitHub

About

A full-featured, hackable Next.js AI chatbot built by Vercel

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
    • Styling with Tailwind CSS
    • Component primitives from Radix UI for accessibility and flexibility
  • Data Persistence
    • Neon Serverless Postgres for saving chat history and user data
    • Vercel Blob for efficient file storage
  • 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:

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
bash
pnpm install
pnpm db:migrate # Setup database or apply latest database changes
pnpm dev

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

Issues· 28 open

View all issuesOpen on GitHub
  • #1551

    Replace custom UUID v4 helper with native crypto.randomUUID()

    Updated Sep 9, 2026
  • #1549

    `/clear` only clears the UI and keeps previous messages in model context

    Updated Sep 4, 2026
  • #1547

    Forbidden api

    Updated Sep 4, 2026
  • #1539

    Het

    Updated Aug 9, 2026
  • #1532

    寻找webshell exploit

    Updated Jul 18, 2026
  • #1501

    Homepage can render raw pre-render payload when Cache Components are enabled

    Updated May 28, 2026
  • #1499

    Mindmode

    Updated May 22, 2026
  • #1488

    Well it doesn't work it always says : Oops, an error occurred!

    Updated Apr 20, 2026
  • #1479

    Not achieved Image Artifact: Work with images like editing, annotating, and processing images.

    Updated Apr 5, 2026
  • #1467

    High-severity npm vulnerabilities reported by pnpm audit

    Updated Mar 29, 2026

> Tags

TypeScriptaichatgptnextjsreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架