OpenAI + Anthropic ready

Ship your AI SaaS
this weekend

AIKit is a production-ready Next.js starter with streaming AI chat, auth, Stripe billing, and per-plan token limits — all wired up and ready to customize.

One-time purchase · Lifetime updates · Full source code

Everything you need to ship an AI SaaS

The hard parts — AI integration, auth, billing, token limits — already done.

Streaming AI chat

Real-time streaming responses from OpenAI or Anthropic. Switch providers with one env var. Full conversation history with context window.

Model selector

Users pick GPT-4o or Claude per conversation. Starter prompts, copy button, markdown rendering with syntax highlighting.

Token limits per plan

FREE gets 50k tokens/month. PRO gets 1M. Enterprise is unlimited. Atomic DB tracking — no overspending, ever.

Auth — done

Clerk handles sign-up, login, Google & GitHub OAuth, magic links. Route protection. Zero config beyond your API key.

Stripe — done

3-tier subscriptions tied to token limits. Checkout, billing portal, all webhooks handled. FREE → PRO → Enterprise upgrade flow.

Dashboard — done

Token usage bar, stats cards, upgrade banner, billing and settings pages. Dark mode. Deploy to Vercel in 30 minutes.

What's included

Full source code. No black boxes, no locked features.

  • Next.js 16 App Router
  • Streaming AI chat (OpenAI + Anthropic)
  • Model selector per conversation
  • Suggested starter prompts
  • Copy message button
  • Conversation sidebar + history
  • Per-plan token limits (50k / 1M / ∞)
  • Monthly token usage tracking (DB)
  • Clerk auth (OAuth + email + magic links)
  • Stripe subscriptions + webhooks
  • Drizzle ORM + PostgreSQL
  • 3-tier pricing page
  • Token usage bar in dashboard
  • shadcn/ui + Tailwind dark mode
  • TypeScript + .env.example + README

Tech stack

Modern, well-maintained tools. No vendor lock-in.

FrameworkNext.js 16
AIOpenAI / Anthropic
AuthClerk
PaymentsStripe
DatabaseDrizzle + PostgreSQL
UITailwind + shadcn/ui
DeployVercel + Supabase

Switchable AI provider

Set AI_PROVIDER=openai or AI_PROVIDER=anthropic. Everything else stays the same.

From zero to live in 4 steps

01
Clone the repo
Download the source code and run npm install.
02
Add your keys
Copy .env.example — add Clerk, Stripe, DB, and OpenAI or Anthropic credentials.
03
Customize
Change the name, colors, plans, token limits, and system prompt. It's all yours.
04
Deploy
Push to Vercel. Your AI SaaS is live and taking payments.

Your AI SaaS, live this weekend

Stop spending weeks on infrastructure. Buy AIKit once, ship your product immediately.

One-time purchase · Lifetime updates · Full source code