Logto is a free, open source identity & access management (iam) project written in TypeScript and released under MPL-2.0. It has 14,580 GitHub stars, 1,206 forks and 183 open issues, and was last pushed 11 hours ago. On this registry it ranks #7 of 11 tracked projects in Identity & Access Management (IAM), and is listed as an open source replacement for 1 paid product, with 5 head-to-head comparisons available. It gained 52 stars over the last 6 tracked days.

Logto — Secure, seamless authentication for modern applications

What is Logto?

What it is

Logto is an open-source authentication and authorization infrastructure for SaaS and AI applications. It is written in TypeScript, licensed under MPL-2.0, and positioned as an open alternative to Auth0. The project sits in the identity and access management ecosystem, where it provides a central service for login, consent, tokens, user directories, and access control.

The concrete problem it solves is the complexity of implementing secure sign-in and access control without building protocol handling, user management, and integration code inside each application. Logto exposes OIDC, OAuth 2.1, and SAML flows, plus pre-built sign-in experiences and SDKs, so product teams can delegate authentication to a dedicated service while keeping application logic focused on their own features.

Key capabilities

  • It supports OpenID Connect, OAuth 2.1, and SAML as the core standards for authentication, authorization, and enterprise identity federation.
  • It provides multi-tenancy, organizations, role-based access control, member invites, and just-in-time provisioning for SaaS products with separate customer workspaces.
  • It includes pre-built sign-in flows, customizable user interfaces, social login, Google One Tap, MFA, password, passwordless, and email-related identity features.
  • It offers SDKs for 30+ frameworks, including React, Next.js, Angular, Vue, Flutter, Go, and Python, for integrating applications quickly.
  • It connects to external identity providers such as Google, Facebook, Azure AD, and Okta, so existing user identities can be reused.
  • It supports SPAs, web applications, mobile applications, APIs, machine-to-machine flows, and CLI tools through standard protocols and flexible integration paths.
  • It is designed to work with Model Context Protocol and agent-based AI architectures, which extends auth infrastructure to AI applications.

Who uses it and how

  • SaaS teams use Logto as a central authentication service for customer-facing web apps and APIs, while using organizations and RBAC to manage access across tenants.
  • AI platform teams use it to protect agent-based services and Model Context Protocol workflows with OIDC and OAuth 2.1 patterns.
  • Developers use SDKs and connectors to add sign-in, social login, MFA, and SSO without building each flow from scratch in every framework.
  • Self-hosters run it locally with Docker Compose or Node.js and PostgreSQL, or try it through GitPod and Logto Cloud before operating it in production.

Getting started

Typical installation methods include the hosted Logto Cloud option, a GitPod demo, Docker Compose, and a Node.js path using npm init @logto with PostgreSQL.

When to use it — and when not to

Logto is a good fit when a team wants an open-source alternative to Auth0 with OIDC, OAuth 2.1, SAML, multi-tenancy, and RBAC, and can operate the service itself. Self-hosting requires running PostgreSQL and configuring email, external identity providers, and application integration details, while the provided metadata lists 0 contributors and 183 open issues, so teams should validate maintenance and support before relying on it.

project readme (upstream, from github) — read inline

Logto logo

discord checks release core coverage cloud gitpod render

Logto

Logto is the modern, open-source auth infrastructure for SaaS and AI apps.

It takes the pain out of OIDC and OAuth 2.1 and makes it easy to build secure, production-ready auth with multi-tenancy, enterprise SSO, and RBAC.

websiteclouddocsapiblogauth wikinewsletter

Logto features

Why Logto?

Built for teams scaling SaaS, AI, and agent-based platforms without the usual auth headaches.

With Logto, you get:

  • Multi-tenancy, enterprise SSO, and RBAC: ready to use, no workarounds.
  • Pre-built sign-in flows, customizable UIs, and SDKs for 30+ frameworks.
  • Full support for OIDC, OAuth 2.1, and SAML without the protocol pain.
  • Works out-of-the-box for Model Context Protocol and agent-based AI architectures.

🗺️ See all features →

Get started

Pick your path:

  • Logto Cloud: The fastest way to try Logto. Fully managed, zero setup.

  • Launch Logto in GitPod: Start Logto OSS in seconds.

    Wait for the message App is running at https://3002-...gitpod.io, then click the URL starting with https://3002- to continue.

  • Local development:

    # Using Docker Compose(requires Docker Desktop)
    curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/docker-compose.yml | \
    docker compose -p logto -f - up
    
    # Using Node.js (requires PostgreSQL)
    npm init @logto
    

📚 Full OSS installation guide →

Integrate anywhere

Logto supports all your apps, APIs, and services with industry-standard protocols.

  • SDKs for 30+ frameworks: React, Next.js, Angular, Vue, Flutter, Go, Python, and more.
  • Connect to any IdP: Google, Facebook, Azure AD, Okta, and more.
  • Flexible integration: SPAs, web apps, mobile apps, APIs, M2M, CLI tools.
  • Ready for Model Context Protocol and agent-based architectures.

🚀 Explore quick starts →

🔌 See all connectors →

Showcase

Developer-first SDKs: Install in minutes with clear guides.

Logto auth SDK showcase

User-friendly auth flows: Sign-up, sign-in, social login, Google One Tap, MFA, SSO.

Logto sign-in experience showcase

Multi-tenancy & organizations: Organization RBAC, member invites, just-in-time provisioning, and more.

Logto multi-tenancy showcase

Support Logto

If you find Logto helpful, here's how you can support us:

Licensing

MPL-2.0.

⬆️ Back to top

Frequently asked questions

Is Logto free to use?

Logto is open source under the MPL-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Logto do?

Secure, seamless authentication for modern applications

What is Logto written in?

Logto is primarily written in TypeScript. Its source is publicly available at https://github.com/logto-io/logto, and it has 14,580 GitHub stars.

What is a good open source alternative to Auth0?

Logto is one of the open source options listed as an alternative to Auth0. Compare licences, stars and activity side by side on the Logto profile.