SaaS with AI agents: from app to subscription
Your app works, now teams should pay for it every month. With a coding agent you add organisations and roles, data isolation per organisation, subscriptions with webhooks, CI, backups and monitoring, and you learn what the law asks of a SaaS in Germany.
Bought it? Sign in with the email from your purchase. Terms · Right of withdrawal
Needs a Next.js app with Supabase and login, a GitHub repo, a coding agent (Claude Code or Codex), Docker for the local Supabase database and an account at Stripe or a merchant of record (test mode is free). Basic SQL helps. Plan about 12 to 16 hours plus building time.
Self-study course: slides, hands-on tasks and templates, at your own pace. No graded tests, no individual tutoring.
People who already have a working web app (for example from the course "Build and ship apps with AI agents") and want paying teams as customers.
At the end your app has organisations with roles and invites, tested RLS per organisation, subscriptions with idempotent webhooks and entitlements in the database, CI on every pull request, a tested backup and error monitoring.
Contents
- 01 · Architecture
- From app to SaaS: the architecture12 min
- The data model: organisations, members, data15 min
- 02 · Auth and roles
- Row Level Security per organisation15 min
- Invites and roles14 min
- Testing your policies14 min
- 03 · Subscriptions
- Billing: provider, checkout and customer portal14 min
- Idempotent webhooks and entitlements15 min
- 04 · Team work and operations
- Agents as a team: small PRs, reviews and CI14 min
- Deploys, backups and monitoring15 min
- 05 · Law for SaaS
- B2B or consumers: contracts and duties15 min
Material
- Data model template (SQL with RLS examples)
- Webhook handler checklist (DE + EN)
- SaaS launch checklist (DE + EN, no legal advice)
Fabian Faraz Farid · All courses