v0.21.1Open-source multi-tenant gateway · Self-hosted

Ship multi-tenant, audit-ready SaaS on day one.

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 | sh

Docker required. Runs locally in minutes with starter account pages, an internal admin console, and Grafana traces.

Client sendspublic edge
POST /orgs/northwind/projects/web/tasksAuthorization: Bearer acme-mk-1-Q7vN…
Plat5before your code runs
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
Your service receivesprivate network
POST /projects/01jbx9q3t5/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.

  1. 01
    No auth middleware to forget. Tokens, API keys, org SSO/IP policies, and permission checks stop at the gateway. Undeclared routes return 404.
  2. 02
    Access 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.
  3. 03
    One 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.

Write a service →

services/api.yml
api:
  url: http://api:3000
  scopes:
    project:
      upstream_prefix: /projects/{project.id}
      routes:
        - path: /tasks
          methods:
            GET: { permissions: project:read }
            POST: { permissions: project:write }
Not in this handler
  • JWT or API key validation
  • Org SSO & IP policies
  • URL slug lookup
  • Role & permission checks
  • Rate limiting
  • Audit log write
api/tasks.go · 10 lines, zero auth code
// 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.

customer gatewayRust / Pingora

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
admin gatewayseparate login & audit DB

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
config & deployscontrol plane · YAML in Git

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
Your plain HTTP servicesGo · Node · Bun · Python · any language · zero auth code

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.

/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.

from plat5 start
Starter customer console for Northwind Traders showing projects, members, service accounts, invites, audit log, and settings.
customer console

Forkable starter customer console: projects, members, invites, keys, and audit logs running on the same API routes your product uses.

/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/{project_id}/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.

route checks · used by the customer console
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.

audit headers · opt-in per handler
// 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…

Read how access and audit work →

/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

  • Your laptop, with plat5 start
  • Your server, with Docker Compose and your Postgres

Next

  • Kubernetes and Helm
  • Turnkey SCIM directory sync
  • Plat5 Cloud

Running on your laptop in minutes.

Open source. Runtime Apache-2.0. Everything around it is MIT.

Docker required
curl -fsSL https://plat5.com/install.sh | shplat5 init my-appcd my-app && plat5 start