# Hanko

Hanko is a self-hosted security app. Open source authentication platform supporting passkeys, 2FA, SSO, and social login.

Canonical page: https://ourlocalhost.com/app/8956/hanko

## Description

Open source authentication platform supporting passkeys, 2FA, SSO, and social login. Self-host or use Hanko Cloud, with full control over your data and no lock-in.

## Platform availability

Available on 4 of 10 platforms: Mac, Windows, Linux, Any server.

## Desktop and other devices

Mac, Windows, Linux.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 79 (9,086 GitHub stars)
- Easy to install: 55 (4 install platforms, install notes)
- Security check: 20 (1 serious finding, 20 minor, CI, tests)

## Security check

1 serious finding: Uses cross-spawn 7.0.3, which has a known critical vulnerability.
Automated checks on commit c710198, 4 Dec 2026. Not an audit.

## Links

- desktop: https://github.com/teamhanko/hanko/releases/latest
- GitHub: https://github.com/teamhanko/hanko-elysia-react-starter
- Documentation: https://docs.hanko.io
- Official website: https://hanko.io/

## Common questions

### How do I quickly try Hanko self-hosted with Docker?

Run the quickstart compose file: 'docker compose -f deploy/docker-compose/quickstart.yaml -p "hanko-quickstart" up --build'. It spins up the login service and its database in one go so you can see it working before wiring it into your own app.

### How do I add Hanko login to my own frontend after the backend is running?

Install the frontend SDK (e.g. 'npm install @teamhanko/hanko-frontend-sdk') and point it at your Hanko service. Alternatively you can use Hanko Elements web components for a prebuilt, CSS-customizable login UI.

### Can I run only the backend without the UI components?

Yes. The Hanko backend is a standalone HTTP API for passkeys (WebAuthn), passwords, passcodes, and JWT management, and can be used on its own or in combination with hanko-elements.

### Can I migrate between self-hosting and Hanko Cloud?

Yes. You retain full control over your data and can move seamlessly between self-hosted deployments and Hanko Cloud at any time.

### What should I back up when self-hosting Hanko?

Schedule backups of its data volume and database, since self-hosting means you are responsible for recovery too.

## Alternatives

- Auth0: You can connect any application (written in any language or on any stack) to Auth0 and define its Connection, the method used to authentica…
- FusionAuth: FusionAuth is a secure tool that manages user logins and registrations for your website or mobile application.
- Keycloak: Keycloak is an open-source Identity and Access Management platform for adding authentication to self-hosted applications.

---
Source: Our Local Host (https://ourlocalhost.com/app/8956/hanko), the self-hosted and open-source app directory.
