Command-line tool
ory / kratos
Headless cloud-native authentication and identity management written in Go. Scales to a billion+ users. Replace Homegrown, Auth0, Okta, Firebase with better UX and DX. Passkeys, Social Sign In, OIDC, Magic Link, Multi-Factor Auth, SMS, SAML, TOTP, and more. Runs everywhere, runs best on Ory Network.
This connects Repowise to ory/kratos's code. It does not install kratos.
Repowise maps public repos from their source. Not affiliated with ory. What is Repowise?
github.com/ory/kratosIndexed at 3699ae3
What is kratos?
Ory Kratos is an API first identity and user management system for cloud native applications. It handles login, registration, recovery, verification and profile management flows, which services consume over HTTP APIs instead of implementing themselves. The project is written in Go. To install it, run git clone https://github.com/ory/kratos.git and follow the steps below. Its code health is 6.7 out of 10 (Fair), ranked #159 of 4,000+ indexed repos. The last commit to kratos was on Jul 16, 2026.
As of commit 3699ae3, indexed Jul 17, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.
For agentskratos.md
Repo facts: type, license, health, rank, contributors
| Type | Command-line tool |
|---|---|
| License | Apache-2.0 |
| Code health | 6.7 / 10 (Fair) |
| Health rank | #159 of 4,000+ indexed repos |
| Last commit | Jul 16, 2026 |
| Bus factor | 2 |
| Size | 7,112 files, 231,684 lines |
Install kratos
Commands copied from the README
- 1Clone the kratos repository.
git clone https://github.com/ory/kratos.git - 2Move into the kratos folder.
cd kratos - 3Move the ory binary onto your path
sudo mv ./ory /usr/local/bin/ - 4Sign in or sign up to Ory
ory auth - 5Create a new project to try Ory Identities
ory create project --create-workspace "Ory Open Source" --name "GitHub Quickstart" --use-project
Releases on GitHub (latest v26.2.0, Mar 20, 2026)
Explore kratos
- DocumentationModule-by-module documentation, 1,258 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Ask about this code in your agent
This connects Repowise to kratos's code. It does not install kratos. To install kratos, use the install steps.
Useful if you want to change or fork kratos: your agent can ask how it is put together and get answers that cite its files.
Ask about kratos
Answers come from kratos's README and source, with the files they cite. Two free answers a day without an account.
Want this for your own codebase? Map your repo free
About this page
Get a page like this for your own codebase
Repowise built this map of ory/kratos from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Free for 2 public repos, with a page like this one. No card. See how Repowise works
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub
ory/kratos FAQ
What is Ory Kratos?
Ory Kratos is an API first identity and user management system for cloud native applications. It handles login, registration, recovery, verification and profile management flows over HTTP APIs.
How does Ory Kratos work?
Ory Kratos exposes identity flows as HTTP APIs so applications can consume them instead of reimplementing them. Requests are handled by the selfservice and identity modules, and data is stored through the persistence module.
How do I install Ory Kratos?
Ory Kratos is tried by installing the Ory CLI and creating a project on the Ory Network. The quickstart runs ory auth and then ory create project with a workspace name and project name. See the install steps
What language is Ory Kratos written in?
Ory Kratos is written in Go. Go accounts for 1013 of the repository's files, with smaller numbers of shell, makefile, dockerfile and javascript files.
How is the Ory Kratos code organized?
Ory Kratos code is split into 26 modules, with persistence, oryx, selfservice, identity and courier holding the most files. Entry points include cmd/clidoc/main.go and examples under examples/go/identity.
Who is Ory Kratos for?
Ory Kratos is for applications that need login, registration, recovery and MFA handled outside application code. The README suggests the open source version for experiments and prototypes, and a commercial agreement for business-critical systems.
What license does Ory Kratos use?
Ory Kratos uses the Apache-2.0 license. The open source distribution can be inspected, extended and built from source.
Code health
Hotspots average 3.2, the place fixes pay off most.
On the leaderboards:#19 of 28 Go repos
Key features of kratos
- Handles self service login and registration, account verification and recovery, and profile management.
- Provides multi factor authentication and identity schemas and traits.
- Exposes admin APIs for managing the lifecycle of identities.
- Can be self-hosted, and is also offered as a managed service on the Ory Network.
- Works with Ory Hydra to provide OAuth2 and OpenID Connect for existing applications.
How ory/kratos works
Requests for identity flows enter through HTTP handlers in the selfservice module, which has 781 files covering self-service login, registration and recovery. The identity module, with 196 files, defines identity data and its schemas. The persistence module, the largest with 3860 files, stores and retrieves identities through SQL-backed code such as persistence/sql/identity/persister_identity.go. The driver module wires these parts together, and the x directory holds shared helpers such as x/http.go and x/uuid.go. Responses leave the service as structured JSON.
The codebase has 7,112 files and 8,367 symbols in 26 modules, led by Go, Shell and Makefile. Code health is 6.7 out of 10, rated fair.
Maintain ory/kratos?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of ory/kratos. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask kratos's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/ory/kratos?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/ory/kratos?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/ory/kratos.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/ory/kratos?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/ory/kratos.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/ory/kratos.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>