# Your whole SaaS setup, in one file you can review.

> Plans, sign-in, roles, emails, webhooks and workflows in one reviewed file. Validate it, see the plan, then apply it to your console in one step.

Page: https://www.buildbase.app/use-cases/saas-setup-as-code

Plans, sign-in, roles, emails, webhooks and workflows in one blueprint. Validate it, see the plan, then apply it in one step.

**What it is:** BuildBase is one SDK and console for React apps: sign-in, teams, billing and email, set up from one blueprint file.

Read the blueprint guide: https://docs.buildbase.app/blueprints/overview

Start free: https://console.buildbase.app

For your coding agent: Write a BuildBase blueprint for this app: its plans, sign-in, roles and emails. Validate it with npx @buildbase/sdk blueprint validate, then show me the plan before applying.

## What a dashboard full of settings costs

Settings clicked into a console are invisible to review, hard to repeat and easy to drift.

| Without it | Already covered |
| --- | --- |
| Settings clicked by hand | One file in your repo, reviewed like code |
| No record of what changed | A plan that lists each change before anything is applied |
| A copy of the setup for a new environment | The same file applied to each environment |
| Secrets pasted into config | Secrets only as ${env:NAME}; a pasted key is an error |
| An apply that deletes by surprise | Nothing is deleted unless the file allows it and you pass --prune |

## What one blueprint holds

Write only the sections you want to manage. A field you leave out stays as it is.

| Section | What you set |
| --- | --- |
| app | The name, main domain, currencies and time zone |
| workspaces | How users group into teams, roles inside a workspace and their feature flags |
| auth | Sign-in methods, auth clients, the hosted page, two-step sign-in and sign-in domains |
| email | Sending domains, senders, unsubscribe groups, templates and merge tags |
| billing | The Stripe connection, items, credit packages, plans and add-ons |
| rbac | Console roles for your team and API keys |
| webhooks | Addresses BuildBase sends events to, and which events |
| integrations | Slack alerts, tags for the sign-in page, web push keys and deploy hooks |
| data | User attributes and tags, collections and forms, and file storage |
| workflows | Automations: a trigger, then actions and conditions |

## Validate, plan, apply

1. **Check the file.** Validate reports each problem with the place in the file it points at, before anything reaches the console.

```bash
npx @buildbase/sdk blueprint validate buildbase.blueprint.json
```

2. **See what would change.** Plan compares the file with your organization and lists each change, so the review is about what will happen.

```bash
npx @buildbase/sdk blueprint plan buildbase.blueprint.json
```

3. **Apply the reviewed plan.** Apply sends the plan you reviewed and asks before it runs. A value shown only once goes to an outputs file, never to your terminal.

```bash
npx @buildbase/sdk blueprint apply buildbase.blueprint.json
```


## What the file reaches

- **Plans and prices.** Plans, items and credit packages, with what a new version does to people on the old one. (Billing & Subscriptions: https://www.buildbase.app/billing)
- **Sign-in.** Methods, clients and the hosted page, so a new environment signs in the same way. (Authentication: https://www.buildbase.app/auth)
- **Roles and keys.** Console roles and API keys, where a role grants only what the key applying the file holds. (Access Control (RBAC): https://www.buildbase.app/permissions)
- **Email.** Senders, templates and unsubscribe groups, versioned with the rest of your code. (Email Campaigns: https://www.buildbase.app/email)
- **Webhooks.** Endpoints and their events, so a missing endpoint shows up in review. (Webhooks & Events: https://www.buildbase.app/webhooks)
- **Workflows.** Automations in the shape the console exports them, so they can move between environments. (Workflow Automation: https://www.buildbase.app/workflows)

## Building the backend behind the file yourself

Sign-in, billing, roles, email, webhooks and workflows, built with an AI coding agent and kept running, against configuring them here.

|  | Build it yourself | BuildBase |
| --- | --- | --- |
| Hours | 170 | 10 |
| Time | about 5.7 weeks | about 1.7 days |
| First year | $16,770 | $790 (Launch, paid yearly) |

Modules: Authentication, Billing & Subscriptions, Access Control (RBAC), Email Campaigns, Webhooks & Events, Workflow Automation. At $60 an hour. Estimates for a senior developer working with an AI coding agent such as Claude Code or Cursor, tests included. Upkeep covers dependency upgrades, provider API changes, incidents and support. Not a quote. Last reviewed 17 November 2026. Calculator: https://www.buildbase.app/build-vs-buy

## Running in production

Running in production on six products today, all of them ours.

- [OnceBooks](https://www.oncebooks.com): Personalised children's books
- [PlugNode](https://plugnode.ai): Visual AI workflow builder
- [AgentCenter](https://www.agentcenter.cloud): Mission control for AI agents
- [Imejis](https://www.imejis.io): Template-based image generation API
- [RemoteWait](https://remotewait.com): Virtual queue system
- [LinkTracer](https://social-link-tracer.jagodana.com): Creator link analytics

## Blueprints on every plan

The blueprint CLI ships in the SDK, and the console it applies to starts on Free at $0.

| Plan | Monthly | Yearly | Monthly active users | Workspaces |
| --- | --- | --- | --- | --- |
| Free | $0 | $0 | 10,000 | 50 |
| Launch | $19 | $190 | 25,000 | 1,000 |
| Grow | $49 | $490 | 100,000 | 25,000 |
| Scale | $99 | $990 | 500,000 | 100,000 |

Paid plans start with a 7-day free trial, no credit card. Free stops at its allowance and never bills over. Enterprise: Custom, by conversation. Full pricing: https://www.buildbase.app/pricing

## Questions

### Does a blueprint have to describe everything?

No. Write only the sections you want to manage. A field you leave out stays as it is, so a blueprint can own your plans and leave sign-in to the console.

### Can an apply delete things?

Only when the file says it may, in its policy, and you pass --prune. Otherwise the apply adds and changes, and never removes.

### Where do secrets go?

Never in the file. A secret is written as ${env:NAME} and read from your environment; anything else in a secret field is an error. Values shown only once after an apply go to an outputs file, never to your terminal; keep that folder out of Git.

### Can my coding agent run it?

Yes. The same commands run from Claude Code or Cursor, and the console's MCP server can validate, plan and apply one. A plan that deletes, prunes or touches credentials, sign-in, roles, API keys, webhooks or workflows waits for a person to approve, and one that changes the billing catalog is left for a person to apply.

### When is the console better than a file?

For a one-off change, or while you are still deciding what your plans should be. A blueprint pays off once the setup is settled and has to be repeated or reviewed.


## Read more

- [The SDK and its CLI](https://www.buildbase.app/sdk)
- [Run your SaaS from Claude or Cursor](https://www.buildbase.app/mcp)
- [Agent-run backend](https://www.buildbase.app/use-cases/agent-managed-backend)
- [Set up with your agent](https://www.buildbase.app/use-cases/coding-agent-setup)
- [Run it without a developer](https://www.buildbase.app/use-cases/run-without-a-developer)
- [All use cases](https://www.buildbase.app/use-cases)
