Clerk vs Okta vs Keycloak: which fits your team's situation
A team with all three on its shortlist is usually choosing between a hosted sign-in service for its own applications, a managed workforce identity suite and a server it runs itself. Clerk fits app sign-in on US-hosted infrastructure, Okta fits managed SaaS identity bought as a suite, and Keycloak fits self-hosted identity inside your own environment, operated by your team or a partner. Keycloak is open source under Apache-2.0, but the license is the smallest part of the effort: patching, database operation, high availability and upgrades stay with the client. Data residency, operating capacity and the number of applications to connect usually decide the choice. The rest of this section tests each of those factors against your situation.
Start with where personal data may sit. The Clerk security and compliance page states that Clerk does not offer regional data residency or region selection and that data is hosted on US infrastructure, so an EU-only residency requirement for that data would rule Clerk out, and you should confirm this with Clerk in writing. Okta offers cells in several regions, including the US, EMEA, Japan, Australia, Canada and India, but its sub-processor locations can vary with the service and the cell you select, so ask for both in writing. Keycloak keeps data wherever you deploy it, which suits teams whose residency rules require their own environment, but production needs a relational database, and a high availability design needs a synchronously replicated one, both of which your team must size, back up and operate. Count your applications next, then name the person who will take each Keycloak minor release, since the project plans four minor releases a year.
Clerk vs Okta vs Keycloak by scenario: which team fits which situation
This table matches common scenarios to the platform that usually fits them and names the condition that makes each choice hold. Read each row as a starting point before you test the claims in your own environment. The main takeaway is that hosting location and whether your team can run the platform usually decide the choice before feature lists do.
| Scenario | Best fit | Why |
|---|---|---|
| B2B product adding customer sign-in, with US hosting acceptable | Clerk | No region selection, so this holds only if US hosting meets your policy. Confirm SSO connection pricing with Clerk. |
| Workforce SSO with a managed vendor and no in-house identity operations | Okta | Holds when you want the vendor to run SSO, MFA and the directory and accept per-user subscription costs. Confirm suite and cell hosting your data. |
| Identity data that must stay in your cloud or air-gapped network | Keycloak | Apache-2.0 server you run inside your own network. Holds if your team can operate a supported production database. Confirm database and HA design with your platform team. |
| Legacy on-prem apps without federation support | Okta Access Gateway, or Keycloak with a proxy you run | Access Gateway sits behind your firewall for apps without federation, so it holds if you accept Okta's subscription. Confirm supported login methods with Okta. |
| Estate built around Active Directory | Keycloak, with AD federation | Keycloak federates users from AD over LDAP, so user accounts stay managed in AD. Confirm the federation mode with your AD team. |
| EU or other non-US residency required for customer identity | Keycloak, self-hosted in the region you choose | Clerk offers no region selection, and Okta's sub-processor locations vary by cell. Confirm residency options with each vendor. |
Where Clerk, Okta and Keycloak keep identity data and who runs it
Hosting location decides whether a vendor can meet your residency rule, so check it first. Clerk states that it offers no region selection and no regional data residency. Its data is hosted on US infrastructure, using Google Cloud and Cloudflare, with all subprocessors in the USA, and it transfers EU, UK and Swiss personal data under the Data Privacy Framework. If an EU-only residency rule applies to your identity data, your legal team must accept that transfer basis, because Clerk offers no way to choose a region. Okta offers cells in the US, EMEA, Japan, Australia, Canada and India, so you can select a region. Okta also states that where its sub-processors process data can vary with the service and the cell you pick, so confirm the cell in writing and ask for the processing location of each sub-processor behind the services you buy. Okta's data residency page lists the cells.
Running Keycloak in your own cloud account, data center or air-gapped network keeps identity data under your control, and the operating work comes with it. Patching, backups, high availability and uptime become your team's job. Keycloak needs a relational database in production, and its documented high availability designs need a synchronously replicated database, so the database team belongs in the plan from the start. Hosted vendors carry much of this work. Clerk's Enterprise plan lists a 99.99% uptime SLA, and Okta operates the service on its side. Self-hosting means the uptime target is one you set for your own users, so define it before you design the cluster, then decide who is on call when it is missed.
Decide three things before you shortlist. First, whether a regional processing requirement applies to identity data, since Clerk offers no region selection and Okta's sub-processor locations vary by cell. Second, whether your team can run a database, a load balancer and a steady upgrade cycle. Since Keycloak 26.0, the project has planned four minor releases a year, and that work recurs all year, as described in the Keycloak release update. Third, who will review the vendor's sub-processor list each time it changes, because your compliance team will ask for that review record.
How Clerk, Okta and Keycloak compare on protocols, federation and admin control
This table compares Clerk, Okta and Keycloak on hosting, licensing, protocols, directory federation, brokering, database and high availability, Kubernetes installation, compliance evidence and multi-tenant B2B modeling. Read each row as a question for the vendor or your own team, since Keycloak is the only one of the three whose core server you run yourself. Keycloak trades operating effort for control over protocols, federation and the database. Clerk and Okta reverse that trade, with managed hosting and vendor-stated controls.
| Capability | Clerk | Okta | Keycloak |
|---|---|---|---|
| Deployment and data hosting | Hosted service on US infrastructure (Google Cloud and Cloudflare). No region selection or regional residency. | Cloud service in US, EMEA, Japan, Australia, Canada and India cells. Sub-processor processing location varies by cell. | Self-hosted in infrastructure you choose. You control where data is stored and backed up. |
| License | Commercial hosted subscription. Plans run from Hobby (free) to custom Enterprise pricing (Clerk pricing page). | Commercial per-user subscription, billed annually, with a $1,500 annual contract minimum (Okta pricing page). | Apache-2.0 open source license. Red Hat build of Keycloak is a separately supported distribution. |
| Protocols | Enterprise SSO connections use SAML, OIDC or EASIE. Confirm full protocol coverage in Clerk's documentation. | Confirm SAML, OIDC and OAuth 2.0 coverage in Okta's documentation before you map your apps. | OpenID Connect, OAuth 2.0 and SAML 2.0 for applications. |
| Directory federation and on-prem app access | Directory Sync billing starts January 1, 2027. Confirm which directories it reads and its on-prem options. | AD agent imports AD users and groups into Okta. Access Gateway reverse proxy sits behind your firewall for on-prem apps. | LDAP and Active Directory user federation. On-prem apps need OIDC, OAuth 2.0 or SAML 2.0 clients. |
| Identity brokering | Confirm whether Clerk brokers logins to external OIDC or SAML providers in its documentation. | Confirm brokering to external OIDC or SAML identity providers in Okta's documentation before you rely on it. | Brokers logins to external OpenID Connect or SAML identity providers. |
| Database and high availability | Managed by Clerk. Enterprise plan lists a 99.99% uptime SLA (Clerk pricing page). Confirm recovery terms in the contract. | Managed by Okta across its cells. Confirm availability commitments and recovery terms in your contract. | Needs a relational database in production, such as PostgreSQL 14 to 18. Supported HA designs need synchronous database replication. |
| Kubernetes installation | Not applicable. Clerk runs as a hosted service you do not install. | Not applicable to the hosted service. Confirm how Access Gateway and the AD agent are deployed in your environment. | Operator installs through Operator Lifecycle Manager (recommended) or kubectl. Helm chart is experimental. |
| Compliance evidence | States SOC 2 Type 2 since May 6, 2022. Report available on Business plan and above. Confirm the report's scope with Clerk. | FedRAMP High authorization applies to Okta for Government High, announced March 28, 2023. Confirm scope for commercial tiers. | Evidence comes from your deployment: configuration, logs and backups. Confirm with your assessor which controls they will test. |
| Multi-tenant B2B model | Confirm how Clerk models customer organizations and per-customer SSO in its documentation. | Built around workforce identity. Confirm tenant isolation and customer-managed admin options for B2B products. | Realms separate tenants, each with its own users, clients and identity sources. Confirm Organizations fit for your version. |
What is paid in Clerk, Okta and Keycloak, tab by tab
Clerk charges on two meters, monthly retained users per app and enterprise SSO connections, as set out on the Clerk pricing page. Every listed plan includes 50,000 monthly retained users per app, so one app with a modest user base may never reach overage. Hobby is free, but MFA and passkeys start on Pro.
- Plan fees: Pro is $25 per month, or $20 per month billed annually. Business is $300 per month, or $250 per month billed annually. Enterprise is custom and quoted separately.
- User overage: Beyond 50,000 monthly retained users per app, the charge is $0.02 each up to 100,000, then $0.018 up to 1,000,000, $0.015 up to 10,000,000 and $0.012 above that. Count each app separately, since the allowance applies per app.
- SSO connections: Pro and Business include one enterprise SSO connection (SAML, OIDC or EASIE) per app. Connections 2 to 15 cost $75 per month each, and connections 16 to 100 cost $60 each. Each additional connection adds a recurring charge.
- Directory Sync: Directory Sync connections use the same tiers, and billing starts January 1, 2027. Budget for it from that date if you plan to use it.
- Hosting location: Clerk does not offer region selection and hosts data on US infrastructure. Confirm that this meets your residency rules before you commit.
Before you sign, ask for a quote that shows expected monthly retained users per app, the number of SSO connections per app, and whether Directory Sync is included from January 1, 2027.
Okta sells Workforce Identity as three suites, Starter, Essentials and Enterprise, priced per user per month and billed annually, according to the Okta pricing page. Each higher suite adds modules to the one below it, so the price question is which modules your team actually uses and how many users each one covers.
- Annual minimum: The annual contract minimum is $1,500, so very small user counts still pay that floor. Ask how the minimum interacts with the per-user rate on your quote.
- Starter suite: Includes Single Sign-On, Multi-Factor Authentication and Universal Directory. This is the baseline for a directory-led SSO rollout.
- Essentials suite: Adds Adaptive MFA, Lifecycle Management and Access Governance. Budget for it when joiner, mover and leaver work or access reviews are a funded requirement.
- Enterprise suite: Adds API Access Management, Access Gateway and machine-to-machine tokens. Access Gateway is a reverse proxy deployed behind your firewall for on-premises apps without federation support, so its deployment and upkeep are effort on your side.
- Directory agent: Connecting Active Directory means installing the Okta AD agent and importing users and groups into Okta. Hosting and patching the agent is work your team carries.
Ask for the per-user rate by suite, the user count at signing and at renewal, the annual minimum, and the cost of any module you need outside the suite you choose.
Keycloak is licensed under Apache-2.0, and the project charges no per-user or per-connection fee for the server. Its costs are the infrastructure, the production database and the staff time to install, upgrade and run it. Keycloak does not publish a pricing page, so the license terms come from the Keycloak LICENSE file.
- Current release: Keycloak 26.8.1, released October 13, 2026, is the current release. Since Keycloak 26.0 the project plans four minor releases a year, so upgrade work recurs and belongs in the budget.
- Production database: Production needs a supported relational database, such as PostgreSQL 14 to 18. The database is a separate cost to host, back up and fail over, and a commercial database adds its own license.
- High availability: Documented designs need a synchronously replicated database, so the database tier is a larger cost line than on a single node.
- Red Hat build of Keycloak: Red Hat's supported distribution replaces Red Hat Single Sign-On and is based on the open source project. It runs under Red Hat's own terms, so confirm the subscription scope and support windows with Red Hat before you budget for it.
- Staff time: Installation, hardening, upgrades and support are paid to your platform team or an implementation partner, and these costs recur with each minor release.
Before budgeting, confirm the Red Hat subscription terms directly with Red Hat if you need a supported build, and size platform team hours against your own environment.
What drives the running cost of Clerk, Okta and Keycloak
Subscription prices are only part of the bill for these three platforms. Clerk and Okta charge recurring fees that scale with users, apps and suites, while Keycloak has no license fee for the server but moves its cost into the database, high availability and staff time. Use the cards to separate what recurs from what is one-time, and ask each vendor or partner to price the same written scope.
Clerk recurring fees
Clerk bills a recurring plan fee. Pro and Business are priced monthly or with annual billing, and every listed plan includes 50,000 monthly retained users per app. Users above that allowance are billed per user in tiers, so growth in any one app moves the bill. Each app also gets one enterprise SSO connection on Pro and Business, and extra connections are billed monthly by tier. Everything on this card recurs. Ask for a quote that models each app, its monthly retained users, the SSO connections you need and the plan that includes the MFA and passkeys your policy requires.
Clerk pricingOkta recurring fees
Okta sells Workforce Identity suites priced per user per month and billed annually, with a $1,500 annual contract minimum. The suite drives the price. Starter covers Single Sign-On, MFA and Universal Directory, Essentials adds Adaptive MFA, Lifecycle Management and Access Governance, and Enterprise adds API Access Management, Access Gateway and machine-to-machine tokens. The fee recurs every year, and renewal terms set the next year's cost. Ask which suite contains each capability you need, how the vendor counts users, and how renewal pricing is set.
Okta pricingKeycloak software cost
Keycloak is licensed under Apache-2.0, and the server itself carries no license fee for the server itself in the sense of a per-user or per-instance charge. The cost decision is the distribution. Red Hat build of Keycloak is Red Hat's supported distribution based on the open source project, and it may carry a Red Hat subscription that recurs. Confirm whether your team needs vendor support, and if so, whether that subscription appears in your quote. Upstream downloads are free, but patching and upgrades remain work your team or partner performs.
Keycloak licenseKeycloak operating cost
Most running costs for Keycloak recur, and most of them sit with you. Production needs a relational database, from PostgreSQL 14 to 18 to Oracle Database or Microsoft SQL Server, and the default dev-file database is not for production. Every supported high availability design needs a synchronously replicated database, so plan that tier as a separate line item. Add compute, backups, Keycloak upgrades, regression testing and staff time. Keycloak plans four minor releases a year, so upgrade testing is a recurring task. Ask for each component sized in writing.
Keycloak database guideImplementation services
Implementation is the main one-time cost, and the written scope sets its size. Drivers include the number of apps to integrate, the protocols each app needs (OpenID Connect, OAuth 2.0, SAML 2.0 or LDAP federation), the directories to connect and the compliance evidence your assessors will request. DeployOpen plans most engagements as fixed scope agreed in writing before work starts. Ongoing support, upgrades and continuous testing are separate retainers that recur. Ask for the deliverables, the exclusions and which items sit in the fixed scope versus a retainer.
Switching cost later
Leaving a platform is a one-time cost in exports, re-registration and client reconfiguration. Clerk's dashboard export under User exports is a CSV that includes users' hashed passwords, so the target platform must support the same hashing scheme or users will need a password reset. Okta documents three ways to list active users: the Password Health report CSV in the Admin Console, the community Rockstar browser extension, and the List Users API with a filter. Check the target's hash support before you choose a platform, and ask any migration partner to price the export and import within the written scope.
Clerk export docsWhat implementing each platform involves in practice
Clerk work is mostly application integration. Your frontend and backend apps call Clerk's SDKs and hosted components, so the effort sits in each app's sign-in, session handling and user lookups. Before you build, count enterprise SSO connections per app. Pro and Business include one SAML, OIDC or EASIE connection per app, and the pricing page lists $75 per month for each of connections 2 to 15 and $60 for connections 16 to 100, with Directory Sync connections on the same tiers from January 1, 2027. Then confirm hosting. Clerk's security page says it offers no regional data residency or region selection and hosts data on US infrastructure. If your data rules require a chosen region, put that question to your privacy team before integration starts.
Okta work starts in the directory and ends in the apps. If your users live in Active Directory, install the Okta AD agent and import AD users and groups into Okta, then settle which groups control app assignment before you configure anything else. For on-premises applications without federation support, plan an Access Gateway deployment: a reverse proxy behind your firewall that protects those apps with HTTP headers, Kerberos tokens and URL-based authentication. Access Gateway sits in the Enterprise suite, so confirm that tier with your Okta account team. Then configure SSO app by app, testing each with a pilot user and the attribute mappings that app expects. Review the Access Gateway overview before you size the proxy layer.
Keycloak starts with the database. The default dev-file database is for development only, so production needs one of the supported relational databases, and PostgreSQL 14 to 18 is among them. Next choose the high availability design: a single cluster, optionally spread across availability zones, or the multi-cluster v2 design that avoids an external Infinispan cluster. Multi-cluster v1 is deprecated, so avoid starting new builds on it. Both supported designs need a synchronously replicated database, which your database team must confirm. Install through the Operator with Operator Lifecycle Manager, the recommended route, or with kubectl. Then configure brokering to external OIDC or SAML providers, or LDAP and Active Directory federation. Minor releases can bring breaking changes, but these are opt-in, so upgrade testing stays with your team or your implementation partner. The Keycloak database guide lists the supported engines and versions to check against.
What buyers ask before choosing Clerk, Okta or Keycloak
How much does Keycloak cost to run compared with Clerk and Okta?
Keycloak has no license fee under Apache-2.0, so its cost is the infrastructure, database, staff time and any support contract you add, while Clerk and Okta bill you for the service. Clerk's pricing page lists Pro at $25 per month or $20 billed annually and Business at $300 per month or $250 billed annually, with 50,000 monthly retained users included per app on each listed plan and tiered charges beyond that. Clerk also charges $75 per month for each enterprise SSO connection from the second to the fifteenth, according to its pricing page. Okta sells Workforce Identity suites per user per month, billed annually, with a $1,500 annual contract minimum, according to Okta's pricing page. Ask each vendor for a written quote built from your user count, connections and suite. For Keycloak, price the database, hosting, monitoring and the engineers who patch and upgrade it.
Can our team run Keycloak without an implementation partner?
Often yes, if your team already operates production databases, TLS, load balancers and the platform Keycloak will run on, though the work continues after go-live. Keycloak needs a relational database in production (PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL are supported) and its high availability designs need a synchronously replicated database. If you use the Keycloak Operator, your team must also run Kubernetes or OpenShift and install the Operator through Operator Lifecycle Manager, which Keycloak recommends, or with kubectl. Upgrades matter too: since Keycloak 26.0 the project plans four minor releases a year, and breaking changes in a minor release are opt-in, so someone must test each release. Confirm internal skills in each of these areas before you decide, and if gaps remain, scope a partner for the gaps in writing.
How long does a Keycloak or Okta rollout take?
The length of a rollout depends on the scope agreed in writing, so ask every vendor and partner for a timeline in the quote. For Keycloak, the drivers are the applications and protocols in scope (OpenID Connect, OAuth 2.0 or SAML 2.0), the directories you federate from LDAP or Active Directory, any brokering to an external provider, the database and high availability design, and the number of environments tested before cutover. For Okta, add the directory integration, such as the Okta AD agent that imports Active Directory users and groups, and any Access Gateway work for on-premises apps. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so ask for a phased plan with dependencies on your teams, the cutover approach and the assumptions behind each date.
Can we move off Clerk or Okta later, and what do exports include?
You can export users from both, but what each export carries decides how much rework a move needs. Clerk admins can export an instance's users from the dashboard under Settings, User exports, and the downloaded CSV includes users' hashed passwords (Clerk's import and export guide). Confirm that your target platform accepts those hash formats before you plan to carry logins over. For Okta, three documented routes list active users: the Password Health report CSV in the Admin Console, the community Rockstar browser extension, or the List Users API with a filter. Confirm with Okta which fields each route returns, including any password data, MFA enrollments, group memberships and app assignments, and review any community tool under your own vendor policy. Plan to re-enroll MFA devices and passkeys wherever the export does not cover them.
Does Keycloak carry SOC 2 or FedRAMP certification?
No. Keycloak is open-source software, so it carries no SOC 2 report or FedRAMP authorization of its own. Compliance attaches to the environment you run it in, including hosting, database, logging, key management, access reviews and change management, and independent auditors or the authorizing body decide whether those controls meet the standard. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Okta for Government High received FedRAMP High authorization, announced by Okta on March 28, 2023, and Clerk states it has been SOC 2 Type 2 certified since May 6, 2022, with the report available on its Business plan and above. Those are vendor statements about their own services, so request current reports directly and ask your assessor which controls they will test.
Can Keycloak broker logins from an existing Okta tenant?
Yes, in principle: Keycloak brokers logins to external OpenID Connect or SAML identity providers, so an Okta tenant can serve as one, but the exact settings depend on your Okta configuration. Keycloak sends users to the external provider to sign in and then issues its own tokens to your applications, so Okta controls the sign-in and Keycloak controls what each application receives. Confirm in Okta which application type to create for each protocol, which redirect URI Keycloak's broker endpoint must be registered under, which claims or attributes Okta sends, and how group mapping works. Also confirm whether Okta's MFA and sign-on policies apply to brokered logins, and set Keycloak's user matching rules so one person does not end up with two accounts. Test with a pilot group before you move the rest of your users. The Keycloak server administration guide covers identity brokering settings.
How should we weigh Okta's November 2023 support incident in vendor review?
Use Okta's published root cause as a checklist for any identity vendor, Okta included. Okta's root cause analysis, published November 3, 2023, reported that a threat actor accessed files in its customer support system associated with 134 Okta customers, using a service account whose credentials an employee had saved to a personal Google profile. Ask how privileged service credentials are stored, rotated and monitored, and whether they can ever sit in personal profiles or devices. Ask which support tools require phishing-resistant MFA and session controls, and how those controls are reviewed. Ask how and how quickly affected customers are notified, and what your contract commits the vendor to. Ask what customer data reaches support cases through attachments, logs or exports, and how long it is kept. The incident alone does not decide the vendor, so weigh it against current controls and how the vendor responded.
How to choose between Clerk, Okta and Keycloak in four questions
Start with one question: must identity data stay in your own cloud, data center or air-gapped network? If yes, Keycloak is the starting point, and your team or partner must operate it. If no, ask whether sign-in for apps you build can run on US hosting. Clerk offers no region selection, so confirm that against your data rules and check the enterprise SSO connections your plan includes. If you need a managed workforce directory, lifecycle management or an Access Gateway for on-premises apps, Okta is the candidate, so confirm the cell and suite. Any other answer sends you back to the shortlist, weighed against your team's skills and data rules.
Each yes routes a team to one platform, and other answers go to review.
How DeployOpen helps choose and implement without favoring a platform
DeployOpen is a Chainscore Labs company that plans, implements, integrates, hardens and supports self-hosted open-source platforms inside your own infrastructure. We work from a written scope agreed before any work starts, so the choice of platform stays with your team. Keycloak is the open-source option on this page, and the steps below show what we would scope, build, hand over and support if you choose it.
How we scope
- The written scope names the Clerk, Okta or Keycloak components, environments and integrations in play before any work starts.
- Scope covers identity requirements such as SAML or OIDC clients, user sources and MFA expectations, agreed with your security team.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing; ongoing support is available as a retainer.
How we build
- For a Keycloak build, we install, configure realms and clients, and connect the production database you select.
- Our implementation work covers self-hosted open-source platforms, so confirm Clerk or Okta integration work in writing.
- Security testing covers the application and API layer, cloud and infrastructure, as the written scope defines.
How we hand over
- Documentation covers configuration, identity flows, and the access and admin settings your team needs to operate it.
- SSO, access control and audit logging settings are documented for your compliance team to review.
- Security testing deliverables can include a findings report with fixes and a retest, as the scope states.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Keycloak plans four minor releases a year, so upgrade planning becomes a recurring task.
- For Clerk or Okta, confirm which operating and support tasks stay with your own team before signing.

