Self-hostable authentication server covering passwordless login, passkeys, MFA, SSO and social login, with a pre-built login UI and admin portal.
ory/kratos
Headless, API-first identity and user management service in Go covering login, registration, recovery, verification and profile flows.
Open-source alternative to:Auth0
Okta
Firebase Authentication
- Stars
- 13,931
- Forks
- 1,201
- Open issues
- 234
- Last commit
- 3 months ago
What is it?
Ory Kratos is an API-first identity and user management system for cloud native applications. It centralizes self-service login, registration, account recovery, verification and profile management, so application services consume these flows over HTTP instead of implementing them individually.
It is headless, meaning it provides no fixed UI and works with any frontend framework through browser-based and native app flows. Identity data is modeled with configurable schemas and traits, and admin APIs handle identity lifecycle operations. Multi-factor authentication and passwordless methods such as passkeys, social sign-in, OIDC, magic links and TOTP are part of the supported feature set.
Kratos can be self-hosted on Linux, macOS, Windows or Docker with PostgreSQL, MySQL or CockroachDB, or run as a managed service on the Ory Network. For OAuth2 and OpenID Connect provider capabilities, it is designed to be paired with Ory Hydra.
Key features
- 01Self-service login, registration, recovery and verification flows exposed as APIs
- 02Multi-factor authentication and passwordless options such as passkeys and TOTP
- 03Social sign-in, OIDC and SAML support, with SCIM and SSO in the enterprise edition
- 04Configurable identity schemas and traits for user profile data
- 05Admin APIs for managing identity lifecycle
- 06Runs self-hosted with PostgreSQL, MySQL or CockroachDB, or on the Ory Network
Use cases
- Adding login and registration to a web or mobile app without building auth from scratch
- Replacing a hosted identity provider such as Auth0 or Okta with a self-managed service
- Centralizing account recovery and profile management across several microservices
- Pairing with Ory Hydra to provide OAuth2 and OpenID Connect for existing clients
Quick start
- 1
Run the official Ory CLI install script from the README
- 2
Move the ory binary into your PATH
sudo mv ./ory /usr/local/bin/ - 3
Sign in or sign up to Ory
ory auth - 4
Create a new Ory project
ory create project --create-workspace "Ory Open Source" --name "GitHub Quickstart" --use-project
Things to know
- The quickstart uses the managed Ory Network, not a self-hosted install.
- Some enterprise features such as SCIM, SAML and CAPTCHAs require a commercial Ory Enterprise License.
Topics
FAQ
- What is kratos?
- Headless, API-first identity and user management service in Go covering login, registration, recovery, verification and profile flows. Ory Kratos is an API-first identity and user management system for cloud native applications. It centralizes self-service login, registration, account recovery, verification and profile management, so application services consume these flows over HTTP instead of implementing them individually.
- Is kratos free to use? What license does it have?
- kratos is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is kratos still maintained?
- Updated within 6 months. The last commit to kratos was on Jul 29, 2026.
- What can I use kratos for?
- Adding login and registration to a web or mobile app without building auth from scratch Replacing a hosted identity provider such as Auth0 or Okta with a self-managed service Centralizing account recovery and profile management across several microservices Pairing with Ory Hydra to provide OAuth2 and OpenID Connect for existing clients
- How do I install kratos?
- Run the official Ory CLI install script from the README Move the ory binary into your PATH: sudo mv ./ory /usr/local/bin/ Sign in or sign up to Ory: ory auth Create a new Ory project: ory create project --create-workspace "Ory Open Source" --name "GitHub Quickstart" --use-project
- Where can I get kratos?
- The source code and installation instructions are on GitHub: https://github.com/ory/kratos
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Open-source identity and access management platform with SSO, MFA, passkeys, OIDC, SAML and SCIM support for SaaS and B2B apps.
Self-hosted secure remote access platform combining WireGuard VPN, identity management, MFA and network access control.
Self-hosted identity and access management server providing SSO, OAuth/OIDC, SAML, CAS, LDAP, SCIM, MFA and an MCP gateway, with a web console.
A lightweight, self-hosted OpenID Connect identity provider for small teams, with password login, mandatory TOTP and RBAC.
Self-hosted multi-factor authentication server supporting OTP, passkeys/FIDO2, push, SMS and smartcards, integrating with AD, LDAP and SQL user stores.