Keycloak cost of ownership and editions

Community Keycloak and the Red Hat build of Keycloak differ mainly in who supports the software and on what terms. The bigger costs are usually the infrastructure, database, high availability and the people who run it, and this page shows how to split them into one-time and recurring costs before you request a quote.

On this page

How much does Keycloak cost to own, and does the edition change the bill?

Community Keycloak carries no license fee: the server is licensed under Apache 2.0, so the cost of owning it is the cost of running it. The Red Hat build of Keycloak is Red Hat's supported distribution based on the open source project and replaces Red Hat Single Sign-On, so the edition decision is mostly about whether you buy vendor support and a supported build on top of the same core, not about a different product. Most teams cost this in-house, using their own infrastructure, database and staffing figures, and bring a partner in when they want an independent model to check the assumptions. DeployOpen does not publish a price list, so the number you budget comes from a written scope and quote, not from a rate card.

The bill has two kinds of line. One-time costs include design, initial build, realm and client setup, directory integration, migration from an existing identity service, and testing. Recurring costs include compute for the Keycloak nodes in each environment, a production database that supports the synchronous replication required for the supported high availability designs, load balancing, monitoring and log storage, backups, and the staff time that keeps the platform patched. Keycloak's upgrade path brings in four minor releases a year, so the recurring effort is driven by how often you test and roll out those releases across non-production environments. Confirm each cost against your own cloud or data center pricing, since those figures vary by provider and region.

The edition changes the support line more than the engineering line. Ask the Red Hat build subscription vendor or your reseller what is covered, which versions and support windows apply, and whether the subscription includes the components you plan to use, such as the Operator or the database drivers in your target stack. Ask a partner to show the quote as separate line items for software subscription, infrastructure, database, high availability, monitoring, implementation and ongoing support, so you can see which costs disappear if you choose the community build and which remain. Verify current edition terms directly with Red Hat, because a subscription price and its inclusions can change independently of the open source project.

What a Keycloak cost of ownership review covers

A useful review models every cost category that a self-managed Keycloak deployment carries, not just the license line. Each card below names the cost, who pays for it, and what the reader should receive, so the model can be checked against the chosen edition, hosting and staffing.

Edition or subscription

Start by deciding between the community Keycloak build, which is licensed under Apache 2.0, and the Red Hat build of Keycloak, which carries a Red Hat subscription. The community build has no license fee, but your team or a partner carries all support, patching and incident response. Ask the Red Hat sales team for the subscription terms, support levels and what the subscription includes. Record the decision and its assumptions in the model.

Red Hat build page

Compute and load balancing

Model the nodes that run Keycloak, their CPU and memory, the number of nodes for each environment, and the load balancer in front of them. Compute costs recur monthly or yearly depending on where you host. Ask for sizing based on expected login volume and token issuance, and confirm the load test results before accepting the number of nodes.

Supported production database

Keycloak supports several production databases, including PostgreSQL, MySQL, MariaDB, Microsoft SQL Server, Oracle Database and Azure SQL. The database license, hosting and backup costs differ widely between them. The development file database is for development only and cannot anchor a production estimate. Confirm the database version against the supported list before pricing it.

Database guide

High availability design

A high availability design doubles or triples the nodes and requires a synchronously replicated database for supported designs. Choose between a single cluster across availability zones and multi-cluster deployments, and model the cost of each. The multi-cluster v1 design uses a separate Infinispan cluster per site and is deprecated, so do not budget for it on new work. Ask what failover testing is included.

HA overview

Monitoring and alerting

Budget for metrics collection, storage and dashboards, plus the on-call time to act on alerts. Keycloak exposes Prometheus-format metrics when metrics are enabled on the management interface, but the Prometheus stack, retention and alert routing are your costs. Name who owns the alerts on login failures, latency and cache health, and whether that person is internal or contracted.

Metrics guide

Upgrade effort

Keycloak plans four minor releases a year, so upgrade work recurs. Each cycle includes reading upgrade notes, testing realms and clients in a non-production environment, choosing a database migration method and approving operator updates. The 26.8 notes, for example, changed SMTP and logout token behavior. Estimate this as a recurring allowance and ask whether a retainer covers it.

Upgrading guide

Internal and external staffing

Staffing is usually the largest recurring cost. Separate the internal identity administration, platform operations and security review time from any external implementation, support or retainer work. Write down who answers at 2 a.m., who approves releases and who maintains realm configuration. Ask a partner to state its roles, hours and deliverables in writing so the comparison with an internal team is fair.

Community Keycloak or the Red Hat build: how each option changes the cost

The community build is the open source Keycloak project, licensed under Apache 2.0 and developed in the public keycloak/keycloak repository. No vendor sells support for it, so the software itself carries no license fee. The cost moves to people: your team, or a partner you contract, owns every layer from the database to the upgrade calendar, and no one is contractually obliged to answer a sign-in outage at a set time.

  • Support: Help comes from public documentation and community channels. Any response commitment must come from your own staff or from a third-party contract you sign separately.
  • Staffing: You need people who can run clustering, database connectivity, TLS, the reverse proxy and metrics, plus an on-call rota for sign-in failures.
  • Upgrades: The project plans four minor releases a year. Your team schedules, tests and applies each one, and reads the upgrade notes for behavior changes before every move.
  • Security fixes: Your team must watch for security releases and patch promptly. No one applies fixes to your environment on your behalf.

Before budgeting, confirm which release line you will standardize on and name the person who owns the patch calendar and the test realms.

Which factors push Keycloak costs up or down

This table lists the main drivers of Keycloak effort and spend, why each one moves the cost, and how to keep it contained. Read it before requesting a quote, because the same driver can appear in both the one-time build and the recurring run cost. Most of the variance between two quotes comes from the rows marked as scope or design decisions.

DriverWhy it changes costHow to keep it down
User count and realmsEach realm carries its own clients, flows, keys, and policies, so more realms mean more configuration to build, test, and back up. User volume mainly affects database sizing and the load the cluster must carry.Use one realm per trust boundary where possible. Ask the partner to size the database and cluster from your peak login rate, not total user count.
Number of applications and clientsEvery application needs client registration, token and session settings, role mapping, and a test pass before cutover. Cost scales with the count of distinct integration patterns more than with raw client numbers.Group similar apps onto shared client patterns. Ask for a per-client effort estimate in the quote so additions are priced consistently.
Directory integration (LDAP or Active Directory)User federation adds mappers, sync settings, a read-only or writable mode decision, and coordination with the directory team. Kerberos sign-in adds more setup and testing.Decide early whether the directory stays the source of truth. Confirm which federation mode and mappers are in scope and who owns directory-side changes.
HA design across availability zonesBoth supported high availability designs need a synchronously replicated database, so the database tier, load balancing, and failover testing are often the largest recurring infrastructure items. The multi-cluster v1 design needs a separate Infinispan cluster per site, which the upgrade guide marks as deprecated.Confirm your availability targets before design. Ask whether the quote covers failover testing and whether the chosen design avoids the deprecated multi-site feature.
Number of environmentsDevelopment, test, staging, and production each need the same database engine, configuration, and realm content, and realm changes must be promoted between them. Each extra environment adds infrastructure and upkeep.Keep non-production environments smaller where your risk allows. Use the Keycloak Operator and version-controlled realm configuration so environments stay consistent.
Compliance evidence needsAssessors typically ask for configuration records, access reviews, audit log retention, and proof of TLS and admin separation. Producing that evidence is extra work, and DeployOpen prepares evidence but does not issue audit reports.Define the control list before build. Ask whether the quote includes evidence packs and who will hold the external audit relationship.
Customization through themes or SPI extensionsCustom login themes, authentication flows, and SPI extensions such as custom user storage or event listeners must be rebuilt and retested on each upgrade, so they add a recurring cost that stock configuration does not.Prefer built-in flows and configuration. Where an extension is needed, ask for its upgrade and test cost to be stated separately.
Edition choice (community or Red Hat build)Community Keycloak is open source under Apache 2.0, so software is not a license line item, but support is handled by your own team or a partner. The Red Hat build of Keycloak adds a Red Hat subscription, which is quoted by Red Hat and not by DeployOpen. Confirm current terms with Red Hat, since the product page showed version 26.6 as latest in the supplied research.Compare support obligations, not only software price. Ask Red Hat for a subscription quote and ask the partner to price both editions against the same scope.

Which Keycloak costs are one-time and which recur every year

The one-time costs of a self-managed Keycloak rollout sit mostly in the build. Design work covers realms, clients, the HA model and environments. The initial build includes the database and high availability setup, integration with each application, and testing of sign-in flows and failover. If you are moving off a hosted identity service or an older Red Hat Single Sign-On or WildFly-based Keycloak, migration of users, password hashes and client cutover is another one-time item, and it often costs more than the initial install. Ask any partner to price these phases separately so you can see which parts you would repeat if you rebuilt the platform later.

The recurring costs are the ones that hold for every year of operation. Infrastructure for the Keycloak nodes, the load balancer and the database runs continuously, and the database may carry its own licensing if you choose a commercial engine such as Oracle Database or Microsoft SQL Server. If you buy the Red Hat build of Keycloak, the subscription is recurring. Monitoring, log storage and on-call coverage recur as well. The largest recurring item is usually staff time: someone has to read upgrade notes, test each release against your realms, and apply updates. Keycloak plans four minor releases a year, so budget that cadence as a standing workload, not an occasional project.

Upgrade effort depends heavily on how the database schema changes are applied. Keycloak migrates its schema automatically at startup by default, which is quick to operate but means a bad migration can surface in production. Manual migration, where your team applies the SQL itself, adds a review and scripting step each release but gives you control over timing, which the upgrading guide suggests for large deployments. Confirm with your partner or internal team which mode you will use, because it changes how many hours each upgrade consumes and whether a test environment must hold a copy of production data. Check the current upgrade guidance in the Keycloak upgrading guide before you finalize the run budget.

Which edition and deployment choices set the cost model

The diagram starts with the edition question, then passes through support requirements, the production database choice, the high availability design and the Operator decision before reaching the cost model. Each hand-off changes a line item: a support subscription is recurring, while database sizing, HA testing and Operator setup are mostly one-time work with ongoing upkeep. Check each branch against your own environment before asking for a quote, because the deprecated multi-cluster v1 design should be ruled out early.

Edition and deployment decisions that feed one-time and recurring cost lines.

Recurring costs after go-live and who pays for them

This table lists the costs that continue after Keycloak goes live, who typically pays for each one, and what to request in a quote. Read it as a checklist for the annual budget, noting where the Red Hat build adds a subscription line that community Keycloak does not carry. The main takeaway is that most recurring cost is internal staff time and testing effort, not software licensing, so a quote should separate those lines clearly.

Recurring costOwner and what to request in a quoteWhat drives it
Hosting and runtime capacityInternal platform team pays cloud or data center charges. Ask the partner for a sizing estimate by environment and node count, with the assumptions stated.Number of nodes in the chosen HA design, traffic peaks, and separate non-production environments
Database capacity and backupsInternal database team pays for the synchronously replicated database and backup storage. Ask for the supported database versions and the backup and restore steps included in scope.Database engine choice from the supported list, storage growth from events and sessions, and replication topology
Red Hat build subscription (if chosen)Red Hat is paid directly by the client for the subscription. Confirm the subscription tier, term, and what support covers with Red Hat, since DeployOpen does not resell it.Chosen edition, number of subscriptions required for the environments, and renewal term. Community Keycloak carries no subscription line
Monitoring stackInternal observability team pays for Prometheus and dashboards. Ask the partner to confirm the metrics endpoint is enabled on the management interface and that scrape and alert rules are included.Metrics retention period, alerting volume, and whether an existing monitoring platform is reused
Security release tracking and patchingInternal security team tracks advisories and approves changes. Ask the partner whether security release review and patch rollout are retainer items or one-off work.Number of releases to assess, environments to patch, and how much regression testing each change needs
Four minor releases a year and regression testingInternal identity team reads upgrade notes and tests realms. Partner effort, if used, is quoted per upgrade. Ask for the testing scope per release, including clients and sign-in flows.Number of realms, custom themes or SPI extensions that need retesting, and how often behavior changes are opt-in
Operator update approval (Kubernetes installs)Internal platform team approves operator updates in manual mode. Ask for the approval process and who owns rollback if an update fails.Use of manual versus automatic approval, and the number of clusters the operator manages
Internal administration staff timeInternal identity administrators pay through salaried time for user, client and realm changes, incident response and access reviews. Ask the partner to estimate ongoing support hours in its retainer proposal.Number of applications onboarded per year, user lifecycle volume, and how many custom flows must be maintained

Where Keycloak cost estimates usually go wrong

Most Keycloak budgets miss the same few items: the cost of running the software yourself, the database, the high availability design, and the work that comes with every upgrade and audit. Each card below names one of these gaps and the check that prevents it from reaching the final quote.

Treating community Keycloak as free

Keycloak is licensed under Apache 2.0, so the software itself has no license fee. The cost sits elsewhere: the compute, the database, monitoring, and the engineers who build, patch and operate the service. Ask every quote to list these as separate lines, and ask who owns each one after go-live. A community deployment is free to download, but it still carries recurring operating cost that your own team or a partner must fund.

Keycloak docs

Leaving the database unplanned

Keycloak stores realms, users, clients and sessions in a supported relational database, and the choice of engine drives both licensing and staffing. The development file database is for development only, so production needs a supported engine such as PostgreSQL, MySQL, MariaDB, SQL Server, Oracle or a managed service. Confirm who backs it up, who restores it, and whether your team already runs that engine.

Database guide

Assuming HA works without replication

Both supported high availability designs depend on a synchronously replicated database. A cluster of Keycloak nodes in front of an unreplicated database does not give you failover, and a second database site adds cost in licenses, network links and failover testing. Ask the team to state the availability target, the database topology that meets it, and the test plan that proves failover works before the estimate is final.

HA overview

Skipping upgrade and release testing

Keycloak plans four minor releases a year, and minor releases can carry behavior changes that are opt-in. Each upgrade needs a read of the upgrade notes, a test realm that mirrors production, and a window for database migration. Budget for this as recurring effort. Ask whether the quote includes test environments, regression checks against your login flows, and a rollback plan.

Upgrading guide

Ignoring the deprecated multi-site v1 move

The multi-cluster v1 design, which used a separate Infinispan cluster per site, is deprecated. The Keycloak 26.8 upgrade notes recommend moving from the deprecated multi-site feature to the stateless feature. If your design depends on v1, the migration is a funded project with its own testing, not a routine upgrade. Ask for the current HA design in writing and whether the quote covers that move.

HA architectures

Omitting compliance evidence work

Keycloak does not produce audit evidence by itself. Access reviews, logging of admin actions and login events, TLS configuration, and documented change control all have to be designed, collected and kept. Those tasks take staff time that rarely appears in a first estimate. Ask the partner which control evidence they will prepare, which artifacts the client keeps, and which findings an independent auditor will still need to assess.

How to build a cost estimate and compare partner quotes

This sequence turns a vague budget question into a written cost model that a partner quote can be checked against line by line. Each step produces an artifact you can hand to finance, security and the implementation team.

  1. Inventory applications, realms and user counts

    Start by listing every application that will sign in through Keycloak, the protocol each one uses (OpenID Connect, OAuth 2.0 or SAML 2.0), and whether it needs its own realm or can share one. Record the user population per realm, including external partners and any directory you expect to federate from. Your identity team and application owners do this together. The step is done when each application has a named owner, a protocol and a realm assignment, and the user counts have a source you can defend.

  2. Map directory and identity provider dependencies

    Identify which user stores and external sign-in sources the design must connect to, such as LDAP or Active Directory, Kerberos, or external OIDC and SAML providers and social logins. Each connection adds integration design, testing and ongoing directory support. Note which directory is the source of truth. The output is a dependency list with the owner of each system and a yes or no on whether the integration work sits inside the rollout scope.

  3. Choose the edition and support model

    Decide between the community Keycloak project, which is open source under Apache 2.0, and the Red Hat build of Keycloak, which is Red Hat's supported distribution based on the same project and replaces Red Hat Single Sign-On. Ask whether your organization needs vendor-backed support terms, a defined patch cadence or contractual commitments, because those requirements determine whether a subscription is needed at all. Confirm current terms directly with Red Hat, since the subscription price and included entitlements are not part of this page. The output is a written edition decision with the reasons recorded.

  4. Design the high availability and database layout

    Select the HA architecture your availability targets justify: a single cluster, optionally spread across availability zones, or a multi-cluster design. Both supported designs require a synchronously replicated database, so pick a supported production database and confirm the replication setup with your database team. Count the environments you need (development, test, staging, production) and the database instances, load balancers and monitoring stack each one implies. The output is an architecture sketch with a component list that the cost model can price.

  5. Build the one-time and recurring cost model

    Create two tables. The one-time table covers design, installation, integration, realm and client configuration, customization, migration, testing and documentation, along with the cloud or data center set-up work. The recurring table covers compute, storage, database, backups, monitoring, subscriptions if chosen, internal operations time, upgrades and security testing. For each line, record who pays (your staff, a partner, a vendor or a cloud provider), what drives it up or down, and whether it recurs. Label any assumption you cannot verify. The output is a model your finance team can rerun when user counts or environments change.

  6. Request written scope from each candidate

    Give every candidate partner the same inputs from steps one to five: the application and realm inventory, the directory dependencies, the edition decision, the HA design and the environments. Ask for a written scope that lists deliverables, assumptions, exclusions, acceptance criteria and who provides which access and information. Ask how upgrades, support and retesting are priced after go-live. Scope is what makes quotes comparable, so do not accept a quote that describes work only in general terms. The output is a written scope document per candidate.

  7. Compare quotes line by line

    Place each quote's line items beside your cost model and check that every component appears in each one, including exclusions. Look for gaps such as missing environments, untested failover, unpriced upgrade work, customization that assumes an interface you have not approved, or internal effort that the quote assumes you will provide. Ask each candidate to explain the differences in writing. The step is complete when you have one comparison sheet that shows included scope, excluded scope, one-time costs, recurring costs and open questions for each partner.

What your team needs to provide before a cost review

Before anyone can price a self-managed Keycloak deployment, the review needs a written application inventory. For each application, list the protocol it uses (OpenID Connect, OAuth 2.0 or SAML 2.0), whether it is a web, mobile, API or machine client, the approximate number of users who will sign in, and whether it needs single sign-on with other applications. Note which user directories hold the accounts today, such as Active Directory, LDAP, a hosted identity service or a local user store. Directory integration and user federation are among the largest effort drivers, so a directory that is undocumented or has several sources will change the estimate more than anything else on this list.

Next, state the target database and any existing licensing position. Keycloak supports several production databases, including PostgreSQL, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Azure SQL, and the database guide lists the supported versions. Your team should confirm which engine it already operates, who supports it, and whether an enterprise license or managed service is already paid for. Also record the availability target for sign-in, the environments you need (development, test, staging and production), the compliance scope that applies to the identity system, and the current version of any system being replaced, since a migration from Red Hat Single Sign-On or an older WildFly-based Keycloak carries different work than a greenfield build.

Finally, name the people who will own identity administration after go-live. A cost review needs named owners for realm configuration, client registration, user lifecycle, incident response and upgrades, along with the hours each role can give. Confirm which of these roles already exist in your organization and which must be hired, trained or contracted. Ask whether your change process requires separate approval for production identity changes, because that adds recurring effort. Bring this material to the review as a single document so each cost component can be traced back to a stated input.

Keycloak cost of ownership questions buyers ask

Does community Keycloak have a license cost?

No license fee applies to the software itself. Keycloak is licensed under Apache 2.0 and is available from the keycloak/keycloak GitHub repository, so the cost of running it is the infrastructure, database, high availability, monitoring and people needed to operate it. Those costs are real and are usually larger than people expect at the start. The license terms do not replace a budget for these components, and you should confirm the current license text in the repository before you rely on it in a procurement file.

What does the Red Hat build of Keycloak add?

The Red Hat build of Keycloak is Red Hat's supported distribution based on the open source Keycloak project, and it replaces Red Hat Single Sign-On. The purchase is for vendor support and a supported build with its own lifecycle, not for a different identity feature set. Check on the Red Hat product page which subscription tiers, support windows and version lifecycles apply to your account, and ask whether the supported build tracks the upstream release you plan to run.

How does cost change with the number of users and applications?

Cost depends mainly on the load and the shape of the setup, not on a single per-user fee in the open source edition. Drivers include the number of realms, the number of applications and clients, login volume and peak sign-in bursts, the number of environments, directory integration such as LDAP or Active Directory, and whether you need multiple availability zones. Each of these changes the size of the nodes, the database tier and the test effort. Ask the partner to show which of these drivers the quote assumes.

What recurring work follows go-live?

Recurring work includes applying upgrades, since the project plans four minor releases a year, reading upgrade notes, testing realms before each production change, and reviewing security releases. Operations also include database backups and restore tests, monitoring and alert tuning, certificate renewal, operator update approval where the Operator is used, and access reviews for the admin console. Budget for these every year, not only at launch. The upgrading guide and the release notes describe what each change involves.

Can our team model the costs alone?

Yes, a capable platform team can build a cost model alone, provided it lists every component and owner. Start with the infrastructure for production and non-production environments, the supported database, the high availability design, metrics and log storage, and the staff hours for identity engineering and application teams. Then add one-time items such as design, migration and testing, and recurring items such as upgrades and on-call. The gaps usually sit in testing effort and in the hours application teams spend on client changes, so review those two lines with the people who will do the work.

What should we request in a quote?

Ask for a written scope that names the realms, applications, directory sources, environments, high availability design and the database. Request a list of deliverables, the roles involved, the assumptions behind the effort, and which items are one-time and which are recurring. Also ask what is excluded, how changes to scope are priced, what testing is included, and what support covers after go-live. A quote without these details cannot be compared with an internal estimate. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and quotes follow from that written scope.

How long does a cost review take?

The length of a cost review depends on how many applications, realms and integrations are in scope and how much of the current state is documented. Confirm the timeline with the partner during scoping, and ask for it to be written into the proposal. Ask which inputs you must provide, such as an application inventory and directory details, because late inputs are a common cause of delay.

Which parts of the Keycloak work should stay in-house?

Keep decisions that depend on your business rules in-house, including who may hold each role, which applications get which realms, how users are approved and offboarded, and which risks you accept. Your team should also own the production admin accounts, the signing and TLS keys, and the final sign-off on each upgrade. A partner can build, test, document and support the platform, but accountability for access decisions and for the data it holds stays with your organization.

How DeployOpen scopes Keycloak cost and edition work

DeployOpen helps teams compare community Keycloak with the Red Hat build of Keycloak on the same written scope, so the cost of each option is visible before a decision. Work is planned, built, tested and documented inside your own infrastructure, with every cost component named and tied to a deliverable.

How we scope

  • Inventory the platform, database, high availability, monitoring and staffing assumptions that a Keycloak cost model depends on.
  • Agree in writing which edition options, environments and support levels are included before any quote is issued.
  • Confirm with Red Hat or your procurement team the current subscription terms for the Red Hat build of Keycloak before comparing totals.

How we build

  • Build a side-by-side cost model covering one-time setup and recurring infrastructure, database, licensing and staff time.
  • Size the database and high availability design against the chosen edition and your availability targets, and record the assumptions used.
  • Set up metrics and operating runbooks so the recurring effort of running the platform is visible and measurable from day one.

How we hand over

  • Deliver a written cost model with assumptions, unit drivers and the questions to ask each vendor, so your finance and platform teams can reuse it.
  • Document the edition decision, supported database versions and upgrade cadence so the owning team can maintain the estimate after handover.
  • Provide a quote worksheet that maps every line to a scoped deliverable, so the price can be checked against the agreed scope.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer if your team wants help keeping the cost model current.
  • Review the cost model when the release cadence changes, such as new minor releases or a new Red Hat build version, and update the assumptions.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.