What is Zitadel?
Zitadel is the newest generation of identity server: passkeys as a first-class login method, multi-tenant organizations baked into the data model (each B2B customer gets an org with its own users, policies, and branding), and custom logic via JS actions - all in a single stateless Go binary that idles around half a gigabyte.
The deployment is the cleanest in the identity lane: one container plus the managed Postgres, fully env-configured, with the masterkey as the only generated secret. The one sharp edge is flagged loudly: the external domain is baked into instance data at first setup - set the final domain before the first deploy.
For B2B SaaS builders the comparison is Okta and WorkOS: $6/user/month with a $1,500 annual minimum on one side, $125/month per SSO connection on the other. Zitadel ships SSO connections and orgs as ordinary features of a self-hosted stack.
What you get
- Passkeys-first login, plus OIDC, OAuth2, and SAML
- Multi-tenant organizations - built for B2B SaaS
- JS actions for custom claims, hooks, and logic
- Single stateless binary: all state in managed Postgres
- Self-service org onboarding and branding per tenant
- AGPL-3.0 (since v3) - unmodified self-hosting unaffected
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
zitadel | identity server (:5000) | yes |
db | Postgres - managed service on Lyngbak, container locally | no |
Before you deploy
ZITADEL_MASTERKEYexactly 32 characters
ZITADEL_EXTERNALDOMAIN (+PORT=443, SECURE=true)the FINAL domain, set before first deploy - it is baked into instance data
Sizing and billing
Upstream quotes ~512 MB for the binary; 1 GiB gives password-hashing bursts room. Everything persistent lives in the managed Postgres - the container is disposable.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 5 GiB of volumes cost $0.15 per GiB a month ($0.75/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Okta | Starter Suite | $60/mo | $6/user/mo at 10 users; $1,500/year minimum contract |
| WorkOS | SSO connections | $125/mo | per SSO connection per month - each B2B customer with SSO is a new line item |
Zitadel models each B2B customer as an organization with its own SSO config - unlimited orgs and connections, with no per-organization fee. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Zitadel, authentik, or Keycloak?
Zitadel for passkeys-first UX, B2B multi-tenancy, and the smallest footprint; authentik for visual flow design and ops comfort; Keycloak for maximum protocol depth and enterprise lineage. All three are in this catalogue, so you can deploy two and compare.
What is the external-domain warning about?
Zitadel writes the domain into its instance data during initial setup - issuer URLs, org domains, and keys derive from it. Set ZITADEL_EXTERNALDOMAIN to your real domain (with EXTERNALPORT=443 and EXTERNALSECURE=true) before the first deploy; changing it afterward is a documented but painful procedure.
Does AGPL affect my apps that use it for login?
No - your applications only talk to Zitadel over OIDC/SAML, which creates no licensing relationship. AGPL obligations would only arise if you modified Zitadel itself and offered that modified version as a service.
How does it compare to Okta or WorkOS for B2B?
Okta Workforce prices per user per month with an annual minimum; WorkOS charges per SSO connection. Zitadel makes each customer an organization with their own SSO config - unlimited orgs and connections.