The AI-first SaaS starter kit

Ship your AI product in days.Not months.

MastraKit is the production stack indie hackers and AI builders start from. Auth, billing, agents, MCP, multi-tenancy, observability — already wired. Clone, configure, ship.

Lifetime license Lifetime updates 14-day refund
chat.acme.mastrakit.dev
Build me a sales agent that pulls from HubSpot and writes weekly briefings.
MastraKit

Setting up the agent. I'll add three tools:

  • hubspot.searchDeals — fetch open opportunities
  • hubspot.getActivity — recent touches
  • briefing.compose — weekly summary

Streaming response · 1.2s · 3,412 tokens

Ask anything…
Built onMastraCloudflare WorkersBetter AuthStripeTursoAI SDKTanStack StartDrizzle
The problem

Building an AI SaaS shouldn't take three months of plumbing.

You came to ship a product. Instead you spend weeks on auth, billing, streaming, multi-tenancy and observability — code you've written before, code that has nothing to do with your idea.

Without MastraKit
  • 3 weeks wiring up auth, orgs, MFA, invitations
  • 2 weeks on Stripe checkout, webhooks, plans, credits
  • 2 weeks setting up agent infra, streaming, memory
  • 1 week on multi-tenancy and access control
  • 1 week on tracing and observability
  • …and you still don't have a product
With MastraKit
  • Clone the repo
  • Configure environment variables
  • Add your domain tools and routes
  • Deploy to Cloudflare Workers
  • Charge customers on Monday
Everything wired up

The boring parts. Already done.

Nine production systems built and integrated. Read the code, change what you need, ship the rest as-is.

AI agents, ready to ship

Mastra agents with tool use, streaming, memory and semantic recall. Add a tool, register it, done.

MCP server out of the box

Plug your product into ChatGPT, Claude Desktop, Cursor, or any MCP client. OAuth discovery already wired.

Multi-tenant auth

Better Auth with orgs, members, MFA, invitations, JWT + JWKS. Tenant isolation enforced everywhere.

Stripe billing & credits

Subscriptions, plans, contracts and a credit ledger. Metering service decoupled and ready.

Edge-native by default

Cloudflare Workers + Turso edge SQL. Four databases, zero ops, deploys in seconds.

Chat UI with artifacts

Streaming chat, document/code/sheet artifacts, voting, history, suggestions. Already working.

Observability included

W3C traceparent across services, SigNoz for infra, Langfuse for LLM tracing. Plug in your keys.

i18n from day one

Lingui runtime catalogs, 5 locales (en, es, de, fr, nl). Ship globally without retrofitting.

Docs site ready

Fumadocs site at /apps/docs. Extend it for your product without picking yet another stack.

Architecture

A monorepo built like a real SaaS.

Six apps. Four databases. One coherent stack. Each service owns its data, communicates over JWT, and deploys independently to Cloudflare Workers.

  • Cross-service tracing with W3C traceparent
  • Tenant isolation enforced in every query
  • Promotion flow: feature → development → preview → main
  • Podman-based local dev or native pnpm dev
web:3000
TanStack Start frontend
api:3001
Hono REST API on Workers
mastra:4111
AI agent + MCP endpoints
auth:4333
Better Auth + JWKS
metering:4222
Credit ledger & contracts
docs:3100
Fumadocs documentation site
packages/shared
Plans, schemas, errors, i18n config — single source of truth
Who it's for

Built for builders who ship.

If you've spent more time on plumbing than your actual product, this is for you.

Indie hackers

Ship your first AI product this weekend instead of next quarter. Skip auth, billing, plumbing.

Solo founders

Validate the AI idea, not the stack. Get to a paying customer in days.

Agencies

Launch AI MVPs for clients on the same battle-tested foundation. White-label, redeploy, repeat.

Engineering teams

Stop rebuilding the same multi-tenant SaaS skeleton. Focus on the AI parts that actually differentiate.

Pricing

One price. Lifetime access.

Buy once. Use it forever, on as many of your own products as you want.

MastraKit — Lifetime
$399$599
Early-bird launch pricing · ends soon
  • Full source code, MIT-style commercial license
  • Use across unlimited personal & client projects
  • Lifetime updates as the kit evolves
  • Private Discord with other builders
  • Production-ready from day one
  • 14-day no-questions refund
Get MastraKit
Secure checkout · Stripe · One-time payment
FAQ

Questions, answered.

What's actually inside the kit?+

A pnpm monorepo with six apps (web, api, mastra, auth, metering, docs) and a shared package. Multi-tenant auth, Stripe billing, AI agents, MCP server, chat UI with artifacts, observability, i18n — all wired together and deploying to Cloudflare Workers in minutes.

Do I need to know Mastra to use it?+

No. The agent and tool patterns are documented and small enough to read in an afternoon. If you've used the AI SDK or LangChain, you'll feel at home in five minutes.

Can I use it for client work?+

Yes. The license allows unlimited commercial use across your own products and client projects. One purchase per developer.

Do I get updates?+

Yes — lifetime updates as the kit evolves. Pull the latest from the upstream repo whenever you want, on your schedule.

Can I deploy outside Cloudflare?+

The kit is optimised for Cloudflare Workers + Turso, but Hono and TanStack Start are portable. Many teams swap to Node, Bun or Vercel with minor changes.

Refund policy?+

14-day no-questions-asked refund. If MastraKit doesn't save you weeks of work, you don't pay.

Stop rebuilding the same plumbing.

Your AI product is the differentiator — not the auth system. Get the boilerplate done in an afternoon and ship what matters.