logto: Build Authentication and Authorization for Apps

Summary
Logto is an identity platform for SaaS and AI applications, built around OIDC and OAuth 2.1. It provides sign-in flows, multi-tenancy, enterprise SSO, and authorization capabilities for teams building user-facing apps and APIs.
At a glance
- Language
- TypeScript
- License
- MPL-2.0
- Stars
- 14.6k
- Forks
- 1.2k
- Added to OSRepos
- March 21, 2026
- Last analyzed
- October 3, 2026
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Logto is authentication and authorization infrastructure for SaaS and AI applications. It helps teams implement identity and access management using standards such as OIDC, OAuth 2.1, and SAML, rather than building those protocol flows themselves.
It is suited to products that need user sign-in as well as organization-aware access control, enterprise identity integrations, or authentication for APIs and machine-to-machine clients. Teams can use the open-source deployment or choose Logto Cloud.
Key Features
- Pre-built sign-up and sign-in flows with customizable user interfaces.
- OIDC, OAuth 2.1, and SAML support.
- Multi-tenancy and organization features, including organization RBAC and member invitations.
- Enterprise single sign-on and connections to external identity providers.
- Authentication options including social login and multi-factor authentication.
- SDKs for more than 30 frameworks, with support for web, mobile, API, and machine-to-machine integrations.
- Integrations for Model Context Protocol and agent-based AI architectures.
Use Cases
- SaaS teams adding account sign-in and organization-level roles for customers and their members.
- Product teams offering enterprise customers SSO and connecting their existing identity providers.
- Developers securing APIs and machine-to-machine services with standards-based identity flows.
- Teams building AI or agent-based applications that need user authentication and access controls.
Project Facts
- Language: TypeScript
- License: MPL-2.0
- Stars: 14.6k
- Forks: 1.2k
- Topics: authentication, authorization, email, identity, jwt, login, logto, mfa, oauth2, openid-connect, password, passwordless, rbac, saml, signup, sms, social-login, sso, totp, typescript
- Archived: No
Getting Started
For a local setup with Docker Compose, run:
curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/docker-compose.yml | docker compose -p logto -f - up
This requires Docker Desktop. For Node.js setup, cloud access, and full installation instructions, see the README and OSS installation guide.
Considerations
- The Docker Compose quick start requires Docker Desktop. The Node.js option requires PostgreSQL.
- Authentication and authorization infrastructure is security-sensitive. Review configuration, deployment, and integration choices against your application's requirements.
- The repository is licensed under MPL-2.0; check the license terms when incorporating or modifying the project.
- Logto Cloud is a separate managed option; using the repository for self-hosting involves setup and operations.
Repository: logto-io/logto. Project site: logto.io.
Found this useful?
Share it with someone who would like logto.
Source repository
Open the original repository on GitHub.
14 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

agentwatch: Monitor AI Agent Activity Locally
October 6, 2026
agentwatch combines logs from multiple coding agents into a local timeline with event details, cost tracking, alerts, and search. It suits developers who run several agents and want visibility without sending data to a cloud service.

image-blaster: Turn Images into 3D Environments and Assets
October 5, 2026
image-blaster uses Claude skills and external generation services to turn an image into a 3D environment, object meshes, and sound effects. It is designed to quickly create starting points for game, 3D, and web projects.

OrcaReplay: Record and Replay AI Agent Runs
October 2, 2026
OrcaReplay records AI agent runs so developers can inspect what happened, replay interactions offline, and fork a run from a checkpoint onto another model. It is a TypeScript CLI for debugging and comparing agent behavior without modifying the agent.

openmake_llm: Coordinate AI Models, Agents, and Tools
October 1, 2026
OpenMake is a self-hosted AI workspace that coordinates chat models, agents, and tools in one place. It suits people who want multi-step AI workflows with local or open-weight models, while keeping infrastructure and model choices under their control.