Skip to content

Hanko

Self-hosted authentication API with passkeys, SSO and web components for app developers

Copyleft (OSI) · AGPL-3.0 EU-based

Listed by , founder & editor

77

Health

Thriving

Overview

Stars

9,075

Last commit

4 days ago

Nov 2026

Repository age

4 years

since Mar 2022

Latest version

backend/v3.2.0

Nov 2026

Contributors

–

10 active in 90 days

Releases

8

last 12 months

Language

Go

Hanko is an authentication and user management service written in Go. It issues JWTs and covers passwords, email passcodes, passkeys, MFA, social logins through OAuth, and SAML SSO. Sessions are kept on the server, so you can revoke them remotely.

The project has three main parts. The backend is an API that handles login, onboarding and user and session management. Hanko Elements are web components for login, onboarding and user profiles, and you can style them with CSS. The frontend SDK is a client package for the API, which suits you if you want to build your own interface.

You can run it yourself with Docker or on bare metal, using the quickstart app as a reference. A managed option, Hanko Cloud, is also available, and you can move between the two. Configuration allows passkey-only, OAuth-only or passwords that users can delete. Organizations, roles and permissions are still in progress, and mobile SDKs are not yet available. It is licensed under AGPL-3.0 and fits teams that want to own their user data instead of relying on a hosted identity vendor.

Who it's for

Web developers adding passkey login to a new app

Prebuilt web components and a frontend SDK cut the work of building login and profile screens.

Skip if: You need native iOS, Android, React Native or Flutter SDKs today, since those are not yet released.

Startups that want to keep user data on their own servers

You can self-host the Go backend and later switch to the managed cloud, or the reverse.

Skip if: You cannot accept AGPL-3.0 obligations in a product you distribute or offer as a service.

Teams building B2B apps that need SAML SSO

SAML SSO and OAuth social logins are supported alongside passkeys and MFA.

Skip if: You need finished organizations, roles and permissions features right now, which are still in development.

The problem it solves

Building login, passkeys, MFA and session handling yourself is slow and easy to get wrong. Hosted identity vendors solve that but put your user records on someone else's servers. Hanko gives you a ready authentication backend and UI components you can run on your own infrastructure.

Strengths

  • Covers passwords, passkeys, MFA, OAuth social login and SAML SSO in one service
  • Hanko Elements web components handle login, onboarding and profile screens, styled with CSS
  • Frontend SDK and a full flow API let you build a custom interface
  • Server-side sessions with remote revocation
  • Self-host or use Hanko Cloud, and move between them

Trade-offs

  • Organizations, roles and permissions are still in progress
  • No iOS, Android, React Native or Flutter SDKs yet
  • AGPL-3.0 license carries network copyleft obligations
  • You operate and update the backend yourself when self-hosting

Self-host Hanko

Self-hostable
Yes
Hosted plan
From $0.01/month · pricing

In the community

Frequently asked questions

Can I self-host Hanko?

Yes. You can run the Go backend with Docker or on bare metal. The repository includes a quickstart app that starts both frontend and backend.

Is there a hosted version?

Yes. Hanko Cloud is a managed service, and you can move between it and a self-hosted setup.

Which authentication methods does it support?

Passwords, MFA, passkeys, email passcodes, social logins through OAuth, and SAML SSO. You can configure passkey-only or OAuth-only setups.

How is Hanko licensed?

It uses the AGPL-3.0 license, which is a copyleft license with network-use obligations.

Do I have to use the provided UI?

No. You can use the frontend SDK or call the API directly to build your own interface.

Similar tools in Identity and access management

Pocket ID

Identity and access management

Self-hosted OpenID Connect provider that signs users in with passkeys only

10k 364 today Thriving BSD-2-Clause

Authentik

Identity and access management

Self-hosted identity provider with SSO over SAML, OIDC, LDAP and RADIUS

26k 2.1k today Thriving MIT

Replaces KeycloakOkta

keto

Identity and access management

5.4k 396 4 months ago Dormant Apache-2.0

OPAL (Permit.io)

Identity and access management

5.5k 308 14 days ago Slowing Apache-2.0

BoxyHQ

Identity and access management

2.3k 239 4 months ago Slowing Apache-2.0