# 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, which services consume over HTTP APIs instead of implementing themselves. The project is written in Go.

Source: https://github.com/ory/kratos
Indexed: commit 3699ae3 on 2026-07-17 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: Go
- Stars: 13,960 at index time
- License: Apache-2.0
- Code health: 6.7/10, Fair
- Last commit: 2026-07-16

## Install

From the README: https://github.com/ory/kratos#quickstart

Clone the kratos repository.
    git clone https://github.com/ory/kratos.git

Move into the kratos folder.
    cd kratos

Move the ory binary onto your path.
    sudo mv ./ory /usr/local/bin/

Sign in or sign up to Ory.
    ory auth

Create a new project to try Ory Identities.
    ory create project --create-workspace "Ory Open Source" --name "GitHub Quickstart" --use-project

## How it 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.

- cmd/clidoc/main.go: entry point
- examples/go/identity/create/main.go: entry point
- examples/go/identity/delete/main.go: entry point
- examples/go/identity/get/main.go: entry point
- examples/go/identity/update/main.go: entry point
Modules: persistence, oryx, selfservice, identity, courier, x, cmd, driver. 7,112 files, 231,684 lines, 8,367 symbols.

## Code health

- Score: 6.7/10 (Fair)
- Rank: #170 of 4,000+ indexed repos
- Hotspots: persistence/sql/identity/persister_identity.go, identity/test/pool.go, identity/handler_test.go, selfservice/strategy/oidc/strategy_test.go, schema/validator_test.go
- Lowest file: oryx/popx/migrator.go
- Dead code: 273 findings

## Maintenance

- Last commit 2026-07-16
- bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/ory/kratos/security

## More

- Page: https://repowise.dev/repo/ory/kratos
- Ask this codebase: https://repowise.dev/repo/ory/kratos/chat
- Docs: https://repowise.dev/repo/ory/kratos/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/ory/kratos
