Casdoor: AI-First Identity and Access Management (IAM) / AI MCP Gateway An open-source, AI-first IAM / MCP gateway and authentication server with a web UI. Supporting MCP, A2A, OAuth 2.0,…
Casdoor: AI-First Identity and Access Management (IAM) / AI MCP Gateway
An open-source, AI-first IAM / MCP gateway and authentication server with a web UI.
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.
Documentation and guides: casdoor.ai
Website ·
Documentation ·
Live demo ·
Discord
---
Table of contents
- [Why Casdoor](#why-casdoor)
- [Live demos](#live-demos)
- [Quick start](#quick-start)
- [Features](#features)
- [Technology stack](#technology-stack)
- [Documentation](#documentation)
- [Integrations](#integrations)
- [Security](#security)
- [Community and support](#community-and-support)
- [Contributing](#contributing)
- [Donate](#donate)
- [License](#license)
Why Casdoor
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.
---
🌐 Live demos
| 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.
---
🚀 Quick start
Pick one deployment method below. To keep behavior consistent with upstream, the steps are aligned with official docs.
🛠️ Source code (default)
1. Install dependencies: Go 1.25 (follow go.mod), Node.js LTS (20), Yarn 1.x, and a supported database.
2. Clone the repository:
bash
git clone https://github.com/casdoor/casdoor.git
cd casdoor
3. Configure database in conf/app.conf (at minimum set driverName, dataSourceName, and dbName; for MySQL create database casdoor first).
4. Build frontend and start backend:
bash
cd web
yarn install
yarn build
cd ..
go run main.go
5. Open http://localhost:8000 and sign in with built-in/admin / 123 on a fresh install (change password immediately in production).
Official guide: Server installation
🐳 Docker
Use one of the official Docker paths:
- All-in-one (SQLite quick trial):
bash
docker run -p 8000:8000 casbin/casdoor-all-in-one
- Docker Compose (with your
conf/app.confnext todocker-compose.yml):
bash
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
☸️ Kubernetes Helm
With Helm v3 and a running Kubernetes cluster:
bash
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
---
✨ Features
🔐 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
---
Technology stack
Casdoor is built as a frontend–backend separated project:
- Web UI: JavaScript and React (
web/) - API server: Go with Beego, RESTful APIs (repository root)
- Data: mainstream databases including MySQL, PostgreSQL, and others (overview)
- Cache: optional Redis for session/cache-style deployments (configure as needed)
📖 Documentation
All product documentation, installation, and tutorials live at casdoor.ai/docs/overview. Start here, then use the sections below.
Install
Connect applications APIs- Public API
- Swagger UI (live API explorer)
🔌 Integrations
Casdoor integrates with common languages and frameworks:
Browse the full list: Integrations.
---
🤝 Community and support
- Discord: Join our community
- Contact: casdoor.ai/help
- Issues: GitHub Issues
- Discussions: GitHub Discussions
🌍 Contributing
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.
Translation and i18n
- Crowdin is used for translation workflows: casdoor-site on Crowdin.
- The web app uses i18next. When you add or change user-visible strings under
web/, update the English catalog at [web/src/locales/en/data.json](web/src/locales/en/data.json) accordingly.
❤️ Donate
If you find Casdoor useful, please consider supporting its development:
---
📄 License
Casdoor is licensed under the Apache License 2.0.
---
 
© 2026 Casdoor. Licensed under Apache License 2.0.
Members
-
casdoor ★ PINNED
An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD
Go ★ 14k 1d agoExplain → -
casdoor-go-sdk ★ PINNED
Go client SDK for Casdoor
Go ★ 123 1mo agoExplain → -
casdoor-java-sdk ★ PINNED
Java client SDK for Casdoor
Java ★ 39 2mo agoExplain → -
casdoor-js-sdk ★ PINNED
Javascript client SDK for Casdoor
TypeScript ★ 46 28d agoExplain → -
casdoor-authenticator ★ PINNED
Open-source authenticator app for iOS/Android/Web/Desktop, developed in React-Native, cloud synced with Casdoor
JavaScript ★ 39 9mo agoExplain → -
casdoor-cli ★ PINNED
🔑 Command Line Interface (CLI) tool for Casdoor
Go ★ 5 9mo agoExplain → -
awesome-auth
Awesome list for authentication and authorization
★ 538 29d agoExplain → -
casnode
Open-Source Forum and Social Platform, Alternative to StackOverflow & Flarum
Go ★ 143 7mo agoExplain → -
casdoor-old
An open-source Identity and Access Management (IAM) / Single-Sign-On (SSO) platform with web UI supporting OAuth 2.0, OIDC, SAML, CAS, LDAP, WebAuthn, TOTP and MFA
Go ★ 97 2y agoExplain → -
go-sms-sender
A helper library to send SMS via 10+ channels, like Twilio, Amazon SNS, Azure ACS, etc.
Go ★ 77 1y agoExplain → -
casbin-oa
The OA system
Go ★ 51 4d agoExplain → -
casdoor-python-sdk
Python client SDK for Casdoor
Python ★ 51 4mo agoExplain → -
elk-auth-casdoor
ELK (Elasticsearch, Kibana) auth based on Casdoor
Go ★ 45 4y agoExplain → -
traefik-casdoor-auth
Traefik ForwardAuth middleware powered by Casdoor: https://doc.traefik.io/traefik/middlewares/http/forwardauth
Go ★ 30 7mo agoExplain → -
wordpress-casdoor-plugin
Casdoor plugin for WordPress
CSS ★ 26 9mo agoExplain → -
casdoor-spring-boot-starter
Spring Boot 2.x & 3.x Starter for Casdoor, see example at: https://github.com/casdoor/casdoor-spring-boot-example
Java ★ 25 1y agoExplain → -
casdoor-php-sdk
PHP client SDK for Casdoor
PHP ★ 24 2mo agoExplain → -
casdoor-website
The docs website for Casdoor: https://github.com/casdoor/casdoor
JavaScript ★ 23 28d agoExplain → -
django-casdoor-auth
Django auth middleware based on Casdoor
Python ★ 23 3y agoExplain → -
casdoor-fastapi-js-sdk-example
Python FastAPI & Template & vanilla JS application example based on casdoor-python-sdk and casdoor-js-sdk
Python ★ 22 1y agoExplain → -
casdoor-python-vue-sdk-example
Python Flask & Template & Vue application example based on casdoor-python-sdk and casdoor-vue-sdk
Python ★ 22 2y agoExplain → -
casdoor-flutter-sdk
Flutter SDK for Casdoor, see example at: https://github.com/casdoor/casdoor-flutter-example
Dart ★ 20 1y agoExplain → -
nextjs-auth
Next.js Authentication based on Casdoor, live demo: https://nextjs-auth.casdoor.org
JavaScript ★ 18 2y agoExplain → -
casdoor-react-sdk
React client SDK for Casdoor
TypeScript ★ 18 2y agoExplain → -
casdoor-nodejs-sdk
Node.js client SDK for Casdoor, see example at: https://github.com/casdoor/casdoor-nodejs-react-example
TypeScript ★ 17 8mo agoExplain → -
casdoor-go-react-example
Go + React example app for Casdoor based on casdoor-go-sdk, casdoor-js-sdk and casdoor-react-sdk
JavaScript ★ 16 1y agoExplain → -
casdoor-vue-sdk
Vue client SDK for Casdoor
JavaScript ★ 16 3y agoExplain → -
static
Casbin static resources like js, css, img
CSS ★ 15 5mo agoExplain → -
casdoor-rust-sdk
Rust client SDK for Casdoor, see example at: https://github.com/casdoor/casdoor-rust-example
Rust ★ 12 2y agoExplain → -
casdoor-helm
Helm Chart for Casdoor: https://github.com/casdoor/casdoor
Go Template ★ 10 1d agoExplain → -
nuxt-auth
Nuxt.js Authentication based on Casdoor, live demo: https://nuxt-auth.casdoor.org
Vue ★ 9 6mo agoExplain → -
casdoor-operator
Kubernetes Operator for Casdoor
Go ★ 9 3y agoExplain → -
casdoor-spring-boot-example
Spring Boot example app for Casdoor based on casdoor-spring-boot-starter
Java ★ 8 2y agoExplain → -
casdoor-nodejs-react-example
Node.js Express + React example app for Casdoor based on casdoor-nodejs-sdk and casdoor-js-sdk
JavaScript ★ 7 3mo agoExplain → -
odoo-casdoor-oauth
Casdoor OAuth Plugin for Odoo
Python ★ 7 5y agoExplain → -
oss ⑂
Casdoor OSS provides Go SDK to operate files via List and CRUD for file system, public cloud object storage (like AWS S3) and MinIO, mainly used by Casdoor
Go ★ 6 1y agoExplain → -
casdoor-wechat-miniprogram-example
WeChat MiniProgram (微信小程序) example for Casdoor
JavaScript ★ 6 3y agoExplain → -
casdoor-flutter-example
The example code for Casdoor Flutter SDK
C++ ★ 6 1y agoExplain → -
casdoor-cpp-qt-example
C++ Qt desktop app example for Casdoor based on: https://github.com/casdoor/casdoor-cpp-sdk
C++ ★ 5 3y agoExplain → -
google-groups-crawler
This tool is for legitimate use. We internally use it for synchronizing posts between Casnode forum and our own Casdoor Google Group
Go ★ 5 5y agoExplain → -
casdoor-rust-example
The example code for Casdoor Rust SDK
Vue ★ 5 2y agoExplain → -
casdoor-cpp-sdk
C++ client SDK for Casdoor
C++ ★ 5 3y agoExplain → -
casdoor-forward-auth
No description.
Go ★ 4 7mo agoExplain → -
ldapserver
Package ldapserver implements LDAP Server
Go ★ 4 1y agoExplain → -
casdoor-spring-boot-shiro-example
SpringBoot & Apache Shiro Example for Casdoor
Java ★ 4 3y agoExplain → -
casdoor-ios-sdk
Casdoor iOS client SDK (in Swift)
Swift ★ 4 2y agoExplain → -
casdoor-electron-example
An Electron app example for Casdoor based on Casdoor JS SDK: https://github.com/casdoor/casdoor-js-sdk
JavaScript ★ 4 4y agoExplain → -
casdoor-springcloud-gateway-example
Spring Cloud Gateway example for Casdoor
Java ★ 4 3y agoExplain → -
notify ⑂
A dead simple Go library for sending notifications to various messaging services.
Go ★ 3 1y agoExplain → -
casdoor-unity-example
Unity 3D Mobile games app example for Casdoor
ShaderLab ★ 3 3y agoExplain → -
gomail ⑂
The best way to send emails in Go.
Go ★ 3 8mo agoExplain → -
casdoor-raw-js-example
Casdoor example for vanilla HTML + JS +CSS websites
HTML ★ 3 2y agoExplain → -
auth-proxy
A reverse proxy that provides authentication with Casdoor via OAuth 2.0, OIDC, SAML, CAS and LDAP
★ 3 3y agoExplain → -
casdoc
Docs helper based on OpenAI ChatGPT
Go ★ 2 2y agoExplain → -
casdoor-django-vue-sdk-example
Python Django & Vue application example based on casdoor-python-sdk and casdoor-js-sdk
Python ★ 2 3y agoExplain → -
shiro-casdoor
Apache Shiro Integration with Casdoor
Java ★ 2 3y agoExplain → -
casdoor-android-example
An Android app example for Casdoor based on Casdoor Android SDK: https://github.com/casdoor/casdoor-android-sdk
Kotlin ★ 2 3y agoExplain → -
casdoor-dart-sdk
Dart client SDK for Casdoor (for Dart backend, for Flutter & Dart frontend see: https://github.com/casdoor/casdoor-flutter-sdk)
★ 2 4y agoExplain → -
casdoor-angular-sdk
Angular client SDK for Casdoor, see example at: https://github.com/casdoor/casdoor-nodejs-angular-example
★ 2 3y agoExplain → -
casdoor-faceid-service
No description.
Python ★ 1 1mo agoExplain → -
public-mcp-server-registry
No description.
TypeScript ★ 1 1mo agoExplain → -
caswaf
No description.
Go ★ 1 1mo agoExplain → -
notify2 ⑂
A dead simple Go library for sending notifications to various messaging services.
Go ★ 1 7mo agoExplain → -
casdoor-react-native-sdk
React Native client SDK for Casdoor
TypeScript ★ 1 3mo agoExplain → -
xorm-adapter ⑂
Xorm adapter for Casbin
Go ★ 1 2y agoExplain → -
casdoor-spring-security-react-example
Spring Security (via Filter) example app integrated with Casdoor
Java ★ 1 3y agoExplain → -
bee ⑂
A fork of bee-1.x version maintained by Casdoor
Go ★ 1 2y agoExplain → -
casdoor-chrome-extension
Chrome extension for Casdoor, install it via the following link:
JavaScript ★ 1 2y agoExplain → -
casdoor-nodejs-angular-example
Node.js Express + Angular example app for Casdoor based on casdoor-nodejs-sdk and casdoor-js-sdk
TypeScript ★ 1 3y agoExplain → -
casdoor-uniapp-sdk
uni-app SDK for Casdoor, see example at: https://github.com/casdoor/casdoor-uniapp-example
JavaScript ★ 1 2y agoExplain → -
casdoor-php-laravel-example
PHP Laravel example for Casdoor
PHP ★ 1 1y agoExplain → -
casdoorapp-website
The docs website for Casdoor authenticator app: https://github.com/casdoor/casdoor-app
JavaScript ★ 1 1y agoExplain → -
casdoor-firebase-example
Google Firebase web app example for Casdoor
JavaScript ★ 1 2y agoExplain → -
casdoor-java-vue-example
No description.
Vue ★ 1 2y agoExplain → -
casdoor-android-sdk
Android SDK for Casdoor, see example at: https://github.com/casdoor/casdoor-android-example
Kotlin ★ 1 2y agoExplain → -
casdoor-nginx-module
No description.
C ★ 1 2y agoExplain → -
casdoor-react-only-example
A frontend-only example based on React and casdoor-js-sdk: https://github.com/casdoor/casdoor-js-sdk
JavaScript ★ 1 2y agoExplain → -
go-reddit ⑂
Go library for accessing the Reddit API.
Go ★ 1 2y agoExplain → -
casdoor-ios-example
iOS app example to integrate with Casdoor via casdoor-ios-sdk
Swift ★ 1 4y agoExplain → -
shenyu-plugin-auth
Casdoor SSO Plugin for Apache Shenyu
Java ★ 1 3y agoExplain → -
casdoor-aiguard
AIGuard: a policy enforcement point (PEP) for AI agents by Casdoor
Go ★ 0 18h agoExplain → -
incubator-release-assistant
Unofficial, config-driven release assistant and agent skill for Apache Incubator projects.
Go ★ 0 1d agoExplain → -
casdoor.github.io
The GitHub pages (static site) for: https://github.com/casdoor/casdoor-website
HTML ★ 0 28d agoExplain → -
casdoor-data
No description.
★ 0 3mo agoExplain → -
casdoor-electron-sdk
No description.
★ 0 3mo agoExplain → -
readme-checker
No description.
Python ★ 0 2y agoExplain → -
crowdin-helper
Crowdin translation help for Casbin websites
Python ★ 0 2y agoExplain → -
casbin-oa-android
No description.
Java ★ 0 3y agoExplain → -
casbin-api-example
Casbin API Example for Casdoor
Go ★ 0 9mo agoExplain → -
quarkus-casdoor-auth
Quarkus extension for Casdoor authentication
Java ★ 0 11mo agoExplain → -
casdoor-expo-sdk
No description.
★ 0 1y agoExplain → -
casdoorapp.github.io
The GitHub pages (static site) for: https://github.com/casdoor/casdoorapp-website
HTML ★ 0 1y agoExplain → -
SummerOfCode2024
GSoC 2024 Idea List for Casdoor
★ 0 2y agoExplain → -
casdoor-go-desktop-example
Go fyne desktop app example for Casdoor
★ 0 2y agoExplain → -
casdoor-spring-security-example
Spring Security example app integrated with Casdoor
Java ★ 0 2y agoExplain → -
casdoor-ruby-sdk
Ruby SDK for Casdoor
Ruby ★ 0 2y agoExplain → -
go-wsfed ⑂
Go (golang) library for generating WS-Fed requests and parsing tokens
Go ★ 0 2y agoExplain → -
casdoor-uniapp-example
Uniapp Example of Casdoor via casdoor-uniapp-sdk
JavaScript ★ 0 2y agoExplain → -
casdoor-react-native-example
React Native example app for Casdoor based on casdoor-react-native-sdk
Java ★ 0 2y agoExplain → -
envoy-oauth2-casdoor
Envoy's oauth2 filter based on Casdoor
★ 0 3y agoExplain → -
shenyu-plugin-auth-1 ⑂
Auth plugin for Apache Shenyu
★ 0 3y agoExplain → -
casdoor-android-sdk-old
Casdoor Android client SDK
Java ★ 0 3y agoExplain → -
asgi-auth-sso
ASGI authentication / Single-sign-on (SSO) middleware
★ 0 4y agoExplain → -
casdoor-taro-sdk
Casdoor Taro client SDK
★ 0 4y agoExplain → -
zentao-oidc ⑂
oidc module for zentao。禅道的openid单点登录支持模块
★ 0 5y agoExplain →
No repos match these filters.