Compare / Self-hosting decision

authentik vs Authelia vs Keycloak on a Mini PC: Three Self-Hosted SSO Models

Documented ports 9000/9443, 9091 and 8080/8443+9000, the identity-provider vs forward-auth vs full-IAM split, and a measured 25-listener mini PC host — official docs checked November 2026, with untested footprint claims kept out.

The short answer

Choose the role first, then the product. authentik and Keycloak are full identity providers: they hold accounts, speak OIDC/OAuth 2.0/SAML, and are where applications send you to log in. Authelia is a proxy-first gatekeeper: its default job is forward authentication, where your reverse proxy checks each request against it, though it can also serve as an OIDC provider.

On a small home server the practical differences are less about feature lists and more about what each one makes you run and remember. authentik brings PostgreSQL and Redis; Authelia lets you start with SQLite but recommends PostgreSQL and Redis for production; Keycloak is a Java application that wants HTTPS and a hostname before it will start in production mode. All three need a TLS reverse proxy in any sensible home setup.

This page checks each project’s own documentation (retrieved November 20, 2026) and sets it against measurements from our own machine. Every hardware number below is from the Beelink EQi12; every footprint or requirement from a vendor is labeled as such. We did not install or benchmark any of these three tools.

What we measured, and what we did not

This site publishes original measurements of one machine: a Beelink EQi12 with an Intel Core i3-1215U, 16 GB DDR4-3200, a WD SN540 512 GB NVMe drive, two Realtek gigabit ports and Intel AX200 Wi-Fi 6. The full hardware review inventories it, and the methodology page defines our evidence levels.

We have measured the host and the containers on it: 12 W wall draw with a four-container Docker stack at idle, 37 W at all-core load; 623.29 MiB/s sustained NVMe write; 25 unique listening TCP ports across 36 bindings and 169 enabled inbound allow rules; 8 GiB of RAM assigned to WSL2 by default and a 7.638 GiB ceiling visible inside containers. Those are the constraints an SSO stack would land on.

We have not installed, run, timed or load-tested authentik, Authelia or Keycloak on it. All three are in our “not tested” category. Where a number appears below it is (a) a documented port, requirement or default from the project’s own documentation, (b) a direct measurement of our hardware, or (c) reasoning we label as reasoning. A host ceiling is not an SSO benchmark.

Evidence 1 — the documented port and dependency surface, side by side

These are the defaults each project publishes, not measurements.

authentikAutheliaKeycloak
Primary roleFull identity provider (OIDC, OAuth 2.0, SAML, SCIM, LDAP, RADIUS)Forward-auth / authorization proxy, also OIDC 1.0 providerFull identity and access management (OIDC, OAuth 2.0, SAML)
Documented web port9000 HTTP / 9443 HTTPS internally, remappable9091 (tcp://:9091/ example server address)8443 HTTPS, 8080 when HTTP enabled; 9000 management (health/metrics, not to be proxied externally)
Required companionsPostgreSQL + Redis (official compose runs both)SQLite for lite; PostgreSQL + Redis recommended for productionJava 25 runtime; production database such as PostgreSQL recommended
Documented host floorAt least 2 CPU cores and 2 GB RAM for the compose setupNo fixed floor published; choice of storage backend left to youJVM heap = 70% of container memory, 50% initial; set a memory limit (≥750 MB to approach the old 512 MB cap)
Setup postureDownload compose, generate PG password + secret key, initial setup at port 9000Static YAML config, no web GUI for configuration; must be HTTPSstart-dev for trying out; start in production refuses to boot without hostname + TLS
Notable defaultMounts Docker socket in worker by default for outposts (docs note the risk and offer a socket proxy)Default policy deny in the example access control; you write rulesDev mode on WSL binds 0.0.0.0; no default admin user — bootstrap via env vars or first-run form

Two details matter more than the table. First, Keycloak’s management port 9000 is deliberately separate: the proxy guide says to proxy only 8443/8080 and not 9000, because health and metrics should not be exposed to external callers. That is a different meaning for “9000” than authentik’s HTTP port. Second, Authelia has no web configuration GUI — its getting-started page says configuration is static and expects you to edit a YAML file, while authentik and Keycloak both have setup flows and admin consoles.

Evidence 2 — three models, three different single points of failure

The port table makes the tools look interchangeable. Their request flows are not.

authentik is an identity provider with an app proxy layer. Its documentation describes a full IdP supporting SAML 2.0, OAuth 2.0/OIDC, SCIM, LDAP and RADIUS, plus an application proxy for connecting apps. The official Compose stack is four services: PostgreSQL, Redis, a server and a worker. The worker mounts the Docker socket by default so it can manage outposts, and the docs explicitly flag the security trade-off and offer a Docker Socket Proxy as mitigation. The documented floor is 2 cores / 2 GB. Its failure domain is the IdP: applications redirect to it at login, so an outage mostly hurts new logins while existing sessions may survive until expiry (that consequence is reasoning from the OIDC flow, not something we tested).

Authelia sits in the request path. Its default mode is forward authentication: a reverse proxy calls Authelia on each request, and Authelia answers based on the session cookie and access-control rules. Its getting-started page is unusually firm about TLS — Authelia MUST be served over HTTPS, “not optional even for testing”, and all protected apps must use HTTPS/WSS because a cookie is involved. Storage is a real choice: SQLite is recommended for testing and lite deployments, PostgreSQL for production, with Redis recommended for sessions in production. If your proxy fails closed when Authelia is down, an outage can block protected apps. That is the trade-off for per-request authorization.

Keycloak is the heaviest-duty IAM of the three. It requires OpenJDK 25 for a bare-metal install, and its container image calculates the JVM heap as a percentage of container memory (-XX:MaxRAMPercentage=70), so the docs tell you to set a memory limit. Production mode follows a “secure by default” principle: plain HTTP is disabled and the server will not start without hostname and TLS configuration. Only start-dev gives you a quick HTTP-on-8080 experience, and the docs say to avoid it in production. Keycloak’s cache is local by default; distributed caching is a separate configuration for high availability.

Evidence 3 — the host these tools would land on

Three self-hosted SSO models compared against a measured EQi12 host: authentik full identity provider on ports 9000 and 9443 with PostgreSQL and Redis, Authelia forward-auth companion on 9091, Keycloak full IAM on 8443 or 8080 plus management port 9000, beside a 25-listener host and a 7.638 GiB container ceiling
Three SSO models, one finite host. Ports, companions and requirements on the left are documented defaults; the host figures on the right are our own measurements from the Beelink EQi12.

The Windows port audit captured 25 unique listening TCP ports across 36 bindings and 169 enabled inbound allow rules on this EQi12 before any SSO tool was added. The WSL2 baseline showed 8 GiB of the 16 GB assigned to the VM by default, and the docker stats test showed containers seeing a 7.638 GiB ceiling. Our reverse proxy comparison already claims ports 80 and 443 on most builds.

Read the documented host floors against that. authentik’s “2 cores / 2 GB” is a floor for the compose setup, not a statement that it idles there — we did not measure its idle draw. Keycloak’s heap-as-percentage-of-container-memory behavior means the number you cap the container at determines its ceiling; on a box where containers already see 7.638 GiB, an uncapped JVM is a planning mistake. And all three add at least one new externally meaningful port (9000/9443, 9091, or 8443) to an already busy listener map. None of that is a reason not to run them; it is a reason to plan the ports and memory limits first.

Evidence 4 — what the docs say about persistence and recovery

SSO is infrastructure you notice most when it loses data. Each project documents a different persistence story.

authentik keeps its state in PostgreSQL and its cache in Redis, both declared in the official Compose file with named or bind volumes. Lose the database volume and you lose users and configuration; the docs treat the generated PG_PASS and AUTHENTIK_SECRET_KEY as setup essentials. Authelia puts users either in a YAML file or an SQL backend, sessions in the chosen session provider, and 2FA secrets alongside them; its production recommendations push you toward PostgreSQL and Redis precisely because a single lite file is not a durable multi-service design. Keycloak recommends a production-ready database such as PostgreSQL, and its realm import feature (--import-realm with files in /opt/keycloak/data/import) is described mainly for dev mode; the docs note the initial admin user comes from bootstrap environment variables or a first-run local form, not a shipped default password.

Our backup retention planner and outage recovery checklist are the right companions here: the question is not whether SSO has persistent storage, but whether your backup actually covers the database volume and whether the container comes back in the order its dependencies need. We have not run a restore test for any of these three tools, so we publish the documented behavior only.

Which one fits which home server

Whatever you choose, plan the port surface, set a memory limit, mount persistence before the first restart, and verify the whole thing survives a reboot. That order is the same one our self-hosting alternative selector uses for picking what to run at all.

Documentation checked November 20, 2026: authentik Docker Compose and architecture pages, Authelia server / getting-started / NGINX Proxy Manager pages, and Keycloak configuration / containers / reverse-proxy guides. All three tools are untested on our hardware; no footprint numbers for them are presented as our measurements.