Self-host Casdoor
v4.29.0AI-agent-ready IAM & SSO server for OAuth, SAML, LDAP, MCP
docker run -p 8000:8000 casbin/casdoor-all-in-one- Stars
- 14 869
- Ports
- 8000 (Web UI, sign-in pages and REST API (backend application port)), 389 (Built-in LDAP server), 636 (Built-in LDAPS (LDAP over SSL) server), 1812 (Built-in RADIUS server)
casbin/casdoorWhat is Casdoor?
Casdoor is an open-source identity and access management platform: it runs the single sign-on service, keeps the user directory and issues the tokens itself, so connected applications never handle a password. Accounts stay reachable through many identity standards at once, covering the major authorization, federation, directory and provisioning protocols, plus passkeys, TOTP or emailed codes for MFA, biometric sign-in, and more than 100 social and enterprise identity providers out of the box. Organizations are isolated tenants with their own branding, and access rules are written as Casbin models supporting ACL, RBAC and ABAC. Casdoor leans toward the agent era: it embeds an MCP server so AI agents can manage users, applications and permissions in natural language under scope-based permissions, and it can expose Model Context Protocol servers through a gateway. Day-to-day changes (users, applications, providers, mail and SMS templates, login themes) happen in the admin console instead of files that need a redeploy; there is also a complete REST API with Swagger, webhooks and audit records, and configuration can live in Git through a startup init-data file or the official Terraform provider. To run it yourself, deploy a single Go binary against your own database (MySQL, PostgreSQL or SQLite are all supported) and reach it on port 8000, or use the published Docker images, the repository's Compose file, or the Helm chart; the all-in-one image bundles demo data and is meant for evaluation, not production. It is Apache-2.0 licensed; funding comes from donations and the managed Casdoor Cloud hosting, and a writable public demo is available.
Casdoor alternatives
hankoOpen-source self-hosted authentication and user management platform with passkeys, MFA, OAuth SSO and SAML, an API-first alternative to Auth0 or Clerk.Comparehanko with Casdoor
CortenDeskSelf-hosted RustDesk console bundling ID server, relay, and browser client in one Docker image. Fixes signed-in client issues, adds fleet management, access control.CompareCortenDesk with Casdoor
FirezoneZero-trust remote access built on WireGuard for teams: gateways run in your network, while policies, device trust and audit logs are managed from a hosted portal.CompareFirezone with Casdoor
TeampassSelf-hosted, open-source team password vault on PHP/MySQL: folder and role access control, AES-256-GCM encryption, LDAP/OAuth2 SSO, TOTP and compliance reports.CompareTeampass with Casdoor
TeleportSelf-hosted open-source platform replacing VPNs with short-lived certificates, SSO, MFA, RBAC, and session audit across SSH, Kubernetes, databases, and web apps.CompareTeleport with Casdoor
KanidmSelf-hosted, open-source identity management server in Rust: passkey/WebAuthn login, OAuth2/OIDC SSO, an app portal, read-only LDAPS, RADIUS, SSH keys and Unix auth.CompareKanidm with Casdoor
voidauthOpen-source SSO for homelabs: an OIDC provider, reverse-proxy forward-auth, optional read-only LDAP, and user management with invitations, passkeys and MFA.Comparevoidauth with Casdoor
supertokensSelf-hosted, open-source authentication service replacing Auth0, Firebase Auth or AWS Cognito, with passwordless, social, email-password login and session management.Comparesupertokens with Casdoor
All self-hosted alternatives to Auth0 → All self-hosted alternatives to Okta → All self-hosted alternatives to Authentik →
Should you self-host Casdoor?
Casdoor scores 78/100 on selfhost.directory (how scoring works) and ranks #3 of 40 in Authentication. It has 14 869 GitHub stars, +318 in the last 30 days.
It shipped 129 stable releases in the past year. The latest, v4.29.0, came out on 15 November 2026. New versions land roughly every 1 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is authentik (80/100, 26 360 stars). It scores higher overall, so compare the two before you pick. See Casdoor vs authentik side by side.
Features
- Audit Logs
- Built-in MCP server for AI agents
- CAS protocol
- LDAP Support
- Multi-Factor Authentication
- Multi-tenancy
- OAuth 2.0 / OpenID Connect
- Policy-based authorization (RBAC/ABAC)
- REST API
- SAML 2.0
- SCIM 2.0 provisioning
- Single Sign-On (SSO)
- Social Login
- WebAuthn / Passkeys
- Webhooks
Casdoor README
Casdoor is a single sign-on (SSO) and authentication server with a web console.
It speaks OAuth 2.0, OIDC, SAML 2.0, CAS, LDAP, SCIM 2.0, WebAuthn, TOTP/MFA and MCP,
and connects to Google Workspace, Microsoft Entra ID (Azure AD), GitHub and many other identity providers.
Website · Documentation · Live demo · Casdoor Cloud · Discord
The sign-in page your users see: password, email/SMS code, WebAuthn and Face ID, plus every social provider you enable.
More in Authentication
clinSelf CLI provisions a production-ready backend — PostgreSQL, Hasura GraphQL, Auth, Nginx — on your own server in minutes via Docker. MIT licensed with 171 plugins.
cosmos-server☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
DaptinAn open-source, self-hosted application server: model your data once and Daptin serves JSON:API and GraphQL endpoints, users, permissions, files, jobs and realtime.
dashgateSelf-hosted, open-source app gateway for web services with multi-method auth, group access control, and auto-discovery from Docker, Traefik, Nginx, and more.
defguardSelf-hosted WireGuard VPN platform bundling an identity provider, per-connection MFA, LDAP/AD sync and firewall ACLs; open-source AGPL core written in Rust.
DexOpen-source, self-hosted OIDC and OAuth 2.0 identity service that fronts LDAP, SAML, GitHub, Google and other IdPs, so every app just speaks OpenID Connect.
directory-serverApache Directory Server is a self-hosted, open-source LDAPv3 directory server in Java with Kerberos, multi-master replication, and password policies.
docker-sso-serverLightweight self-hosted SSO server with OAuth2 and OTP, runs in a tiny container (<1% CPU, ~15 MiB RAM) and works as Traefik Forward Auth backend.
dockserverDockServer is a self-hosted, open-source Docker management system that automates Traefik, Authelia, and 100+ apps via a menu-driven CLI on Ubuntu with Cloudflare.
email-oauth2-proxySelf-hosted open-source proxy adding OAuth 2.0 to legacy email clients for Exchange, Gmail, and more.
FCaptchaSelf-hosted, open-source CAPTCHA detecting AI agents and bots with behavioral analysis and proof-of-work. Drop-in replacement for Turnstile, reCAPTCHA, hCaptcha.
fn-knockSelf-hosted gateway that combines reverse proxy, authentication, WAF, SSL certificates, DDNS, and tunneling for home servers and NAS devices.




0 comments