SuperTokens logo

SuperTokens

✓ Verified FOSSApache-2.0
Top open-source alternative to Auth0 / Okta

Open source alternative to Auth0 / Firebase Auth / AWS Cognito

Tech StackJava, TypeScript, React
Self-Host DifficultyEasy
License ModelApache-2.0

Recommended VPS & Hardware Sizing

Estimated Hosting: $4 - $6/mo (e.g. Hetzner CX22 or DigitalOcean)
Min RAM:1 GB
Rec RAM:2 GB
Compute:1 vCPU
Disk Space:10 GB SSD

SuperTokens vs Auth0 / Okta Comparison Matrix

Evaluation CriteriaSuperTokens (Open Source)Auth0 / Okta (Proprietary)
Session ArchitectureOpaque token + anti-CSRF rotating tokensStandard JWT with refresh tokens
User Data Ownership100% in your own PostgreSQL / MySQLStored in Auth0 cloud databases
Pricing EscalationFree self-hosted core$23+/month starting at 1,000 active users
INTERACTIVE TCO MODELEstimated Rate: $138/user/mo

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

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

SuperTokens (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

✓Rotating Session Tokens
✓Email/Password & Passwordless
✓Pre-built React UI Components
✓Multi-Tenancy Support

Self-Host SuperTokens 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.

SuperTokensApache-2.0

Open source alternative to Auth0 and AWS Cognito

Difficulty: Easy15,347 ⭐
Configure Parameters
docker-compose.supertokens.yml
version: "3.8"
services:
  supertokens:
    image: registry.supertokens.io/supertokens/supertokens-postgresql:latest
    ports:
      - "${PORT:-3567}:3567"
    environment:
      POSTGRESQL_CONNECTION_URI: "postgresql://postgres:${DB_PWD:-postgres}@db:5432/supertokens"
    depends_on:
      - db
  db:
    image: postgres:15-alpine
    environment:
      POSTGRES_PASSWORD: ${DB_PWD:-postgres}
      POSTGRES_DB: supertokens

Frequently Asked Questions: Self-Hosting SuperTokens

How do I self-host SuperTokens using Docker Compose?

You can deploy SuperTokens (supertokens/supertokens-core) 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 SuperTokens compare to Auth0 / Okta?

SuperTokens is an open-source, self-hosted alternative to Auth0 / Okta built with Java, TypeScript, React. Unlike Auth0 / Okta ($35 - $240+ / month (Penalties on MAU)), SuperTokens 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 SuperTokens?

For production self-hosting (Easy difficulty tier), we recommend at least 2 GB RAM (minimum 1 GB), 1 vCPU, and 10 GB SSD storage, which typically costs $4 - $6/mo (e.g. Hetzner CX22 or DigitalOcean).

Is SuperTokens free for commercial business use under the Apache-2.0 license?

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

README INTEGRATION // REPO EMBED

Embed Official SuperTokens 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:SuperTokens Badge
Markdown Embed (GitHub / GitLab)
[![OSSMatrix Alternative](https://ossmatrix.com/api/badge/supertokens)](https://ossmatrix.com/project/supertokens)
HTML Embed (Docs / Landing Pages)
<a href="https://ossmatrix.com/project/supertokens" target="_blank" rel="noopener noreferrer"><img src="https://ossmatrix.com/api/badge/supertokens" alt="SuperTokens on OSSMatrix" /></a>
SIMILAR REPOSITORIES // PEER COMPARISON

Compare SuperTokens with Other Self-Hosted Alternatives

All Auth0 / Okta Alternatives →