authentik vs Keycloak: which needs less server?
Measured side by side on the same host, with each project’s official Docker setup and default settings.
| authentik | Keycloak | |
|---|---|---|
| Idle RAM | 866 MB | 698 MB |
| Disk | 2331 MB | 655 MB |
| Containers | 3 | 1 |
| Version | authentik 2026.8.5 (ghcr.io/goauthentik/server@sha256:602227a86455) + PostgreSQL 16 (postgres:16-alpine@sha256:f377d590e547) | Keycloak 26.8.2 (quay.io/keycloak/keycloak@sha256:7e66a96e4739) |
| Date | 2026-11-13 | 2026-11-27 |
| Fits a 4GB server? | yes | yes |
Pick this if
- Pick authentik if you want a PostgreSQL-backed setup that follows its official Docker Compose file out of the box: it measured 866 MB idle, 1,146 MB peak and 2,331 MB of disk in our test. Its docs ask for 2 CPU cores and 2 GB of RAM.
- Pick Keycloak if you want the smaller footprint in our tests: it idled at 698 MB (vs 866 MB), peaked at 883 MB (vs 1,146 MB) and used 655 MB of disk (vs 2,331 MB). Its test ran in development mode with the built-in H2 database, while authentik's included PostgreSQL, so a production Keycloak setup adds a database.
Idle numbers from fresh installs with no media or data. Full method, host and sources are on each app page.