Keycloak
Self-hosted development platform · Free
An identity and access management server with OpenID Connect and SAML: it connects login, roles, and federation to applications you build.
Also known as: keycloak/keycloak; keycloak; identity-access-management

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Add centralized login and roles to an application
- Connect the login flow to the application and verify role and claim transfer
Example workflow
A possible workflow; this is not a report of hands-on testing.
Add centralized login and roles to an application.
Before you start
- One working workflow and test data.
- The project's server environment and integrations.
Steps
- Create a realm and client for the application and login protocol.
- Connect the login flow to the application and verify role and claim transfer.
- Configure permissions, backups, and monitoring before production use.
Check your result
- The workflow works with minimal permissions and error handling.
- Compare the chosen hosting method's terms with the task; account for infrastructure and external service costs.
Choosing Keycloak
Add centralized login and roles to an application
Choose this when
- Add centralized login and roles to an application
- Connect the login flow to the application and verify role and claim transfer
Requirements
- Identify the configuration source: CLI, environment, configuration file, or Java KeyStore; account for priority at startup.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
- A file or environment value may be overridden by a higher-priority source even with correct syntax.
Frequently asked questions
What can you use for free in Keycloak?
Code and local use under Apache-2.0.
What additional costs might arise with Keycloak?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Keycloak?
Apache-2.0 for the code; third-party components retain their own terms.
How do you get started with Keycloak?
Create a realm and client for the application and login protocol. Connect the login flow to the application and verify role and claim transfer. Configure permissions, backups, and monitoring before production use.
Why didn't an environment variable change a Keycloak setting?
The documentation defines priority: CLI above environment, then configuration file and Java KeyStore. Environment names use KC_. Check startup arguments and parameter name conversion before investigating file reading errors.
License
Apache-2.0 for the code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- Keycloak
- service
- Development