AI SaaS Kit
Your AI SaaS, minus the first ten weeks.
A production-grade Next.js 16 starter with auth, multi-tenant workspaces, Stripe billing, usage metering, and streaming AI chat wired to 19 providers. Clone it, add your keys, and spend your time on the product only you can build.
The ten weeks you'd build anyway
Before an AI SaaS can take its first signup, somebody has to build the plumbing. None of it is your product. All of it is your problem.
- Sign-up, email verification, password reset, OAuth
- Workspaces, invites, member roles
- Stripe checkout, webhooks, plan switching, billing portal
- Token metering, monthly caps, rate limiting
- Streaming chat UI with conversation history
- Admin tools: suspensions, plan overrides, maintenance mode
# what ships
Everything in the box
$ auth
Authentication
Email/password with verification, password reset, magic-link sign-in, Google and GitHub OAuth, session management, and admin impersonation for support.
$ workspaces
Multi-tenant workspaces
Every user gets a workspace on signup. Invite by email, assign roles, accept-invite flow, rename, leave, delete. All wired.
$ ai-chat
AI chat & streaming
Streaming chat on Vercel AI SDK 6 with persistent history, auto-generated titles, per-workspace system prompts, and 19 pre-wired providers: OpenAI, Anthropic, Google, Groq, Bedrock, Vertex, even local Ollama. Swap models with an env var. Select any message to quote it in your reply, and watch a live context-window meter break down token use and cost — with owner/admin toggles to show or hide tool calls and the meter per workspace.
$ agent-tools
Agent tools
Calculator, SSRF-protected data fetch, and web search with three pluggable backends (Tavily, Exa, Firecrawl). Gated by plan, extensible by design.
$ billing
Stripe subscription billing
Three plan tiers for your customers, checkout, in-place plan switching, billing portal, and webhook handling. The whole revenue pipeline.
$ metering
Metering & rate limits
Per-message token tracking, monthly caps by plan, soft warnings at 80%, and per-workspace sliding-window rate limiting on Upstash Redis.
$ admin
Admin portal
Analytics, user suspension, plan overrides, maintenance mode, and user impersonation with a visible banner.
$ theme
Visual theme customizer
Rebrand the whole app from an admin UI — no code, no redeploy. A super-admin tunes color palettes (primary/secondary/tertiary, light + dark), corner radius, shadows, and the shell background (solid, gradient, or image with a glass tint), plus component effects like hover/active states, button ripple, and frosted-glass surfaces. A live preview renders real components grouped by where they appear, and a saved theme applies across every workspace instantly.
Transactional email
Seven templates (verification, password reset, magic link, usage warnings, subscription confirmations, email change, workspace invites) on Resend, with a console fallback in dev.
# install
One command. Then just add your keys.
$ npx create-stackblaze-app my-saas
- ✓Auth, OAuth, email verification
- ✓Stripe billing & webhooks
- ✓Multi-tenant workspaces
- ✓Admin dashboard & analytics
- ✓AI chat, 19 providers
- ✓153 automated tests
Ready in under 2 minutes.
See it in action
Real screens from the running kit — nothing mocked up. Click any shot to enlarge.
What you're not building
The price isn't the cost. The build is. Every week spent on plumbing is a week your actual product doesn't exist.
What's not in the box
- Audit logs
- Scheduled / background jobs
- Public API endpoints for your end users
- Advanced analytics dashboards
If you need these, you'll build them yourself, on a foundation that's already tested.
Friday: buy. Saturday: keys in .env. Sunday: first signup.
One-time purchase. License key by email within minutes. Yours forever.
← Back to all templates