For developers building SaaS

Ship your SaaS without building accounts, roles, and billing

TenancyEngine gives your app customer sign-in, workspaces with roles, plans and subscription billing, SMS, file storage, AI, and custom domains. One API key. One .NET SDK. A REST API for every other language.

Free Starter plan: 1 app and 5 customer workspaces, production only. No credit card.

dotnet add package TenancyEngine.Sdk

Your code, not ours

Check a customer plan, then record the use

Ask TenancyEngine what a customer is allowed to do, then record what they used. Your plans, limits, and billing stay in one place, and your code stays short.

C# with TenancyEngine.Sdk
// A customer calls your API: check their plan, then meter the call.
var context = await te.GetRuntimeContextAsync("my-app", "Production", tenantId, ct);
if (context is null || !context.Features.Contains("reports"))
    return Results.StatusCode(StatusCodes.Status403Forbidden);

await te.ConsumeUsageAsync("my-app", tenantSlug, "Production", "reports",
    amount: 1, idempotencyKey: $"report-{requestId}", ct: ct);
// requestId is the id of this request or job, so a retry is counted once.

Start from what you are trying to do

Each page says what is covered, which plan fits, and where you will still need something else.

Launch a B2B SaaS

Sign-in, customer organizations, plans, and billing without building them first.

Read more

Pass an enterprise security review

MFA, SCIM directory sync, an audit log, and an honest answer on SAML.

Read more

Sell plans and metered usage

Limits per plan, usage you count once, alerts before customers hit the cap.

Read more

Let AI assistants in safely

Audience-bound tokens and scopes people can read, for your own MCP server.

Read more

Replace hand-built auth

A staged move to standard sign-in, customer by customer.

Read more

Run a marketplace

Buyer, vendor, and staff roles, with vendor onboarding through Stripe Connect.

Read more

All use cases or read the guides

What you get

Each capability is available on the plan shown. See the pricing page for limits.

Customer sign-in

Standard OpenID Connect with MFA and passkeys. Use any OpenID Connect library. There is no identity server to run.

All plans

Learn more

Workspaces and roles

Give every customer an isolated workspace with its own members and roles. On Growth and above, support staff can step into a customer view from the console.

All plans. Starter allows 5 workspaces

Learn more

Plans and billing

Sell subscription and usage-based plans with invoices, failed-payment recovery, and a customer billing portal. Gate features by the customer plan.

Growth and above

Learn more

SMS and email

Send SMS from your backend with one call. Invoices, receipts, and payment reminders go out as email without extra setup.

SMS needs an API key with the SMS scope

Learn more

File storage

Request upload URLs, store private files per app or per customer, and give the customers who paid for a file access to download it.

API key with storage scopes

Learn more

AI and MCP

Extract structured data from text with a schema you choose, and let AI assistants work with your setup over MCP.

Growth and above

Learn more

Custom domains

Serve your portal, billing pages, and marketing site from your own domain. DNS is verified for you.

Growth and above

Learn more

Environments

Set up apps, features, and roles in development and staging, then promote them to production without touching live customer data.

Growth and above

See every feature

How it works

1

Register your app

Create an application in the console and make an API key. Starter gives you one app that runs in Production.

2

Connect sign-in and the SDK

Point your OpenID Connect library at TenancyEngine, then create a workspace for each new customer from your backend.

3

Gate, meter, and charge

Check the customer plan on each request. Turn on billing when you are ready to charge. That starts on Growth.

The calls you will actually write

These samples use the released TenancyEngine.Sdk package on NuGet.

Set up the client
builder.Services.AddHttpClient("TenancyEngine",
    c => c.BaseAddress = new Uri("https://api.saasruntime.com"));
builder.Services.AddSingleton(sp => new TenancyEngineClient(
    sp.GetRequiredService<IHttpClientFactory>().CreateClient("TenancyEngine"),
    builder.Configuration["TenancyEngine:ApiKey"]));
Create a workspace for a new customer
// A new customer signs up: give them their own workspace.
var tenant = await te.CreateTenantAsync("my-app",
    new CreateTenantRequest(body.CompanyName, body.Slug), ct);
Verify a webhook
// TenancyEngine calls you: verify the signature before you trust the event.
using var reader = new StreamReader(req.Body);
var rawBody = await reader.ReadToEndAsync();
var signature = req.Headers["X-TE-Signature"].ToString();

return WebhookSignatureVerifier.Verify(rawBody, signature, webhookSecret)
    ? Results.Ok()
    : Results.BadRequest();

Developer guide

We run our own products on it

Products from the TenancyEngine team use the same sign-in, workspaces, and billing you get.

StudioDash

Scheduling, registration, and payments for dance and fitness studios.

StatusBeacon

Status pages and incident updates for your customers.

VectraLabel

Regulated food labels with nutrition facts, allergens, and GS1 barcodes.

FixItNow

A marketplace connecting homeowners with local service pros.

PeakHour

A coaching marketplace with booking and memberships.

AssetVault

A marketplace for digital assets with purchase-gated delivery.

Pricing you can read in ten seconds

Start free. Pay when you need more apps, environments, or billing.

Questions developers ask

Which languages can I use?

The .NET SDK is on NuGet today. Every capability is also a REST API, so any language that can make an HTTPS request works. SDKs for TypeScript, Python, Go, Java, PHP, and Ruby are on the way; contact us for early access.

How do my customers sign in?

Your app signs users in with standard OpenID Connect, so any OpenID Connect library works. Sign-in includes MFA and passkeys.

What does the free Starter plan include?

One app and up to five customer workspaces, running in Production only. Billing, extra environments, custom domains, AI, and MCP access start on Growth.

Do I need my own Stripe account?

Billing is included from the Growth plan, so you can start charging without a separate billing vendor. If you already have a Stripe account, you can connect it instead.

Does TenancyEngine host my app?

No. Keep your own hosting. TenancyEngine handles sign-in, workspaces, plans, billing, and the services around them, and your app calls it.

Does it support enterprise single sign-on with SAML and SCIM?

SCIM directory sync is available; SAML single sign-on is not. If your first customers require SAML, a specialist identity vendor is the better fit for that part.

Ship your product, not your plumbing

Start on the free Starter plan. Upgrade when your customer list grows.

Request access