Ory Kratos vs Keycloak: login, 2FA and recovery compared

Ory Kratos and Keycloak compared on licence, scope, two-factor login and recovery, with each claim sourced to the project's own pages.

By Shuki Vaknin 6 min read

Started as a Novell NetWare network administrator 35 years ago; system administrator and web developer for more than 25 years.


Ory Kratos and Keycloak both handle user login. Both can manage second factors and account recovery. They differ in scope. Kratos is an API for identity flows. Keycloak is a full identity and access server with its own admin console. Jabali Panel runs Kratos for panel login, two-factor checks and recovery, on Unix sockets. This post compares the two on licence, scope, two-factor and recovery. It does not rank them.

Read this as a comparison by an interested party. We run Kratos in Jabali Panel. Keycloak is not in Jabali’s component list [8]. We checked each product claim against that project’s own README, licence or documentation on 2026-11-23. We checked Jabali’s facts against its public docs on the same day. Where we make a judgement, we label it as ours.

The short answer

Choose Kratos if you build your own sign-in screens and want an API for the identity flows. This is our judgement.

Choose Keycloak if you want a ready identity server, with an admin console and login sources to connect. This is our judgement.

These two lines are ours. They are not a ranking.

Licence

Kratos is under the Apache License, Version 2.0. Its licence file reads “Version 2.0, January 2004” [1][2].

Keycloak lists its licence as “Apache License, Version 2.0” in its README [3]. Its licence file has the same text [4].

Our reading: both projects use the same permissive licence. The licence does not decide between them. Check the terms of any extension or theme you add.

What each one is

Kratos describes itself as “an API first identity and user management system” [1]. It says that it centralizes flows “so your services consume them instead of reimplementing them” [1]. Your application still builds its own screens, and it calls Kratos for the identity steps.

Keycloak describes itself as “Open Source Identity and Access Management” [3]. Its README says that it helps you “Add authentication to applications and secure services with minimum effort” [3]. Its guide has a section on “Dedicated realm admin consoles” [5].

Our reading: Kratos gives your application the flows. Keycloak gives you the server and its screens.

Two-factor and recovery

Kratos documents several second factors. Its multi-factor pages cover TOTP, WebAuthn and FIDO2 keys, recovery codes, and SMS or email codes [6].

Keycloak’s guide has sections titled “Two-factor authentication with OTP” and “Two-factor authentication with WebAuthn” [5].

Jabali Panel offers two second factors and a passwordless option. After the password, Kratos asks for “the 6-digit TOTP code, or a security key” [12]. Passkeys “sign in without a password, using Touch ID, Face ID, Windows Hello or a security key” [12]. Security keys and passkeys both use WebAuthn, and both are under Profile → Security [12]. When a user enrols TOTP, the panel shows 12 recovery codes, and “each works once” [12].

Our reading: a password reset does not restore a lost second factor. Jabali handles that case with recovery codes and an operator command [12]. That command “removes TOTP and the recovery codes only” [12], so the docs advise registering more than one key [12]. Kratos lists “Account verification and recovery” as a core flow [1].

How Jabali Panel runs Kratos

Jabali’s components page lists Kratos 26.2.0 with the role “Identity (login, 2FA, recovery); Unix sockets only” [8].

The admin login page says that “Sessions are managed by” Kratos, and the panel does not store passwords or session tokens [7]. The user login page says that “The panel does not integrate with third-party identity providers” by default [10]. Administrators can pair Kratos with a provider, but that path is “operator-configured, not panel-managed” [10].

Jabali’s removed-features page explains the Hydra history. Hydra was an OIDC provider that Jabali shipped for a short time. Jabali rolled it back. The page gives this reason: Hydra on SQLite “added a separate state store, which made backups + DR more complex” [9]. The page concludes that “the panel does not act as an OIDC provider” [9].

Login protection runs through CrowdSec. The user login page says that “Repeated failed logins from one IP cause CrowdSec to record a” decision and that it bans the IP for four hours [10].

Where the two differ for Jabali

Keycloak has an admin console and a wide list of login sources. Jabali has neither. It has one login, TOTP and WebAuthn second factors, passkeys and recovery for its users. Its components page lists one identity service, Kratos [8].

Jabali’s Hydra rollback shows the cost of a second identity store. Keycloak would add a store and an admin surface of its own. We did not test Keycloak with Jabali, and we have not scoped a switch. This is our judgement.

If you need one login for many third-party apps, check this first. Jabali does not offer OIDC sign-in today [9].

Which one fits which job

These judgements are ours.

  • Your own sign-in screens, with an API for the identity steps: Kratos.
  • One identity server for many apps, with an admin console: Keycloak.
  • A hosting panel with one login, second factors, passkeys and recovery: Kratos, as Jabali ships it.
  • Third-party apps that need OIDC sign-in from the panel: neither, as Jabali ships them today.

Common questions

Is Kratos a drop-in replacement for Keycloak?

No. Kratos runs identity flows through an API. Keycloak ships its own admin console [5]. Test both on your own apps before you choose. This is our judgement.

Can Jabali users sign in with Google?

Not by default. The user login page says that “The panel does not integrate with third-party identity providers” [10]. An administrator can add a provider at the Kratos level, but the docs call that path “operator-configured, not panel-managed” [10].

Which second factors does Jabali accept?

A six-digit TOTP code or a security key, after the password [11][12]. Passkeys sign in without a password [12]. Recovery codes cover a lost authenticator app [11].

Sources and check dates

All sources were fetched on 2026-11-23 (UTC).

  1. Ory Kratos README: https://raw.githubusercontent.com/ory/kratos/master/README.md
  2. Ory Kratos licence, Apache 2.0: https://raw.githubusercontent.com/ory/kratos/master/LICENSE
  3. Keycloak README: https://raw.githubusercontent.com/keycloak/keycloak/main/README.md
  4. Keycloak licence, Apache 2.0: https://raw.githubusercontent.com/keycloak/keycloak/main/LICENSE.txt
  5. Keycloak Server Administration Guide: https://www.keycloak.org/docs/latest/server_admin/index.html
  6. Ory Kratos, multi-factor authentication: https://www.ory.sh/docs/kratos/mfa/overview
  7. Jabali Panel docs, Login (admin): https://jabali-panel.com/docs/admin/login/
  8. Jabali Panel docs, Components: https://jabali-panel.com/docs/platform/components/
  9. Jabali Panel docs, Removed Features: https://jabali-panel.com/docs/removed-features/
  10. Jabali Panel docs, Login (user): https://jabali-panel.com/docs/user/login/
  11. Jabali Panel docs, Two-Factor Challenge (user): https://jabali-panel.com/docs/user/two-factor-challenge/
  12. Jabali Panel docs, Two-Factor Challenge (admin): https://jabali-panel.com/docs/admin/two-factor-challenge/