SelfHostCost

Identity and SSO

What it costs to self-host Keycloak

Open Source Identity and Access Management For Modern Applications and Services Below is the server it needs at each team size, what that costs, and how long the 3 commercial products it replaces would take to cost more.

Sizing and monthly cost for Keycloak by team size. Memory includes 25% headroom.
Team sizeMemoryDiskCheapest plan that fitsServerWith backups and your time
solo 2.5 GB 10 GB Starter 4 GB · VPSServer $22.00 $139
5 people 2.5 GB 10.1 GB Starter 4 GB · VPSServer $22.00 $139
10 people 2.5 GB 10.1 GB Starter 4 GB · VPSServer $22.00 $139
25 people 2.6 GB 10.2 GB Starter 4 GB · VPSServer $22.00 $139
50 people 2.6 GB 10.5 GB Starter 4 GB · VPSServer $22.00 $139
100 people 2.7 GB 11 GB Starter 4 GB · VPSServer $22.00 $139
250 people 3.1 GB 12.5 GB Starter 4 GB · VPSServer $22.00 $139

The sizing model for Keycloak

JVM service with PostgreSQL. Memory is dominated by the heap rather than by user count, so cost per user falls steeply as the directory grows. This is the CNCF-backed incumbent.

These base figures come from the project's own documented requirements. The per-user increments are ours in every case. They are deliberately generous rather than optimistic: a comparison that undersizes the server flatters self-hosting.

Time, not just money

Keycloak is rated medium to operate, which in this model means about 6 hours to get it running properly the first time and 1.5 hours a month after that. At $75 an hour that is $450 once and $112 a month, which is usually the largest line in the whole calculation.

What it replaces

Commercial productIts cost at 10 peopleKeycloak at 10 peopleBreak-even
Auth0 Essentials (B2B) $150 $139 3.4 years full breakdown
Okta Workforce Identity Starter $125 $139 never full breakdown
Clerk Pro $25.00 $139 never full breakdown

Where to put Keycloak

2.5 GB of memory and 10.1 GB of disk is what this needs at 10 people. The cheapest plan that fits, among the providers whose prices we have read ourselves, is the Starter 4 GB at VPSServer for $22.00 a month.

Go to VPSServer Compare hosts

We are not claiming this is the cheapest server on the internet. It is the cheapest one we can honestly quote. Hetzner Cloud, Vultr and PikaPods publish prices we could not read programmatically, and Hetzner in particular is usually cheaper per gigabyte of memory than anything quoted above. Price them yourself before you commit.

The VPSServer link above is an affiliate link, run through the same programme as our Kamatera link; VPSServer and Kamatera belong to the same group. If you sign up through it we may earn a commission, but the programme does not state an amount for VPSServer. That never changes the computed costs, which server is chosen, or the conclusion of this page. The sizing model and every price source are published in full.

Project facts

LicenceApache License 2.0
Written inJava
GitHub stars36,732
Open issues3,318
Latest release26.7.3
Last commit2026-09-12
Repository checked2026-09-12
Projectwww.keycloak.org · keycloak/keycloak

Get the migration checklist for this tool

A one-page pre-flight list: data export path, sizing, backup plan, and the rollback step most people skip.

Related