Authentik logo

Authentik

✓ Verified FOSSGPL-3.0
Top open-source alternative to Auth0 / Okta

The authentication glue you need.

Tech StackPython, Django, Go, PostgreSQL, Redis
Self-Host DifficultyMedium
License ModelGPL-3.0
GitHub Repositorygoauthentik/authentik

Recommended VPS & Hardware Sizing

Estimated Hosting: $10 - $15/mo (e.g. Hetzner CPX21 or Linode)
Min RAM:2 GB
Rec RAM:4 GB
Compute:2 vCPU
Disk Space:25 GB SSD

Authentik vs Auth0 / Okta Comparison Matrix

Evaluation CriteriaAuthentik (Open Source)Auth0 / Okta (Proprietary)
MAU PricingUnlimited monthly active users with zero fees$23/mo per 1,000 MAU + enterprise tiers
SAML Enterprise Add-onSAML 2.0 included natively for all appsRequires enterprise custom quote ($1,000+/mo)
Credential CustodyPrivate sovereign database custodyPasswords hashed in third-party database
INTERACTIVE TCO MODELEstimated Rate: $138/user/mo

Financial Impact: Migrating from Auth0 / Okta to Self-Hosted Authentik

Detailed Stack Calculator →
5 Users (Early Startup)50 Users (Scaleup)200 Users (Enterprise Org)
Auth0 / Okta (Cloud SaaS)Per-Seat Tax
$41,400per year ($3,450/mo)
3-Year Spend:$124,200

* Excludes enterprise SSO add-ons & usage overages

Authentik (Self-Hosted)Zero Per-Seat Fee
$120per year ($10/mo Linux VPS)
3-Year Compute:$360

* Commodity Hetzner / DigitalOcean compute instance

Cumulative 3-Year ROI+$123,840Net savings across 36 months (100% reduction)
Annual Free Cash:+$41,280/yr
Need C-Level Buy-In? Generate an instant ROI proposal memo to present to your CTO or CFO.

Core Capabilities & Features

✓Visual Stage & Policy Flow Builder for custom login workflows
✓OIDC, OAuth2, and SAML 2.0 Identity Provider protocols
✓Embedded Outpost Reverse Proxy / Forward Authentication
✓LDAP Outpost to authenticate legacy enterprise software
✓Passwordless WebAuthn / Passkey support out of the box

Self-Host Authentik with Docker Compose

Tweak configuration ports, secrets, and volumes live. Download or copy your ready-to-run container file:

1-Click Docker Compose Generator

Generate production-ready container definitions with customizable ports and volumes.

AuthentikGPL-3.0

Open-source Identity Provider focused on flexibility and enterprise versatile authentication flows

Difficulty: Medium25,931 ⭐
Configure Parameters
docker-compose.authentik.yml
version: '3.4'

services:
  postgresql:
    image: docker.io/library/postgres:16-alpine
    restart: unless-stopped
    volumes:
      - database:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: ${PG_PASS:-secret_authentik_pw}
      POSTGRES_USER: ${POSTGRES_USER:-authentik}
      POSTGRES_DB: ${POSTGRES_DB:-authentik}

  redis:
    image: docker.io/library/redis:alpine
    command: --save 60 1 --loglevel warning
    restart: unless-stopped
    volumes:
      - redis:/data

  server:
    image: ghcr.io/goauthentik/server:latest
    restart: unless-stopped
    command: server
    environment:
      AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:-generate_random_key_here}
      AUTHENTIK_REDIS__HOST: redis
      AUTHENTIK_POSTGRESQL__HOST: postgresql
      AUTHENTIK_POSTGRESQL__USER: ${POSTGRES_USER:-authentik}
      AUTHENTIK_POSTGRESQL__NAME: ${POSTGRES_DB:-authentik}
      AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS:-secret_authentik_pw}
    volumes:
      - ./media:/media
      - ./custom-templates:/templates
    ports:
      - "${COMPOSE_PORT_HTTP:-9000}:9000"
      - "${COMPOSE_PORT_HTTPS:-9443}:9443"
    depends_on:
      - postgresql
      - redis

volumes:
  database:
  redis:

Frequently Asked Questions: Self-Hosting Authentik

How do I self-host Authentik using Docker Compose?

You can deploy Authentik (goauthentik/authentik) on any Linux server by copying the docker-compose.yml template on this page, configuring your desired host port and persistent volume directory, and running 'docker compose up -d'.

How does Authentik compare to Auth0 / Okta?

Authentik is an open-source, self-hosted alternative to Auth0 / Okta built with Python, Django, Go, PostgreSQL, Redis. Unlike Auth0 / Okta ($35 - $240+ / month (Penalties on MAU)), Authentik has zero per-user licensing fees and keeps 100% of your data on your own infrastructure.

What are the minimum VPS RAM and CPU requirements for Authentik?

For production self-hosting (Medium difficulty tier), we recommend at least 4 GB RAM (minimum 2 GB), 2 vCPU, and 25 GB SSD storage, which typically costs $10 - $15/mo (e.g. Hetzner CPX21 or Linode).

Is Authentik free for commercial business use under the GPL-3.0 license?

Yes. Distributed under the GPL-3.0 license, Authentik can be self-hosted internally by businesses and engineering teams of any size without per-seat royalties.

README INTEGRATION // REPO EMBED

Embed Official Authentik Badge in GitHub README

Served locally from OSSMatrix with Cloudflare global edge caching. Real-time verified alternative status, zero third-party dependencies, sub-5ms load time.

Live Preview:Authentik Badge
Markdown Embed (GitHub / GitLab)
[![OSSMatrix Alternative](https://ossmatrix.com/api/badge/authentik)](https://ossmatrix.com/project/authentik)
HTML Embed (Docs / Landing Pages)
<a href="https://ossmatrix.com/project/authentik" target="_blank" rel="noopener noreferrer"><img src="https://ossmatrix.com/api/badge/authentik" alt="Authentik on OSSMatrix" /></a>
SIMILAR REPOSITORIES // PEER COMPARISON

Compare Authentik with Other Self-Hosted Alternatives

All Auth0 / Okta Alternatives →