Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A full-featured AI chatbot app template built with Nuxt UI and Vercel AI SDK, featuring streaming chat, GitHub auth, and persistent history.
The Nuxt AI Chatbot Template is a production-ready AI chatbot boilerplate for Nuxt that combines streaming chat powered by the Vercel AI SDK with GitHub authentication and persistent chat history.
The Nuxt AI Chatbot Template is a complete chat application boilerplate for the Nuxt framework. It takes your AI provider credentials as configuration and produces a production-ready web app where users can log in with GitHub, send messages, receive streaming AI responses, upload files, and revisit past conversations. It is maintained as part of the nuxt-ui-templates organization and is available on GitHub.
The template is aimed at developers who want to ship a custom AI chatbot without building the chat UI, auth, and data layer from scratch. It is also useful for product teams evaluating AI SDK integrations and for Nuxt developers looking for a reference implementation of authentication, file uploads, and real-time streaming. Additionally, anyone deploying to Vercel can take advantage of the automatic AI Gateway and Turso database configuration.
To get started, create a new project with the command npm create nuxt@latest -- -t ui/chat, then install dependencies with pnpm install, run database migrations with pnpm db:migrate, and start the development server with pnpm dev. To enable authentication, you add GitHub OAuth credentials and a session password to your environment. For AI responses in production, the Vercel AI Gateway is configured automatically when deployed to Vercel; for local development you set an AI_GATEWAY_API_KEY in a .env file.
Authentication is required for file uploads, but the chat interface itself works without logging in. GitHub OAuth is enabled by setting NUXT_OAUTH_GITHUB_CLIENT_ID, NUXT_OAUTH_GITHUB_CLIENT_SECRET, and a session password of at least 32 characters.
With the Vercel AI Gateway you do not need individual API keys for each provider when deploying to Vercel. The gateway uses a single AI_GATEWAY_API_KEY to access models from OpenAI, Anthropic, and others through one endpoint.
During local development it uses SQLite. In production, the recommended setup is Turso, which can be provisioned automatically through the Vercel integration and exposed via TURSO_DATABASE_URL and TURSO_AUTH_TOKEN.
Yes, a live demo is hosted at chat-template.nuxt.dev, and the template comes with a one-click deploy button for Vercel.
