Better AuthComposable TypeScript authentication and authorization framework
CasdoorSelf-hosted identity provider with SSO and agent MCP gateway
Better Auth vs Casdoor
How Better Auth and Casdoor compare on popularity, activity, license and platforms: two open-source Identity & Access Management (IAM) projects, both alternatives to Stytch.
At a glance
- Better Auth has more GitHub stars (30.9k vs 15k, about 2× as many).
- Both are actively maintained (last commits today and 2 days ago).
- Better Auth uses MIT; Casdoor uses Apache-2.0 (both permissive).
- Casdoor can be self-hosted; Better Auth is not listed as self-hostable.
- Casdoor is the older project (repository started 2020; Better Auth in 2024).
Side by side
| Better Auth | Casdoor | |
|---|---|---|
| GitHub stars | ★ 30,910 | ★ 14,972 |
| Forks | 3,119 | 1,937 |
| Last commit | today | 2 days ago |
| Latest version | v1.7.28 | v4.32.0 |
| Repository started | May 2024 | October 2020 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | Web, CLI | Docker, Web |
| Main language | TypeScript | Go |
| Alternative to | Stytch | Amazon Cognito, Auth0, Okta, Ping Identity, Stytch |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.
Better Auth
Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.
Key features
- TypeScript auth configuration in code
- Email and password sessions
- Social OAuth providers
- Plugin-based feature extensions
- Organizations, roles, invitations
- Enterprise SSO and SCIM plugins
Casdoor
Casdoor is an IAM server with a web console for users, apps, and providers. It issues tokens via OAuth, OIDC, SAML, CAS, LDAP, SCIM, and WebAuthn, and exposes an MCP gateway for AI tooling
Key features
- OAuth 2.0 and OIDC authorization server
- SAML 2.0 and CAS enterprise SSO
- LDAP directory sync or LDAP service
- SCIM 2.0 provisioning
- WebAuthn and MFA methods
- MCP gateway for agents