Clone it. Configure your .env. Run docker compose up. Auth, billing, email, multi-tenancy, tests — already wired. You write the product, not the plumbing.
Why a starter kit
Every feature is production-tested and ready to customize. Here's what you're not building from scratch.
JWT with refresh tokens, Google OAuth, password reset, email verification, and permission system.
Subscriptions or credit packs, webhook handling, payment receipts, and customer portal integration.
Organizations with Owner/Admin/Member roles, team invitations with expiry, and scoped data access.
Switchable Mailgun/SendGrid providers, transactional templates, welcome emails, and purchase receipts.
91 tests with pytest and factory-boy covering auth, billing, organizations, invitations, and more.
Docker Compose for dev and production, CI/CD workflows, and deployment guides for VPS and cloud.
Built with
What's inside
Real patterns from shipped products. Webhook handlers, atomic billing, role-based access — the stuff tutorials skip.
JWT, refresh tokens, password reset, Google OAuth, API keys.
Subscriptions or credits. Webhooks, receipts, customer portal.
Mailgun + SendGrid
Multi-tenant
Orgs + invitations
Background Jobs
Celery + Redis
Docker
Compose + deploy guides
AI-powered
Clean, well-structured Python code that AI tools actually understand. Customize in minutes, not hours.
Every module is cleanly separated, documented, and follows Django conventions. AI assistants can navigate, understand, and extend the codebase instantly.
Example prompt
"Add a new subscription tier with a 30-day free trial and usage limits to the billing app"
The AI SaaS Kit is purpose-built for deploying AI-powered products. Credit billing, async job processing, and API key auth — the infrastructure your AI startup needs.
Credit-based billing
Atomic deduction with F() expressions. Users buy credit packs, spend them on API calls.
Async job processing
Celery + Redis for long-running AI inference. Submit, poll, retrieve results.
API key authentication
Machine-to-machine auth for programmatic access. Per-org request logging and analytics.
Two kits
Charging monthly? Go subscription. Charging per API call? Go credits. Not sure? Get both.
| Feature |
Subscriptions
SaaS Starter Kit
|
Usage-based
AI SaaS Starter Kit
|
|---|---|---|
| Billing Model | Stripe subscriptions + one-time | Credit packs (pay-per-use) |
| Authentication | JWT + Google OAuth | JWT + API Keys (M2M) |
| Stripe Integration | dj-stripe + webhooks | Custom + webhooks |
| Multi-tenancy | ✓ | ✓ |
| Invitations | ✓ with expiry | ✓ |
| Background Jobs | — | ✓ Celery + Redis |
| Analytics | — | ✓ Per-org request logging |
| ✓ Mailgun + SendGrid | ✓ Mailgun + SendGrid | |
| Tests | ✓ pytest + factory-boy | ✓ pytest + factory-boy |
| Docker | ✓ | ✓ |
| Best For | SaaS dashboards, team tools, CRM | AI APIs, LLM wrappers, dev tools |
Monthly/annual plans, the classic SaaS model.
Best for SaaS dashboards, team tools, CRM
Credit-based billing, pay-per-API-call.
Best for AI APIs, LLM wrappers, developer tools
✓ Both kits include Mailgun + SendGrid, full test suite, Docker, and comprehensive docs.
Pricing
No subscriptions, no recurring fees. Buy once, build as many products as you want.
Both kits at a discount
One-time · Lifetime access
Subscription billing — launch your SaaS in days
One-time · Lifetime access
Credit-based billing — charge per API call
One-time · Lifetime access
Get the foundation. Build what matters. Your first users won't care about your auth system — they'll care about your product.
Get Your Starter Kit