Nuxt UI app using the aisdk v5: streaming AI chat, multi-model support, AI Gateway, and generative UI

A modern, full-featured AI chatbot application built with Nuxt 3, Nuxt UI Pro, and the Vercel AI SDK v5. Features real-time streaming, multiple AI models support via AI Gateway, persistent chat history with PostgreSQL, and a beautiful responsive interface.
git clone <your-repo-url>
cd nuxt-ui-chat
pnpm install
Create a .env file with the following variables:
# GitHub OAuth (create at https://github.com/settings/applications/new)
NUXT_OAUTH_GITHUB_CLIENT_ID=<your-github-oauth-app-client-id>
NUXT_OAUTH_GITHUB_CLIENT_SECRET=<your-github-oauth-app-client-secret>
# Database (recommended: Neon PostgreSQL)
DATABASE_URL=<your-postgresql-connection-string>
# Vercel AI Gateway (optional but recommended for analytics and caching)
AI_GATEWAY_API_KEY=<your-vercel-ai-gateway-api-key>
# Nuxt UI Pro License (required for production)
NUXT_UI_PRO_LICENSE=<your-nuxt-ui-pro-license>
We recommend using Neon for PostgreSQL hosting, especially with Vercel’s integration:
DATABASE_URLpnpm db:generate
pnpm db:migrate
For better analytics, caching, and cost optimization:
AI_GATEWAY_API_KEYStart the development server:
pnpm dev
The app will be available at http://localhost:3000
Build for production:
pnpm build
Preview production build locally:
pnpm preview
This app can be deployed on any platform that supports Node.js and PostgreSQL:
# Generate new migration after schema changes
pnpm db:generate
# Apply migrations to database
pnpm db:migrate
# Type checking
pnpm typecheck
# Linting
pnpm lint
TODO:
This project requires a Nuxt UI Pro license for production use.
Feel free to contribute by opening issues or submitting pull requests!
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.