Skip to content

Logto

Self-hostable auth for multi-tenant SaaS with SSO, RBAC and OIDC

Weak copyleft (OSI) · MPL-2.0

Listed by , founder & editor

86

Health

Thriving

Overview

Stars

14,977

Last commit

today

Nov 2026

Repository age

5 years

since Jun 2021

Latest version

v1.46.0

Nov 2026

Contributors

–

15 active in 90 days

Releases

15

last 12 months

Language

TypeScript

Logto is an authentication and authorization service for SaaS and AI apps. It is written in TypeScript and built on OIDC, OAuth 2.1 and SAML. You can run it yourself with Docker Compose, or with Node.js and PostgreSQL. A managed cloud version is also offered.

It includes pre-built sign-in flows with customizable UIs, social login, Google One Tap, MFA and enterprise SSO. Multi-tenancy and organizations come with organization RBAC, member invites and just-in-time provisioning. SDKs cover more than 30 frameworks, including React, Next.js, Angular, Vue, Flutter, Go and Python. You can connect identity providers such as Google, Facebook and Azure AD, and it supports apps using Model Context Protocol.

Logto is licensed under MPL-2.0. It is a direct replacement for Auth0 for teams that want a similar developer experience with multi-tenancy. The hosted plan starts at 24 USD per month.

Who it's for

SaaS teams building B2B products with tenants

Organizations, RBAC and enterprise SSO are built in.

Skip if: You need advanced conditional access or device management.

Developers leaving Auth0 over cost or control

It offers a similar developer-first model and can be self-hosted.

Skip if: You do not want to run PostgreSQL and a service yourself.

Teams building AI agents and MCP apps

It supports OAuth 2.1 and Model Context Protocol architectures.

Skip if: Your app needs only a simple password login.

The problem it solves

Building login, social sign-in, SSO and role-based access yourself takes time and carries security risk. Logto gives you these as a ready service with SDKs. You can host it or use the cloud.

Strengths

  • Multi-tenancy, enterprise SSO and RBAC are included
  • SDKs for 30+ frameworks
  • Supports OIDC, OAuth 2.1 and SAML
  • Self-host with Docker Compose or Node.js and PostgreSQL
  • Very active: 15 releases in the last year

Trade-offs

  • No device management
  • Fewer enterprise rules and conditional access options than Auth0
  • MPL-2.0 requires sharing changes to modified MPL files
  • Self-hosting needs PostgreSQL

Logto replaces

Self-host Logto

Self-hostable
Yes
Docker Compose
The repository ships a Compose file
Hosted plan
From $24/month · pricing

Quick start

curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/docker-compose.yml | \
docker compose -p logto -f - up

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Can I self-host Logto?

Yes. Use Docker Compose, or run it with Node.js and PostgreSQL.

How is Logto licensed?

It uses MPL-2.0, a weak copyleft license.

Does it support SAML and OIDC?

Yes. It is built on OIDC, OAuth 2.1 and SAML.

Is there a hosted version?

Yes. Logto Cloud is a managed option, with plans starting at 24 USD per month.

Other Auth0 alternatives

Compare all 5 Auth0 alternatives →

Similar tools in Identity and access management

oauth2-proxy

Identity and access management

Reverse proxy that puts OAuth2 and OIDC login in front of any web app

15k 2.3k 15 days ago Active MIT

Permify

Identity and access management

6k 332 8 days ago Thriving AGPL-3.0

VoidAuth

Identity and access management

Self-hosted SSO provider with OIDC, ForwardAuth and LDAP for home labs and small setups

2.9k 136 today Thriving AGPL-3.0

Supertokens

Identity and access management

Self-hosted login and session management for developers who own their user data

15k 777 17 days ago Active Apache-2.0 + open core

Replaces AWS CognitoFirebase Auth

Zitadel

Identity and access management

Self-hosted identity platform with SSO, multi-tenancy and a full event audit trail

16k 1.4k today Thriving AGPL-3.0

Replaces Auth0KeycloakOkta

Cerbos

Identity and access management

Self-hosted authorization service that checks access rules written as YAML policies

4.7k 220 yesterday Thriving Apache-2.0