
Full-featured AI Chatbot Nuxt application with authentication, chat history, multiple pages, collapsible sidebar, keyboard shortcuts, light & dark mode, command palette and more. Built using Nuxt UI components and integrated with AI SDK v5 for a complete chat experience.
npm create nuxt@latest -- -t ui/chat
Make sure to install the dependencies:
pnpm install
Set up your environment variables by creating a .env file:
# DatabaseDATABASE_URL=<your-postgresql-database-url># GitHub OAuth (optional, for authentication)NUXT_OAUTH_GITHUB_CLIENT_ID=<your-github-oauth-app-client-id>NUXT_OAUTH_GITHUB_CLIENT_SECRET=<your-github-oauth-app-client-secret># AI Configuration via Vercel AI Gateway (unified API for all providers)AI_GATEWAY_API_KEY=<your-vercel-ai-gateway-api-key># Password for nuxt-auth-utils (minimum 32 characters)NUXT_SESSION_PASSWORD=<your-password>
[!TIP] With Vercel AI Gateway, you don't need individual API keys for OpenAI, Anthropic, etc. The AI Gateway provides a unified API to access hundreds of models through a single endpoint with automatic load balancing, fallbacks, and spend monitoring.
To add authentication with GitHub, you need to create a GitHub OAuth application.
Run database migrations:
pnpm db:migrate
Start the development server on http://localhost:3000:
pnpm dev
Build the application for production:
pnpm build
Locally preview production build:
pnpm preview
Deploy to Vercel:
npx vercel
Or connect your repository to Vercel for automatic deployments:
[!NOTE] Make sure to configure your PostgreSQL database connection and run migrations in your production environment.
The application is configured to use Vercel AI Gateway which provides:
Simply configure your AI_GATEWAY_API_KEY in your Vercel environment variables for production use.
AI_GATEWAY_API_KEYThe AI Gateway automatically handles authentication with all supported AI providers including OpenAI, Anthropic, Google, xAI, and many others.
Install Renovate GitHub app on your repository and you are good to go.