Feature matrix
| Capability | KavachOS | Hanko |
|---|---|---|
| License | MIT | AGPL (backend), MIT (JS SDK) |
| Primary focus | Agent-first auth SDK | Passkey-first auth |
| TypeScript SDK | Yes, first-party | Yes, first-party |
| Named OAuth providers | 24 | ~3 (Google, Apple, GitHub) |
| Passkey support | Yes | Yes, core focus |
| MCP OAuth 2.1 server | Built in | Not shipped |
| Agent identity | First-class AgentIdentity entity | Not shipped |
| RBAC / permissions | Unified RBAC + ABAC + ReBAC | Not shipped |
| Ephemeral sessions | Built in with auto-expiry and audit grouping | Not shipped |
| Edge runtime | Web Crypto throughout | Go backend required |
| Self-hostable | Yes | Yes |
Pick KavachOS if
- You need more than passkeys: OAuth providers, agent identity, or a policy engine.
- You’re building AI-powered products where agents need their own auth layer.
- You want a permissive MIT license for the full stack, not just the client SDK.
Pick Hanko if
- You want the smallest possible passkey-only library with a tight scope.
- You have no agent story and passkey-first is exactly the feature you need.
- You’re comfortable with AGPL for your backend auth service.