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.

Pocket ID logo

Self-host Pocket ID

v2.19.2

Passkey-first OIDC and OAuth 2.0 identity provider

ReleaseOpen SourceBSD-2-Clause
brew install pocket-id
Updated5 days ago
LanguageGo
Setup difficultyEasy
Stars
10 186
Ports
1411 (Pocket ID's web UI and OIDC/API endpoints), 9464 (Prometheus metrics endpoint on localhost, only when OTEL_METRICS_EXPORTER=prometheus)
Docker
ghcr.io/pocket-id/pocket-id
The Pocket ID sign-in page with an Authenticate buttonThe My Apps dashboard listing a user's appsThe audit log with sign-in eventsThe LDAP settings screenThe login code dialog with a code and QR code

What is Pocket ID?

Pocket ID is an identity provider for homelabs, small teams and startups that find Keycloak, Authentik or Ory Hydra heavier than their setup needs. It is a certified OpenID Connect and OAuth 2.0 issuer where people log in with passkeys - nothing else; accounts carry no passwords at all. A passkey may live in a device keychain, in a password manager, or on a hardware token (the docs give YubiKeys as one example), and admins can pin down which kinds are acceptable. Connected applications receive tokens holding name, email and group claims, access to each client can be limited to chosen user groups, and newcomers get in through one-time codes an admin issues. Also on offer: QR approvals for signing in on a device that lacks your passkey, user and group syncing from LDAP or Active Directory, SCIM push provisioning, a My Apps page, an audit log with IP and approximate location, a REST API with keys, scoped access tokens for your own backends, OAuth for remote MCP servers, and OpenTelemetry export. Operation is one container or one Go binary keeping data in embedded SQLite (PostgreSQL can replace it), on port 1411, configured purely by environment variables; HTTPS is required since browsers demand it for passkeys. Licensing is BSD-2-Clause, releases are frequent, and a public demo exists.

Should you self-host Pocket ID?

Pocket ID scores 79/100 on selfhost.directory (how scoring works) and ranks #2 of 40 in Authentication. It has 10 186 GitHub stars, +806 in the last 30 days.

It shipped 22 stable releases in the past year. The latest, v2.19.2, came out on 2 November 2026. New versions land roughly every 2 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is BSD-2-Clause-licensed and written mostly in Go.

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

Features

  • App dashboard
  • Audit Log
  • Group-based access control
  • LDAP user and group sync
  • OAuth 2.0 provider
  • OAuth authorization server for MCP servers
  • One-time login codes
  • OpenID Connect provider
  • OpenTelemetry logs, metrics and traces
  • Passkey Authentication
  • REST API
  • SCIM provisioning
  • Scoped access tokens for APIs
  • Sign in from another device
  • Translated interface

Pocket ID README


Pocket ID

Pocket ID is an easy-to-use OpenID Connect Certified™ and OAuth 2.0 provider that lets users sign in to your applications with passkeys.

→ Try out the Demo

The Pocket ID sign-in page for Pangolin

The goal of Pocket ID is to be a simple and easy-to-use. There are other self-hosted OIDC and OAuth 2.0 providers like Keycloak or ORY Hydra but they are often too complex for simple use cases.

Additionally, what makes Pocket ID special is that it only supports passkey authentication, which means you don’t need a password. Some people might not like this idea at first, but I believe passkeys are the future, and once you try them, you’ll love them. For example, you can now use a physical Yubikey to sign in to all your self-hosted services easily and securely.

OpenID Connect Certified

Setup

Pocket ID can be set up in multiple ways. The easiest and recommended way is to use Docker.

Visit the documentation for the setup guide and more information.

Contribute

You're very welcome to contribute to Pocket ID! Please follow the contribution guide to get started. See the development guide for setup, formatting, and testing instructions.

How to install Pocket ID

Install Pocket ID with Docker Compose

Environment variables
APP_URL, ENCRYPTION_KEY, TRUST_PROXY, PUID, PGID

Download the Compose file and the example .env file:

curl -O https://raw.githubusercontent.com/pocket-id/pocket-id/main/docker-compose.yml
curl -o .env https://raw.githubusercontent.com/pocket-id/pocket-id/main/.env.example

Set the address you’ll open Pocket ID at and an encryption key in .env:

APP_URL=https://id.example.com
# Generate one with: openssl rand -base64 32
ENCRYPTION_KEY=<random string of at least 16 characters>

Start Pocket ID:

docker compose up -d

Single container; data in ./data, listens on port 1411. HTTPS needed for passkeys.

How to configure Pocket ID

  • APP_URLhttp://localhost:1411The address you open Pocket ID at, such as https://id.example.com, without a path. Passkeys are bound to its domain.
  • ENCRYPTION_KEYEncrypts sensitive data such as the token signing keys, at least 16 bytes. See Encryption keys.
  • TRUST_PROXYfalseThe reverse proxies to take the client IP from. See Reverse proxy settings.
  • MAXMIND_LICENSE_KEYA free MaxMind key, which lets Pocket ID download the GeoLite2 database to show locations in the audit log.
  • PUID1000The user and group the Docker container runs Pocket ID as, and which owns /app/data. They have no effect on the -distroless images or when the container already runs as another user.

Pocket ID releases & version history

@ Every self-hosted release, weekly

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

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…