Security & Privacy · Identity & Access Management (IAM)
Hanko
Open-source authentication with passkeys and user management
Hanko is an open-source authentication and user-management system built around an API. It supports passwords, passkeys, passcodes, MFA, social login, SAML SSO, sessions, webhooks, and customizable web components. The backend is AGPL-3.0, while Hanko Elements and the frontend SDK are MIT licensed. Hanko is available for self-hosting or Hanko Cloud, whose free plan includes 10,000 monthly active users.
Key facts
- License
- AGPL-3.0 for backend; MIT for Hanko Elements and hanko-frontend-sdk
- Main language
- Go, TypeScript
- Maintainer
- Hanko GmbH
- First released
- 2022
- Latest release
- v3.1.0, October 1, 2026
- GitHub stars
- 9,044, October 2026
- Hosted option
- Hanko Cloud, free plan includes 10,000 monthly active users; pricing lists a $29/month plan plus $0.01 per monthly active user above 10,000
What Hanko is
Hanko is an open-source authentication and user-management platform developed by a Germany-based company. Its public product launch occurred in June 2022, followed by an open-source alpha in June and a beta in July. The repository was created on March 14, 2022, and its lists 9,044 stars and 1,020 forks. Hanko describes itself as API-first, framework-agnostic, privacy-first, and available for self-hosting or Hanko Cloud. Its documented scope includes passwords, passcodes, passkeys, MFA, social login, SAML SSO, sessions, JWT issuance, and webhooks. The project positions itself as an open-source alternative to Auth0, Clerk, Firebase Auth, AWS Cognito, WorkOS, Stytch, and Keycloak. Adoption decisions therefore center on integration style, deployment control, licensing, and the operational capacity to run identity infrastructure.
How it works
A typical Hanko implementation starts with an application selecting identifiers and authentication methods, then connecting the backend API to registration, login, verification, passkey, MFA, session, and JWT workflows. Hanko Elements provides customizable web components for onboarding, login, and profile management, while the frontend SDK supports teams building their own interface. The Flow API communicates the next action for multi-step experiences such as email verification and MFA enrollment, reducing frontend state handling. Applications can also use server-side sessions, remote revocation, and lifecycle webhooks to connect authentication events to business systems. OAuth SSO, SAML SSO, custom OIDC or OAuth connections, and tenant configuration extend the workflow for consumer and business applications. This structure lets product teams adopt Hanko incrementally, from components to a fully custom interface.
Architecture and recent releases
Hanko’s main building blocks are a Go backend, TypeScript-based frontend packages, Hanko Elements, and hanko-frontend-sdk. The repository includes a quickstart application and examples for web frameworks, while Docker and bare-metal routes support local or deployed operation. Hanko v3 introduced native multi-tenancy, allowing one API deployment to serve isolated tenants with separate user pools and authentication configuration. Version 3.1.0, released October 1, 2026, added organizations and roles, custom claims and mapping, session lifecycle webhooks, improved imports, additional translations, and security fixes. Organizations, memberships, and role bindings are scoped to tenants, while custom claims can normalize attributes from SAML and custom OIDC or OAuth providers. These capabilities support B2B products, migrations, and application authorization workflows without requiring separate backend instances for every project.
License and pricing
The Hanko backend is licensed under AGPL-3.0. Hanko Elements and hanko-frontend-sdk are licensed under MIT, while the Hanko Cloud infrastructure and console are closed source. The repository states that non-copyleft commercial licensing is available on request. Hanko Cloud offers a free plan with 10,000 monthly active users and two projects. The pricing page lists a $29 monthly plan with 10,000 included monthly active users, five projects, and a $0.01 charge for each additional monthly active user. That plan adds features including webhooks, an Admin API, custom SMTP, personal support, and paid SAML connections. Custom plans list volume discounts, a 99.99% uptime SLA, priority support, private cloud, extended audit logs, and a commercial-license option. Teams should evaluate component licenses separately before distributing modified backend services or integrating hosted features.
Limitations and how it compares
Hanko is suited to teams that want passkey-centered authentication, configurable web onboarding, and a choice between managed infrastructure and self-hosted control. Its web components can shorten initial implementation, while the Flow API and frontend SDK support applications requiring branded or custom interfaces. Self-hosting transfers responsibility for deployment, secrets, proxy configuration, upgrades, recovery, and data management to the operator. Hanko’s FAQ confirms that mobile clients can use the API directly, but native mobile SDKs are not currently available. The January 2022 product launch and later open-source releases show a progression from passwordless IAM toward a broader authentication and user-management platform. The principal adoption checks are AGPL obligations, mobile integration expectations, operational ownership, and whether tenant organizations, claims, sessions, and webhooks match the application’s access model.
Main features
- Passkey authentication. Support passkeys alongside passwords, passcodes, social login, and other documented authentication methods.
- Social and enterprise SSO. Support OAuth SSO, SAML SSO, and custom OIDC or OAuth connections for application sign-in.
- Multi-factor authentication. Offer MFA through TOTP authenticator applications and security keys during configured authentication flows.
- Hanko Elements. Embed customizable web components for onboarding, login, profiles, password resets, MFA, and passkey management.
- Flow API. Guide custom frontends through authentication states, including verification, passcode confirmation, and MFA enrollment.
- Sessions and webhooks. Provide server-side sessions, remote revocation, session lifecycle events, and integration webhooks.
- Tenant organizations and roles. Group users into tenant-scoped organizations, memberships, roles, and organization-specific access checks.
Self-hosting Hanko
Hanko supports self-hosting through documented Docker and bare-metal routes. Operators can integrate Hanko Elements, use the frontend SDK, or build a custom client against the backend and Flow API. The confirm self-hosting but do not specify a universal hardware profile or database requirement. Operators must manage deployment configuration, authentication settings, secrets, domains, upgrades, and recovery. Version 3.1 requires special attention to client IP resolution: direct extraction is the default, while reverse-proxy deployments must configure the appropriate header extractor and trusted proxy ranges. The FAQ also confirms that most Cloud data can be accessed through the Admin API, excluding password hashes and TOTP secrets from ordinary exports.
Strengths
- Hanko supports passkeys, passwords, passcodes, MFA, social login, and SAML SSO.
- Hanko Elements and the frontend SDK provide documented web integration options.
- The project supports both self-hosted deployment and Hanko Cloud.
- The API and Flow API support custom authentication interfaces.
Drawbacks
- The backend uses AGPL-3.0, requiring license review for some deployments.
- The FAQ says native mobile SDKs are not currently available.
- Self-hosting requires operators to maintain the deployment and its configuration.
What teams replace with it
Teams usually evaluate Hanko when they want to move off Auth0, Clerk, Firebase Auth, AWS Cognito.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Hanko
- Keycloak
- Ory Kratos
- SuperTokens
- Authentik
- Authelia
Frequently asked questions
Is Hanko free?
The Hanko backend is available for self-hosting under AGPL-3.0, while Hanko Elements and the frontend SDK are MIT licensed. Hanko Cloud has a free plan with 10,000 monthly active users and two projects. The pricing page lists a paid plan at $29 per month, with 10,000 included monthly active users and $0.01 for each additional user.
Can I use Hanko commercially?
The repository states that non-copyleft commercial licensing is available on request. The backend is AGPL-3.0, while Hanko Elements and the frontend SDK are MIT licensed. Hanko Cloud custom pricing lists a commercial-license option. Teams should review component licenses against their distribution model, modifications, deployment architecture, and obligations before adopting Hanko commercially.
What does self-hosted Hanko require?
The documentation confirms Docker and bare-metal setup options, together with frontend integration through Hanko Elements, the frontend SDK, or a custom client. Operators manage deployment configuration, secrets, authentication settings, domains, upgrades, and recovery. Reverse-proxy deployments must configure client IP extraction and trusted proxy ranges according to the v3.1 release notes.
How does Hanko compare with Keycloak?
Hanko’s emphasize passkeys, customizable web components, an application API, a Flow API, sessions, and user management. They name Keycloak as an alternative but do not document its functionality in detail. A source-supported comparison therefore focuses on Hanko’s integration model, while a broader product decision requires reviewing Keycloak’s current documentation separately.
Can Hanko be used with a mobile app?
Yes. The FAQ says a mobile client can work directly with the Hanko API, but Hanko does not currently provide mobile SDKs. The also document native Android and iOS app support in the December 2022 v0.3.2 release through multiple WebAuthn origins. Teams should therefore plan API integration and platform-specific implementation rather than expect an official native SDK.
Similar projects to compare
- KeycloakApache-2.0Keycloak is an Apache-2.0 identity and access management server for applications and services. It provides user federation, strong authentication, user management, fine-grained authorization, and OIDC and SAML integrations. Teams can run it from downloadable archives, a container image, or an operator. Red Hat also publishes a supported commercial build, while community deployments require operators to provide infrastructure, security configuration, databases, upgrades, and ongoing administration.
- SuperTokensApache-2.0 outside ee; ee directory under separate licenseSuperTokens is an open-core authentication provider for developers adding login, sessions, user administration, and identity features to applications. The core outside the ee directory uses Apache-2.0, while the ee directory has a separate license. Teams can self-host the free open-source features or use SuperTokens Cloud, priced at $0.02 per monthly active user and free below 5,000 users.
- AuthentikMIT (core), mixed repository; enterprise code under separate enterprise licenseAuthentik is an open-source identity provider for teams needing OIDC, OAuth2, SAML, LDAP, RADIUS, SCIM, and proxy access in one self-hosted service. Its core is MIT licensed, while enterprise code is separately licensed. There is no general hosted cloud product advertised, and enterprise pricing starts at $0.02 per external user monthly when billed annually.
- AuthgearApache-2.0Authgear is an Apache-2.0 open-source authentication and user-management platform maintained by Skymakers Digital Ltd. It supports self-hosting and Authgear Cloud, with a Free plan priced at $0 monthly. Documented capabilities include passwordless login, passkeys, MFA, social and enterprise login, SSO, user management, APIs, customizable interfaces, user import, and export.
- Better AuthMITBetter Auth is an MIT licensed, framework agnostic authentication and authorization framework for TypeScript. It embeds authentication in an application backend, supports application managed databases and stateless sessions, and offers email, password, social sign on, passkeys, magic links, usernames, and extensible plugins. Better Auth joined Vercel on July 7, 2026, while its open source framework remains framework and platform agnostic.
- CerbosApache-2.0Cerbos is an open-source authorization layer with a stateless Policy Decision Point that evaluates context-aware YAML policies for applications, gateways, workloads, services, and AI agents. It exposes HTTP and gRPC APIs, runs in customer infrastructure, and supports Git, disk, cloud, and database policy storage. Cerbos Hub adds hosted authoring, testing, distribution, and audit management from $25 per month.