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.

Dex logo

Self-host Dex

v2.46.1

Federated OpenID Connect and OAuth 2.0 identity provider

ReleaseOpen SourceApache-2.0
Updated3 weeks ago
LanguageGo
Setup difficultyEasy
ThemeDark mode
Stars
11 262
Ports
5556 (HTTP endpoint serving the issuer, login UI and OAuth2/OIDC endpoints), 5557 (gRPC API endpoint (optional, must differ from the HTTP endpoints)), 5558 (Telemetry HTTP endpoint)
Docker
ghcr.io/dexidp/dex
Install with Docker
Dex screenshot 1

What is Dex?

Dex alternatives

All self-hosted alternatives to Ory Hydra → All self-hosted alternatives to Authelia → All self-hosted alternatives to Authentik →

Should you self-host Dex?

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

It shipped 4 stable releases in the past year. The latest, v2.46.1, came out on 21 October 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 Apache-2.0-licensed and written mostly in Go.

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

Features

  • Built-in login UI
  • Federated identity connectorsConnector maturity ranges from stable to alpha.
  • Group membership claimsNot available from every connector, e.g. LinkedIn.
  • gRPC management API
  • Mock connector for development
  • Multi-Factor AuthenticationNeeds the sessions feature flag switched on in the example config.
  • OpenID Connect and OAuth 2.0 provider
  • PKCE support
  • Pluggable storage backends
  • Signed ID tokens
  • Single sign-on sessionsNeeds the sessions feature flag switched on in the example config.
  • Telemetry endpoint
  • Templated configuration

Dex README

dex - A federated OpenID Connect provider

GitHub Workflow Status OpenSSF Scorecard OpenSSF Best Practices Go Report Card LFX Health Score

logo

Dex is an identity service that uses OpenID Connect to drive authentication for other apps.

How to install Dex

Install Dex with Docker

Environment variables
DEX_ISSUER, DEX_WEB_HTTP, DEX_WEB_HTTPS, DEX_WEB_TLS_KEY, DEX_WEB_TLS_CERT, DEX_STORAGE_SQLITE3_CONFIG_FILE, DEX_TELEMETRY_HTTP, DEX_LOG_LEVEL, DEX_LOG_FORMAT, DEX_EXPIRY_ID_TOKENS, DEX_SIGNER_LOCAL_ALGORITHM, DEX_OAUTH2_RESPONSE_TYPES, DEX_ENABLE_PASSWORD_DB

Dex is primarily distributed as a container image, published to the following locations:

Entrypoint renders gomplate templates in the passed config file.

How to configure Dex

  • issuerBase path and canonical external name of the OIDC service
  • staticClientsStatic list of OAuth2 clients instead of managing them over the gRPC API
  • connectorsList of upstream identity providers dex authenticates against
  • enablePasswordDBLet dex keep its own list of passwords for logins

    values: true, false

  • staticPasswordsStatic list of passwords used to log in to dex

Dex 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…