selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

logto logo

Self-host logto

v1.46.0

OIDC and OAuth 2.1 auth server with SSO, RBAC, MFA

ReleaseOpen CoreMPL-2.0
Updatedlast week
LanguageTypescript
Setup difficultyModerate
Stars
14 935
CPU
2 vCPU
RAM
8 GiB
Storage
256 GiB
Ports
3001 (Logto core service (auth endpoint)), 3002 (Admin Console)
Requires
PostgreSQL
Docker
ghcr.io/logto-io/logto
Install with Docker Compose
logto screenshot 1

What is logto?

Logto is an authentication and authorization server for SaaS and AI applications, built around OIDC, OAuth 2.1 and SAML. It ships pre-built sign-in flows with password, email or SMS one-time codes, social sign-in, and multi-factor options such as passkeys, authenticator apps and backup codes, plus role-based access control, multi-tenant organizations and enterprise SSO against external identity providers. The open-source edition runs as a Node.js service backed by PostgreSQL: install it with npm init @logto or pull the official container image, exposing port 3001 for the auth core and 3002 for the browser-based Admin Console, with optional Redis caching, object storage for uploads, a Secret Vault and Kubernetes deployment guidance. Integrations come through SDKs for many frameworks, a Management API, and connectors for email, SMS and social IdPs. Some capabilities — hiding Logto branding, custom sign-in UI hosting, multiple Console members with invitations, mandatory Console MFA and more than three SAML apps — require a paid self-hosted license, and the self-hosted Admin Console starts with a single account.

logto alternatives

All self-hosted alternatives to Auth0 → All self-hosted alternatives to AWS Cognito → All self-hosted alternatives to Clerk →

Should you self-host logto?

logto scores 73/100 on selfhost.directory (how scoring works) and ranks #4 of 19 in Identity & Auth. It has 14 935 GitHub stars, +266 in the last 30 days.

It shipped 8 stable releases in the past year. The latest, v1.46.0, came out on 5 November 2026. New versions land roughly every 4 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MPL-2.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is authentik (80/100, 26 355 stars). It scores higher overall, so compare the two before you pick. See logto vs authentik side by side.

Features

  • Admin ConsoleSelf-hosted OSS creates a single admin account at launch; multiple Console members need a license.
  • Enterprise SSOFree self-hosted instances are limited to 3 SAML apps; unlimited with a license.
  • Machine-to-machine authentication
  • Management API
  • Multi-Factor AuthenticationMandatory MFA for Console members requires a paid self-hosted license.
  • Multi-tenancy / organizations
  • OIDC and OAuth 2.1 provider
  • Password Authentication
  • Passwordless sign-in
  • Personal Access Tokens
  • Role-based Access Control
  • SDKs for many frameworks
  • Secret vault
  • Social sign-in
  • User Impersonation

logto README

Logto logo

discord checks release core coverage cloud gitpod render

Logto

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

How to install logto

Install logto with Docker Compose

Docker Desktop
Environment variables
TAG, DB_URL, TRUST_PROXY_HEADER, ENDPOINT, ADMIN_ENDPOINT
curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/docker-compose.yml | docker compose -p logto -f - up

The bundled compose file ships its own Postgres and the docs warn: "Do not use our docker compose command for production!"

How to configure logto

  • TRUST_PROXY_HEADERfalseDitto.

    values: boolean

  • ENDPOINT'protocol://localhost:$PORT'You may specify a URL with your custom domain for online testing or production. This will also affect the value of the OIDC issuer identifier.

    values: string

  • ADMIN_ENDPOINT'protocol://localhost:$ADMIN_PORT'You may specify a URL with your custom domain for production (E.g. ADMIN_ENDPOINT=https://admin.domain.com). This will also affect the value of Admin Console Redirect URIs.

    values: string

  • DB_URLThe Postgres DSN for Logto database.

    values: string

  • DATABASE_STATEMENT_TIMEOUT(v1.36.0+) PostgreSQL statement_timeout in milliseconds. Use a numeric string (e.g., 5000) to set it, or DISABLE_TIMEOUT to omit the startup parameter (recommended for PgBouncer/RDS Proxy). If unset or invalid, the client default is 60000 ms.

    values: string

logto releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Identity & Auth

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…