casdoor

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

What is casdoor?

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

Overview of casdoor

What it is

Casdoor is an open-source, self-hosted identity and access management (IAM) platform. It functions as a single sign-on (SSO) and authentication server with a web console. It supports multiple protocols including OAuth 2.0, OIDC, SAML 2.0, CAS, LDAP, SCIM 2.0, WebAuthn, TOTP/MFA, and MCP. It can connect to external identity providers such as Google Workspace, Microsoft Entra ID (Azure AD), and GitHub.

Key features

  • Supports OAuth 2.0, OIDC, SAML 2.0, CAS, LDAP, SCIM 2.0, WebAuthn, TOTP/MFA, and MCP protocols.
  • Connects to Google Workspace, Microsoft Entra ID, GitHub, and many other identity providers.
  • Provides a web-based admin console for managing users, organizations, applications, providers, and sign-in methods.
  • Policy-based authorization built in using Casbin (ACL, RBAC, ABAC, and custom models).
  • Self-hosted as a single Go binary plus a database; no JVM or cluster required.
  • Supports configuration as code via init data files (JSON/YAML) and an official Terraform provider.

Use cases

  • Organizations that need a complete identity provider to manage user directories and delegate login for multiple applications.
  • Environments requiring support for multiple authentication protocols (OAuth, SAML, LDAP, etc.) from a single user directory.
  • Teams that want to configure authentication, branding, and policies through a web UI instead of configuration files.
  • Self-hosted deployments where control over user data and infrastructure is required.

Getting started

bash docker run -p 8000:8000 casbin/casdoor-all-in-one Open http://localhost:8000 and sign in with:

  • Organization: built-in
  • Username: admin
  • Password: 123

License and pricing

License: Apache-2.0. The software is open-source and free to self-host.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/casdoorcasdoor.svg)](https://yunodb.com/tools/casdoorcasdoor?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/casdoorcasdoor?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/casdoorcasdoor.svg" alt="Featured on YunoDB" height="20"></a>