v0.21.1Open-source multi-tenant gateway · Self-hosted
Ship multi-tenant, audit-ready SaaS
Plat5 sits in front of your APIs and handles sign-in, API keys, workspaces or org hierarchies, permissions, rate limits, and audit logs—so your backend services stay plain HTTP with zero auth code.
curl -fsSL https://plat5.com/install.sh | shDocker required. Runs locally in minutes with starter account pages, an internal admin console, and Grafana traces.
POST /orgs/northwind/projects/web/tasksAuthorization: Bearer acme-mk-1-Q7vN…- Signed in
- valid API key, active member of northwind
- Allowed
- org policy passed; role grants project:write
- Limit & audit
- under rate limit, write logged before forwarding
- Rewritten
- URL slugs replaced with project ID, key stripped
POST /projects//tasksAuthorization removedX-Plat5-Member-Id: 01jby4r6v8…X-Request-ID: 7d6f1c2e… · traceparent: 00-4bf9…/zero-auth
Your services write features. Never auth.
Fast teams and coding agents are great at domain logic and unreliable at system-wide security invariants—checking credentials, enforcing org policies and project isolation, stripping secrets, or auditing writes. Plat5 enforces all of it outside your code.
- 01No auth middleware to forget. Tokens, API keys, org SSO/IP policies, and permission checks stop at the gateway. Undeclared routes return 404.
- 02Access is declarative YAML. Configure your structure (a flat workspace or nested orgs → projects), routes, and permissions in config. plat5 validate and plat5 plan catch mistakes before deploy.
- 03One line to review. The verified workspace or project ID arrives in the path. Reviewing a human- or agent-written handler means checking that its query filters by it.
api:
url: http://api:3000
scopes:
project:
upstream_prefix: /projects/{project.id}
routes:
- path: /tasks
methods:
GET: { permissions: project:read }
POST: { permissions: project:write }JWT or API key validationOrg SSO & IP policiesURL slug lookupRole & permission checksRate limitingAudit log write
// Every handler scopes its lookups by the project id in the path, and checks nothing
// about the caller or the project: the front door decided who may call, on which
// project.
func (h *taskHandler) list(c fiber.Ctx) error {
p, err := readPage(c)
if err != nil {
return err
}
items, more, err := h.store.list(c.Context(), c.Params("project_id"), p)
if err != nil {
return errDB(err)
}
return c.JSON(fiber.Map{"tasks": items, "has_more": more})
}/three-planes
Three separate doors: customers, your team, and deploys.
One plat5 start boots working defaults locally on Docker and Postgres. As customers ask for Okta SSO, IP allowlists, per-record sharing, audit exports, or SOC 2 and GDPR controls, you swap modules in config—your services stay untouched.
Your web app · customer API keys · CLIs
- Flat workspaces or nested levels (e.g. org → project)
- Built-in RBAC, or plug in OpenFGA, Cerbos, or Topaz
- Per-org SSO/MFA checks, IP allowlists & suspension
- Plan-tiered rate limits & fail-closed customer audit log
Your support & SRE team
- Company SSO (Okta, Entra, Google) — never customer logins
- Support-tier access rules via your policy engine
- Mandatory ticket/reason tracking on sensitive actions
- Audited customer impersonation in its own audit log
CI pipelines · platform engineers
- Declarative YAML for levels, roles, routes & rate limits
- Offline validation and dry-run plan before every change
- Keyless CI and SSO deploys with who-changed-what history
- Zero-downtime live reload across every gateway replica
Receive verified IDs and X-Plat5-* headers on a private network—or verify signed headers across clusters. Subscribe to clean account and workspace deletion events for GDPR erasure.
Works with your auth provider (Okta, Auth0, Clerk)
Identity providers verify who someone is. Plat5 accepts JWTs from any provider—or its own self-hosted sign-in—and handles everything after login: workspaces, API keys, permissions, and audit logs.
More than an API gateway (Kong, Envoy, NGINX)
Generic proxies route HTTP and validate tokens. Plat5 understands your workspaces and orgs, resolves URL slugs to stable IDs, enforces per-org security policies, and logs customer changes.
Pairs with policy engines (OpenFGA, Cerbos, Topaz)
Start with built-in RBAC. When you need per-document sharing or nested folder graphs, plug in any OpenID AuthZEN policy engine at the gateway—your backend services still do zero auth.
Replaces months of custom B2B plumbing
Building workspaces, scoped API keys, custom roles, SSO/IP guardrails, fail-closed audit, and an audited admin console takes months and drifts across services. Plat5 puts it in one reviewed config.
Security & compliance architecture →Interactive modular map (what's swappable) →How the model & pipeline work →
/product
Account pages, admin console, and traces—running locally in minutes.
Forkable SolidJS starters for customer account pages and your team's admin console, plus Grafana logs, metrics, and traces wired end to end. Swap or drop any piece at any time.






production playbooks
Explore what's swappable →- enterprise
Enterprise B2B SaaS
Per-org custom roles, SSO/MFA & IP security policies, scoped API keys, reversible suspension, time-boxed access, and plan-tiered rate limits.
Read playbook → - compliance
SOC 2, ISO 27001 & GDPR
Shared responsibility model, control mapping, tamper-resistant audit export & retention, change attribution, and GDPR erasure.
Read playbook → - fine-grained auth
Per-record sharing (Topaz, Cerbos, OpenFGA)
Keep zero-auth services while delegating per-document sharing or user-created folder trees to an external policy engine via AuthZEN 1.0.
Read playbook → - edge & public
Public portals & subdomains
Customer subdomains (northwind.api.example.com), unauthenticated public routes, and single-project external collaborators through one gateway.
Read playbook →
/one-api
Plain HTTP services. One API for every caller.
Write services in Go, Node, Bun, Python, or anything that speaks HTTP—no Plat5 SDK. Because services do no auth, your web app, customer integrations, and internal support team all call the exact same private endpoints. No separate admin API to build.
Your web app
Person, signed in
Bearer eyJhbGci…Customer integration
Service account key
Bearer acme-mk-1-…Your support team
Company SSO · admin gateway
Bearer …Plat5 gateway
Checks credentials & permissions
Admin console
Separate login · separate audit log
Your service
GET /projects//tasks One handler. Written once.
Hide UI buttons without duplicating permission checks.
Ask the gateway which requests the signed-in caller may make in one batch—your frontend stays in sync with backend permissions automatically.
POST /access/routes
{
"checks": [
{ "method": "POST", "path": "/orgs/northwind/projects/web/tasks" },
{ "method": "DELETE", "path": "/orgs/northwind/projects/web/tasks/01jbx9q3t5" }
]
}
// → { "checks": [{ "allowed": true }, { "allowed": false }] }Domain audit diffs in one response header.
Every write is already recorded before your handler runs. Attach structured before/after diffs—stored on both customer and operator logs, stripped before reaching clients.
// Set one header; the gateway records it and strips it before replying.
X-Plat5-Audit-Details: {"status":{"from":"todo","to":"done"}}
X-Plat5-Audit-Created: 01jbx9q3t5…/boundaries
Opinionated by design. Yours to keep.
Plat5 draws a clear line between the platform around your product and the product itself.
Plat5 owns · at the gateway
- Configurable structure (a flat workspace/org or nested levels like organization → project) & URL slug lookup
- Built-in RBAC (inherited & custom roles, groups, expiring access) or your own policy engine (OpenFGA, Cerbos, Topaz)
- Sign-in, scoped API keys, member suspension & per-org SSO/IP security policies
- Tamper-resistant audit logs, SIEM export, plan-tiered rate limits & GDPR deletion events
Your code owns · inside each workspace or project
- Your product data, schema, and database
- Business rules ("cannot approve your own pull request")
- Syncing per-item sharing rules if you attach an external policy engine
- Plain HTTP handlers in any language (private network or signed headers)
Today
Next
Security & compliance →Interactive architecture map →How it works →Self-hosting guide →All repositories →
Running on your laptop in minutes.
Open source. Runtime Apache-2.0. Everything around it is MIT.
curl -fsSL https://plat5.com/install.sh | shplat5 init my-appcd my-app && plat5 start




