<strong>An open-source, AI-first IAM / MCP gateway and authentication server with a web UI.</strong>
Supporting MCP, A2A, OAuth 2.0, OIDC (OAuth 2.x), SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID,
Google Workspace, Azure AD, and more.
<a href="https://casdoor.ai/"><strong>Documentation and guides: casdoor.ai</strong></a>
<a href="https://casdoor.ai/docs/overview">
<img src="https://img.shields.io/badge/documentation-casdoor.ai%2Fdocs-1890ff?style=flat-square&logo=readthedocs&logoColor=white" alt="Documentation">
</a>
<a href="https://github.com/casdoor/casdoor/releases/latest">
<img src="https://img.shields.io/github/v/release/casdoor/casdoor?style=flat-square&color=blue" alt="GitHub Release">
</a>
<a href="https://hub.docker.com/r/casbin/casdoor">
<img src="https://img.shields.io/docker/pulls/casbin/casdoor?style=flat-square&color=brightgreen" alt="Docker Pulls">
</a>
<a href="https://github.com/casdoor/casdoor/actions/workflows/build.yml">
<img src="https://img.shields.io/github/actions/workflow/status/casdoor/casdoor/build.yml?style=flat-square&label=build" alt="Build Status">
</a>
<a href="https://goreportcard.com/report/github.com/casdoor/casdoor">
<img src="https://goreportcard.com/badge/github.com/casdoor/casdoor?style=flat-square" alt="Go Report Card">
</a>
<a href="https://github.com/casdoor/casdoor/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/casdoor/casdoor?style=flat-square&color=orange" alt="License">
</a>
<a href="https://github.com/casdoor/casdoor/stargazers">
<img src="https://img.shields.io/github/stars/casdoor/casdoor?style=flat-square&color=yellow" alt="GitHub Stars">
</a>
<a href="https://github.com/casdoor/casdoor/network/members">
<img src="https://img.shields.io/github/forks/casdoor/casdoor?style=flat-square" alt="GitHub Forks">
</a>
<a href="https://github.com/casdoor/casdoor/issues">
<img src="https://img.shields.io/github/issues/casdoor/casdoor?style=flat-square&color=red" alt="GitHub Issues">
</a>
<a href="https://discord.gg/5rPsrAzK7S">
<img src="https://img.shields.io/discord/1022748306096537660?style=flat-square&logo=discord&label=Discord&color=5865F2" alt="Discord">
</a>
<a href="https://crowdin.com/project/casdoor-site">
<img src="https://badges.crowdin.net/casdoor-site/localized.svg" alt="Crowdin">
</a>
<a href="https://casdoor.ai"><strong>Website</strong></a> ·
<a href="https://casdoor.ai/docs/overview"><strong>Documentation</strong></a> ·
<a href="https://door.casdoor.com"><strong>Live demo</strong></a> ·
<a href="https://discord.gg/5rPsrAzK7S"><strong>Discord</strong></a>
Casdoor is a UI-first identity provider and access management platform: one place to manage users, organizations, applications, and providers, with a modern web console. Authorization policies can be expressed with Casbin (ACL, RBAC, ABAC, and more). Unlike reverse-proxy-centric auth companions, Casdoor is a dedicated auth server with broad protocol support, designed to be straightforward to self-host and integrate—see casdoor.ai for documentation.
| Environment | URL | Description |
|---|---|---|
| Read-only | door.casdoor.com | Global demo; any modification or write operation will fail (read-only). |
| Writable | demo.casdoor.com | Full access for testing; data is reset about every 5 minutes. |
Default demo admin login (where applicable): admin / 123 — use only for demos; change credentials on your own deployment.
Pick one deployment method below. To keep behavior consistent with upstream, the steps are aligned with official docs.
go.mod), Node.js LTS (20), Yarn 1.x, and a supported database.git clone https://github.com/casdoor/casdoor.git
cd casdoor
conf/app.conf (at minimum set driverName, dataSourceName, and dbName; for MySQL create database casdoor first).cd web
yarn install
yarn build
cd ..
go run main.go
built-in/admin / 123 on a fresh install (change password immediately in production).Official guide: Server installation
Use one of the official Docker paths:
docker run -p 8000:8000 casbin/casdoor-all-in-one
conf/app.conf next to docker-compose.yml):docker compose up
Then open http://localhost:8000 and sign in with built-in/admin / 123 on a fresh install.
Official guide: Try with Docker
With Helm v3 and a running Kubernetes cluster:
helm install casdoor oci://registry-1.docker.io/casbin/casdoor-helm-charts
After installation, access Casdoor through your cluster service/ingress. The official guide covers chart versions (including optional --version) and cluster-specific settings.
Official guide: Try with Helm
| ### 🔐 Authentication - **OAuth 2.0 / OIDC** — OpenID Connect and OAuth 2.x authorization - **SAML 2.0** — Enterprise SSO integration - **CAS** — Central Authentication Service - **LDAP** — Directory service integration - **WebAuthn / Passkeys** — Passwordless authentication - **TOTP / MFA** — Multi-factor authentication - **Face ID** — Biometric authentication | ### 🏢 Enterprise - **SCIM 2.0** — User provisioning - **RBAC** — Role-based access control - **Social Login** — Google, GitHub, Azure AD, and more - **Custom providers** — Extensible identity providers - **User management** — Web UI for administration - **Audit logs** — Comprehensive logging - **Multi-tenancy** — Organization support |
| ### 🤖 AI & MCP - **MCP Gateway** — Model Context Protocol support - **A2A Protocol** — Agent-to-Agent communication - **AI-First Design** — Built for AI applications | ### 🛠️ Developer Experience - **RESTful API** — Complete API coverage - **SDKs** — Go, Java, Python, Node.js, and more - **Swagger UI** — Interactive API documentation - **Webhooks** — Event-driven integrations - **Customizable UI** — Brand theming support |
Casdoor is built as a frontend–backend separated project:
web/)All product documentation, installation, and tutorials live at casdoor.ai/docs/overview. Start here, then use the sections below.
Install
Connect applications
APIs
Casdoor integrates with common languages and frameworks:
Browse the full list: Integrations.
If you have questions about Casdoor, you can open an issue. Pull requests are welcome; we recommend opening an issue first so you can align with maintainers and the community before larger changes.
Please also read our contribution guidelines before contributing.
web/, update the English catalog at web/src/locales/en/data.json accordingly.If you find Casdoor useful, please consider supporting its development:
Casdoor is licensed under the Apache License 2.0.
© 2026 Casdoor. Licensed under Apache License 2.0.
$ claude mcp add casdoor \
-- python -m otcore.mcp_server <graph>