Keycloak vs authentik vs Zitadel: Which one fit VPS?
Compare Keycloak, authentik and Zitadel for one small VPS: see the real RAM floor, which one fit protect apps without SSO, and where each one falls short.
Which SSO server fit one VPS
Keycloak, authentik and Zitadel na self-hosted single sign-on (SSO) servers wey people dey use when dem want one login for every app for their server. For one small VPS, dem no be the same. authentik na the safe default for server wey dey run three or four self-hosted apps, because na only one among the three wey fit put login screen in front of app wey no get login by itself. Keycloak na the correct choice when every app wey you wan protect already support standard protocol, and you fit spare memory for Java virtual machine (JVM). Zitadel dey built for developers wey dey ship product through an API, and I no go try am with less than 4 GB.
Choose first, then install. After you choose, the practical authentik install for VPS go guide you through the setup step by step.
Each one really need how much RAM?
Start with the resource floor, because e go decide the shortlist before any feature. The numbers below come from each project own published figures, checked for October 2026. Na vendor guidance, no be results from load test.
Di data wey dey behind dis chart
[
{
"label": "authentik",
"vendor_min_ram_mb": 2048,
"base_containers": 3
},
{
"label": "Keycloak",
"vendor_min_ram_mb": 1250,
"base_containers": 2
},
{
"label": "Zitadel",
"vendor_min_ram_mb": 2048,
"base_containers": 4
}
]authentik Docker Compose install page ask for “a host with at least 2 CPU cores and 2 GB of RAM”, wey be 2048 MB, and the compose file wey dem publish dey run 3 containers: PostgreSQL, the server, and the worker. That host figure must cover all three, including the database.
Keycloak publish the most specific figure among the 3. Its sizing guide talk say “the base memory usage for a Pod including caches of Realm data and 10,000 cached sessions is 1250 MB of RAM”. That 1250 MB na for the Keycloak server with those caches. The guide size the database separately, so PostgreSQL need its own memory on top. The same page explain why container limit matter well well: Keycloak dey use 70% of the memory limit as heap and dey use roughly 300 MB of non-heap memory on top. Its worked example turn the 1250 MB base into memory limit of 1360 MB. If you give the container 1 GB, e go calculate heap of about 717 MB. The roughly 300 MB non-heap memory then bring the total to about 1017 MB. Almost nothing remain under the limit, while the guide own base figure with Realm caches and 10,000 sessions na 1250 MB.
Zitadel compose page too ask for 2 GB, the same 2048 MB. Dem list am as prerequisite for the whole guide, from the quickstart reach the homelab or semi-production stage. For sizing wey pass that, na its production page you suppose read. The Zitadel process itself need “approximately 512MB of RAM and can operate with less than one CPU core”. The database na the expensive part: “about one CPU core per 100 requests per second (req/s) and 4GB of RAM per core”. Password hashing then need “4 CPU cores available for this purpose”, because login burst fit turn into CPU spike. The official v4 compose dey run 4 containers before you add anything: Traefik as the proxy, the Zitadel API, separate Login UI container, and PostgreSQL. Redis and an OpenTelemetry collector dey behind optional compose profiles.
So Keycloak and authentik fit run for 4 GB VPS with space still remaining for the apps wey you dey protect. Zitadel go start for 2 GB, but e go compete with its own PostgreSQL for memory during every login. I no go run Zitadel below 4 GB. If the same box dey host apps too, I go want 8.
Wetin each one really dey run for your box
authentik na PostgreSQL plus two copies of one image: one server and one worker. The server dey answer HTTP and e get embedded outpost. The worker dey run background tasks like directory syncs and email. The published install short.
wget https://docs.goauthentik.io/compose.yml
echo "PG_PASS=$(openssl rand -base64 36 | tr -d '\n')" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')" >> .env
docker compose pull
docker compose up -dThe server dey publish ports 9000 and 9443. The first time you visit port 9000, e go run the initial setup flow, where you go set password for the default akadmin user. Put reverse proxy with real certificate in front of am before that port fit reach internet.
Keycloak na one process plus database wey you provide. The quickstart na one container.
docker run -p 127.0.0.1:8080:8080 \
-e KC_BOOTSTRAP_ADMIN_USERNAME=admin \
-e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
quay.io/keycloak/keycloak:26.8.1 start-devstart-dev na for looking around. E dey run with local development database and no TLS (transport layer security), so if you start container this way and later remove am, your realm go disappear with am. For production, use start instead, with real PostgreSQL through KC_DB and public hostname through KC_HOSTNAME. Keycloak production guide also talk say all communication to and from the server must use secure channel, so HTTPS no be optional there.
Zitadel na the four-container stack wey we describe above.
mkdir zitadel-compose && cd zitadel-compose
curl -fsSLO https://raw.githubusercontent.com/zitadel/zitadel/main/deploy/compose/docker-compose.yml
curl -fsSLO https://raw.githubusercontent.com/zitadel/zitadel/main/deploy/compose/.env.example
cp .env.example .env
docker compose up -d --waitSet ZITADEL_MASTERKEY inside .env before the first start. Na the 32 character key Zitadel dey use to encrypt secrets for database, so if you lose am, you lose access to those secrets. If you just start to run stacks like these, the Docker Compose basics for a VPS go explain the volume and restart-policy choices wey decide whether your identity provider go survive reboot.
Which protocols each one dey speak?
All three dey speak OpenID Connect (OIDC), wey be the login layer on top of OAuth 2.0 wey modern apps dey use. All three dey also speak SAML 2.0 (security assertion markup language), wey be the older standard wey enterprise software still dey release. The real difference na LDAP (lightweight directory access protocol), where one word cover two opposite jobs.
Reading from LDAP mean say the SSO server dey check passwords against directory wey you already dey run. Keycloak dey do this through user federation. Zitadel dey do am too: its documentation explain how to "connect an LDAP server as an identity provider in ZITADEL".
Serving LDAP mean say app wey dey speak only LDAP fit bind against your SSO server as if na the directory. Na only authentik dey do this. Its LDAP provider make "all users and groups in authentik's database searchable via the LDAP directory" through dedicated LDAP outpost, with LDAPS available for port 636. By default, user wey bind fit only search its own details and groups. So the service account wey app dey use to bind need the "Search full LDAP directory" permission before e fit see everybody. Its documentation cover bind and search only, and e no describe any write operation. So treat am as read-only directory. Dem append one-time code to the password with semicolon, like password;123456, and SMS authenticators no dey supported during bind.
If one app for your list dey speak only LDAP, the comparison end there. Keycloak and Zitadel no fit answer that bind, so you go run another directory beside dem and keep two user lists in sync.
Wetin about apps wey no get login at all?
Forward auth na the answer, and na common case for self-hosted box. Your reverse proxy go ask the SSO server whether request dey allowed before e pass am upstream. The app behind am no go know anything about SSO. E go receive requests wey proxy don already check, usually with the username inside header.
authentik proxy provider handle this with three documented modes. "Proxy" make authentik outpost pass traffic to the upstream app by itself. "Forward auth (single application)" leave traffic with your existing reverse proxy and use authentik only to check authentication. "Forward auth (domain level)" protect every app under one parent domain with one provider. Domain level na the convenient option, but e get one documented limit: e "cannot enforce different application-level authorization rules for each protected application", so every app under that domain share the same policy set.
Keycloak no get any of this. Its companion proxy, Keycloak Gatekeeper, later change name to Louketo Proxy, reach end of life for November 2020, and dem archive am for GitHub for December 2020. To protect app wey no support OIDC, you go run separate component in front of am, usually oauth2-proxy, and point am to Keycloak client. Zitadel too no get forward auth mode of its own, so the answer na the same extra component wey you need install, monitor, and upgrade.
Na that extra hop dey make reverse proxy config stop simple, so read how Traefik dey front several Docker Compose apps before you wire auth middleware into am.
How upgrade path bad be?
As of 25 October 2026, the current releases na Keycloak 26.8.1, authentik 2026.8.5, and Zitadel v4.20.0. All three dey run schema migrations against PostgreSQL, meaning say every upgrade dey change database. Back up the database first, every time. This one habit worth pass any feature for this comparison.
authentik get the strictest rule, and e state am clearly: "Upgrades must follow the sequence of major releases; do not skip directly from an older major version to the most recent version." You go move to the latest patch for each version before you step to the next one, and "authentik does not support downgrading". If you fall one year behind for a calendar-versioned project, one upgrade go turn to chain of upgrades. Each one get its own database migration.
Keycloak upgrade guide give order wey you suppose follow: review the migration changes from the previous version, upgrade the server, then upgrade the adapters. Database migration dey run automatically, or you fit export am and apply am by hand. This one useful when you want read the change before e land. The cost with Keycloak na the reading. Its release notes get deprecations and behaviour changes wey easy to skip and costly to miss.
Zitadel dey separate its init and setup phases from the running server. Its production guidance recommend say you keep dem separate, so scaling no go repeat the setup work. For one VPS, this mostly mean say the setup step must finish before the API reports healthy. Na why the compose file ship health checks and the start command use --wait.
Who each project dey built for, and where each one get limitation
Keycloak na Red Hat identity server. Dem build am for organisations wey get realms, groups, role mappings, and existing corporate directory. Na the one wey implement standards most completely among the three. E no fit work well for 2 GB VPS wey dey run four self-hosted apps, especially when half of dem no support OIDC. You go use 1250 MB for Keycloak server before you add database. You go learn realm model wey dem design for company use. You still go install oauth2-proxy for the apps wey you actually need protect.
authentik na for self-hosting users dem build am, and the feature list show this clearly. E ship with forward auth and LDAP provider. E also let you build login flows with visual editor. E no fit work well when you need vendor support without enterprise budget, or release schedule wey no dey change every few weeks. Paid subscription na the only way to get support: ticket support dey for Enterprise subscriptions above $1k, while dedicated support with SLAs dey for Enterprise Plus, wey start from $20k per year. Calendar versioning without downgrade path or way to skip versions na serious operational work. The flow editor too get plenty things to learn when your real problem na only one OIDC client.
Zitadel na for developers wey dey put authentication inside product wey dem dey release. E get strong API, and multi-tenancy na first-class feature. But na this exact use case be where e no fit work well. Four containers, no forward auth, and database size of 4 GB per core no be correct setup for one VPS wey get password manager and wiki behind am.
Wetin I go run for one VPS, and how
For one VPS wey get three or four self-hosted apps, run authentik. All three dey give you login screen. The main deciding factor na say some of your apps no go ever support OIDC, and authentik solve this with forward auth wey e get built in, instead of another component beside am.
Give am 4 GB if you fit, and 2 GB only if the apps wey dey beside am small. Keep port 9000 away from public internet and terminate TLS for reverse proxy wey dey in front. Take PostgreSQL dumps every night and store dem outside the box, because identity provider wey no get backup na single point of failure for every app behind am. Run the stack with dedicated unprivileged account instead of root: how to set up least privilege users for VPS cover the account and file ownership wey this setup need.
Choose Keycloak instead when every app wey you wan protect already support OIDC or SAML, or when you need the fine-grained role model wey Keycloak realms provide. Choose Zitadel when you dey build application wey other people go sign up to, and you want its API and tenant model. None of the two fit the three-apps-on-one-box case wey this post dey talk about.
Di failure wey you go first meet
Keycloak no get data after restart. You start am with start-dev, and e dey use local development database. For container wey no get volume, if you remove the container, the realm go comot. Move go start, with KC_DB=postgres pointing to real database.
authentik worker container dey disappear for small box. The worker and server dey run the same image, and both hold Python processes. PostgreSQL too need its own share of 2 GB host memory. Run docker compose ps to confirm which service exit, then check dmesg for out-of-memory kill before you start dey find bug for the app.
Zitadel's Console no dey work behind your proxy. Zitadel API dey use gRPC, and e need HTTP/2 reach the upstream all through. The requirements page ask for reverse proxy wey support HTTP/2 upstream connections. E name tested versions of Traefik v3.x, NGINX v1.x, Caddy v2.x and Apache httpd 2.4.x. If proxy downgrade the upstream connection to HTTP/1.1, login page go load but Console go fail.
Every app dey send you back to login screen. The SSO server public URL and the URL wey you configure for the app must match exactly, including scheme and port. Keycloak call am hostname setting, while Zitadel call am external domain. If dem no match, the app go redirect to login wey the server no recognise as its own, and browser go dey bounce between the two.
FAQ
Which one fit work well for 2 GB VPS?
authentik and Keycloak. authentik requirement talk say host need at least 2 CPU cores and 2 GB of RAM, while Keycloak sizing guide put base memory for the server at 1250 MB before database join. Both tight for 2 GB once you add the apps wey you dey protect, so take 4 GB as the comfortable minimum. Zitadel compose guide too list 2 GB and show homelab or semi-production setup for am, but e production guidance ask for 4 CPU cores for password hashing and 4 GB of RAM for each database core. So expect 2 GB to become tight once real login traffic start.
Keycloak or Zitadel fit protect app wey no get its own login?
Not by demself. Neither one ships forward auth component. Keycloak old companion proxy, Louketo Proxy, reach end of life for November 2020, and dem archive the GitHub repository since December 2020. So you no suppose build new setup on top of am. Put oauth2-proxy or similar component between your reverse proxy and the app, then point am to OIDC client for the SSO server. authentik fit do this natively with its proxy provider for "Forward auth (single application)" or "Forward auth (domain level)" mode.
Which one fit act as LDAP server for app wey only speaks LDAP?
authentik. Its LDAP provider dey run for an outpost and make users and groups for authentik searchable through LDAP, with LDAPS available for port 636. Its documentation cover bind and search only, so treat am as read-only. Keycloak and Zitadel dey do the opposite: both read from existing LDAP directory as user source, and neither one answer LDAP bind from application.
I fit skip versions when I upgrade authentik?
No. Documentation talk say upgrade must follow major release sequence, and you no suppose jump from older major version straight to the latest one. First move to latest patch release inside each version, then move up one version at a time. Back up PostgreSQL before every step, because authentik no support downgrade and migrations only run forward.