SelfHostCost

Identity and SSO · cost comparison

Clerk vs self-hosted Keycloak: what each actually costs

Clerk on the Pro tier against Keycloak running on the smallest server that fits it. Every figure below is computed from the sizing model and the dated prices at the foot of this page, and includes the part most comparisons leave out: your own time.

At 10 people this one is close enough to go either way. The server costs $8.04 a month against $25.00 for Clerk, but add 1.5 hours a month of your attention and self-hosting lands at $121 and loses. It only wins if your time is genuinely free.

Clerk
$25.00per month, Pro
Self-hosted
$121server, backups and your time
Server and backups
$8.04CX23 (cost-optimized), 4 GB RAM
36-month difference
$3,889 extra to self-host
Break-even
neverafter $450 of setup time

The same comparison at every team size

Self-hosting has a floor and almost no slope, while per-seat software has no floor and a steep slope. That is the whole story, and it is why the answer flips somewhere in this table rather than being the same for everyone.

Clerk Pro against Keycloak self-hosted, per month, over 36 months. Self-hosted includes server, backups and maintenance time at $75 an hour.
Team size Clerk Self-hosted Without valuing your time Server needed 36-month difference
solo $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889
5 people $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889
10 people $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889
25 people $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889
50 people $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889
100 people $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889
250 people $25.00 $121 $8.04 CX23 (cost-optimized) (4 GB) -$3,889

Self-hosting never comes out ahead at any team size on this page, once your time is priced in.

Where the self-hosted money actually goes at 10 people

Line itemPer monthWhat it is
Server $6.70 CX23 (cost-optimized) at Hetzner Cloud: 2 vCPU, 4 GB RAM, 40 GB disk
Backups $1.34 Provider snapshots at 20% of the server price. Skipping this is not a saving, it is a bet.
Your time $112 1.5 hours a month of updates, upgrades and the occasional broken thing, at $75 an hour
Total$121Plus $450 once, for roughly 6 hours of first-time setup

Clerk at this size costs $25.00 a month. Clerk Pro is a flat $25.00 a month at this tier, independent of seat count.

Read this before you price anything

Clerk's Hobby plan is free for up to 50,000 monthly retained users. An internal team will almost never exceed that, so for most readers the honest licence cost is zero and the paid comparison below only applies if you need what Pro adds.

What Keycloak needs to run at 10 people

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.

ResourceRequiredHow it is derived
Memory2.5 GB 2 GB for the stack at rest, plus 2 MB per active user, plus 25% headroom
Disk10.1 GB 10 GB base, plus 0.01 GB per user
vCPU2 The project's own baseline. For this workload memory runs out before the processor does.

What you give up, stated plainly

We are not going to tell you to self-host this

At 10 people, Clerk wins on cost once your time is priced at $75 an hour. Self-hosting Keycloak here only makes sense for reasons that are not on the invoice: data residency, avoiding a vendor, or wanting to run the thing yourself. Those are real reasons. Saving money is not one of them at this size.

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 CX23 (cost-optimized) at Hetzner Cloud for $6.70 a month.

Go to Hetzner Cloud Compare hosts

We are not claiming this is the cheapest server on the internet. It is the cheapest one we can honestly quote. Vultr and PikaPods publish prices we could not read programmatically, and may well undercut it. Price them yourself before you commit.

Keycloak at a glance

LicenceApache License 2.0
Written inJava
GitHub stars36,732, checked 2026-09-12
Latest release26.7.3
Last commit2026-09-12
Ships Docker imagesYes
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.

Questions people actually ask

How much does Clerk cost?

Clerk Pro costs $25.00 a month at 10 people: USD 25.00 per month. That figure was read from the vendor's own pricing page on 2026-09-14.

What does it cost to self-host Keycloak?

$121 a month at 10 people: $6.70 for the CX23 (cost-optimized) at Hetzner Cloud, $1.34 of backups, and $112 for the 1.5 hours a month it takes to look after.

Is Keycloak cheaper than Clerk?

No. At every team size on this page, Clerk costs less than running Keycloak yourself once your time is priced in; over 36 months self-hosting costs $3,889 more. Self-hosting it buys control over the data, not savings.

What server does Keycloak need?

At 10 people, 2.5 GB of memory and 10.1 GB of disk. The cheapest plan that fits, among the providers whose prices we have read, is the CX23 (cost-optimized) at Hetzner Cloud for $6.70 a month.

How much work is Keycloak to run?

It is rated medium: about 6 hours to set up and 1.5 hours a month afterwards, priced at $75.00 an hour in the figures above.

Every figure on this page, and where it came from

InputValue usedSourceRead on
Clerk Pro USD 25.00 per month vendor pricing page 2026-09-14
Hetzner Cloud CX23 (cost-optimized) $6.70 per month provider pricing page 2026-10-25
Engineer time $75 per hour our published assumption —
Keycloak sizing 2 GB base, 2 MB per user project documentation —

Prices move. If the vendor has changed theirs since 2026-09-14, the figures above are stale and the source links are the authority, not us. How we handle that.

Related