Keycloak is the enterprise pick with the most protocols and the biggest footprint. Authentik is the flexible all-rounder with a friendly admin UI and proxy outposts. Authelia is a small forward-auth portal that adds a login and MFA in front of web apps. Pick by how many apps you run and how much RAM you can spare.
Quick Comparison: Authentik vs Keycloak vs Authelia
The table below sums up the differences that matter on a VPS. Feature lists change between releases, so treat it as a starting point and check each project’s docs before you commit.
| Authentik | Keycloak | Authelia | |
|---|---|---|---|
| Main job | Full identity provider with flows and outposts | Full identity and access management server | Authentication portal for reverse-proxy setups |
| Protocols | OIDC, SAML, LDAP, SCIM, proxy | OIDC, SAML 2.0, LDAP federation, identity brokering | Forward-auth, OIDC provider; no SAML identity provider |
| Language | Python and Go | Java (Quarkus) | Go |
| Admin UI | Yes, full web UI | Yes, full admin console | No user UI; users live in a file or an LDAP server |
| User directory | Built in | Built in, plus LDAP federation | File backend or external LDAP |
| Typical RAM at idle (third-party) | About 0.8 to 1.2 GB | About 1 to 1.25 GB | About 20 to 100 MB |
| License | MIT (core) | Apache 2.0 | Apache 2.0 |
| Learning curve | Medium: flows take time to learn | Steep: realms, clients, mappers | Low: one YAML file |
Authentik vs Keycloak
Both are real identity providers, and both will cover OIDC and SAML for almost any app you self-host. The gap shows up in how you run them. Keycloak is a Java application built for large organisations. It has realms, fine-grained authorization, identity brokering to other providers and years of enterprise use behind it. It also has a long list of settings, and the first hour in its admin console is rarely fun.
Authentik is easier to get started with. Its flows let you change what happens during login, enrolment or recovery by dragging stages around, and its proxy outpost can protect apps that have no SSO of their own. Keycloak has no equivalent built in, so people pair it with oauth2-proxy.
My rule of thumb: if you need a feature only an enterprise tool has, such as complex authorization or broad federation, use Keycloak. If you’re a small team or a homelab that wants SSO working by the weekend, Authentik is the shorter road. Both can run on the same VPS size.
Authentik vs Authelia
These two solve different problems, so the comparison is less even than it looks. Authelia sits next to your reverse proxy. The proxy asks it whether a request is allowed, and Authelia answers after a login and a second factor. It’s tiny, fast and configured in one YAML file.
What it doesn’t give you is a user management interface or a SAML identity provider. Users live in a file or an LDAP directory, and you manage them there. Authelia added OIDC provider support in 2022, so many modern apps work with it, but check its documentation for the current state before you rely on it.
If all you want is MFA in front of a dozen web apps and you’re comfortable editing YAML, Authelia is enough. If you want a UI where other people can reset their own passwords, go with Authentik.
Self-Hosted SSO Resource Requirements on a VPS
RAM is where the three tools differ most. The numbers below come from third-party write-ups, not from our own measurements, so use them for planning and then watch docker stats on your own server.
| Tool | Idle RAM (third-party estimate) | Documented minimum | Fits on |
|---|---|---|---|
| Authentik | About 0.8 to 1.2 GB | 2 CPU cores, 2 GB RAM | Core VPS with 8 GB RAM or more |
| Keycloak | About 1 to 1.25 GB, more under load | Depends on version; plan for 2 GB or more | Core VPS with 8 GB RAM or more |
| Authelia | About 20 to 100 MB | No fixed minimum | Any Core VPS, even next to other apps |
None of them will strain a Core VPS with 24 GB of RAM, and that’s the tier where RAM per euro helps most, because the apps you protect run on the same machine. On a Performance VPS (Cloud VPS Plus 8, with 8 vCPU, 24 GB of RAM and 450 GB NVMe), PostgreSQL gets faster storage, which you’ll notice mainly once the event log grows.
Which Self-Hosted SSO Should You Choose?
Pick by the smallest tool that does the job.
- Choose Authelia if you run a handful of web apps behind one reverse proxy and want MFA with very little overhead.
- Choose Authentik if you want a UI, several protocols, user self-service and proxy outposts, and you can spare 1 to 2 GB of RAM.
- Choose Keycloak if your requirements come from a company policy, such as SAML federation with a partner, complex roles or an audit trail.
If you go with Authentik, our step-by-step install guide with Docker Compose is the next read. And if you need a lightweight user directory behind any of these tools, see our comparison of LLDAP and OpenLDAP.
FAQ: Self-Hosted SSO
Is Authentik better than Keycloak?
Neither is better in general. Authentik is easier to set up and has proxy outposts built in. Keycloak has more enterprise features, a larger community and longer track record, but it asks for more time to learn. For a small team, Authentik usually gets you to a working login sooner.
Is Authentik better than Authelia?
They answer different needs. Authentik is a full identity provider with a user interface, SAML and OIDC. Authelia is a light portal that adds login and MFA in front of web apps. If you want user self-service, pick Authentik; if you want minimal overhead, pick Authelia.
Which self-hosted SSO uses the least RAM?
Authelia, by a wide margin. Third-party reports put it at roughly 20 to 100 MB at idle, against about 1 GB for Authentik and Keycloak. Your own numbers will differ with the number of users and sessions, so check docker stats after a week of use.
Can Authentik replace Keycloak?
Often yes, for small and mid-sized setups that need OIDC, SAML and LDAP. It’s harder if you rely on Keycloak features such as complex authorization services, or on integrations built for it. Migrating means recreating users, clients and mappers, so plan a test run first.
Disclaimer: Product specifications, features, and prices mentioned in this article are subject to change and may vary by region, billing term, and active promotions. Please check each provider’s or brand’s official website for current figures, pricing, and local currency rates.
