Security & Privacy · Identity & Access Management (IAM)
SuperTokens
Self-hosted authentication and session infrastructure for application teams
SuperTokens is an open-core authentication provider for developers adding login, sessions, user administration, and identity features to applications. The core outside the ee directory uses Apache-2.0, while the ee directory has a separate license. Teams can self-host the free open-source features or use SuperTokens Cloud, priced at $0.02 per monthly active user and free below 5,000 users.
Key facts
- License
- Apache-2.0 outside ee; ee directory under separate license
- Main language
- Java, JavaScript, TypeScript
- Maintainer
- SuperTokens Inc.
- First released
- 2020
- Latest release
- v12.4.0, October 20, 2026
- GitHub stars
- 15,153, October 2026
- Hosted option
- Cloud at $0.02 per monthly active user, free below 5,000 monthly active users
What SuperTokens is
SuperTokens is an open-source authentication provider that began with two session-management blog posts in 2019. Advait Ruia and Rishabh Poddar appear as company leaders in SuperTokens podcasts and company material, while SuperTokens Inc. maintains the core repository. The project entered Y Combinator in summer 2020 and passed 10,000 GitHub stars during 2021 and 2022. The repository recorded 15,153 stars and listed more than 200 contributors in project material. SuperTokens says its software has secured more than 250 million identities and runs in more than 2,000 production applications. The company lists Root Ventures, Y Combinator Continuity, and WestWave among its investors, and says it raised additional venture capital in December 2023.
How it works
The practical model is three-part: a frontend SDK manages session tokens and login widgets, a backend SDK exposes sign-up, sign-in, sign-out, and refresh APIs, and SuperTokens Core handles authentication logic and database operations. Developers choose recipes for email and password, passwordless login, social login, phone login, session management, multi-factor authentication, roles, microservice authentication, and multi-tenancy. The application remains closely involved because frontend and backend SDKs are installed inside it. Teams can use the product for login, session management, or both, and can connect session management to another login provider. The dashboard lets administrators list users and modify sessions, metadata, roles, and account information.
Architecture and recent releases
The core service is written mainly in Java and uses an embedded Tomcat server, while application SDKs cover JavaScript, TypeScript, Node.js, Python, Go, React, React Native, and Vanilla JavaScript. The repository lists Java, JavaScript, and TypeScript among its languages, alongside build and markup files. SuperTokens supplies the core as an HTTP microservice, with Docker and a bundled JDK intended to make operation resemble other service deployments. Session verification commonly occurs in backend SDKs without contacting the Java core, according to the README. Version 12.4.0 was released on October 20, 2026, adding an opt-in admin connector, an admin request-statistics endpoint, a database-free liveness endpoint, concurrency reporting, and fixes for OAuth, WebAuthn, configuration, transactions, and container dependencies.
License and pricing
The current repository license says content outside the ee directory is available under Apache-2.0, while ee content uses the license defined in ee/LICENSE.md and third-party components retain their original licenses. Apache-2.0 grants commercial use, modification, redistribution, and derivative-work rights subject to its notices and license conditions. SuperTokens describes its commercial model as open core: open-source features remain free without self-hosted user limits, while larger-company features are paid. Cloud costs $0.02 per monthly active user and is free below 5,000 monthly active users. Multi-factor authentication costs $0.01 per monthly active user with a $100 monthly minimum, account linking costs $0.005 per monthly active user with the same minimum, and dashboard users cost $20 monthly after three free users.
Limitations and how it compares
SuperTokens is strongest when product engineers want authentication inside an application and control over user data, but its recipe model still creates service, database, upgrade, and integration responsibilities for self-hosting teams. Keycloak offers a broader established identity-server model, Zitadel supplies another open-source identity platform, and Auth0 shifts operations to a managed provider. SuperTokens also places some capabilities behind the separate ee license or paid plans, so teams needing multi-tenant organization features, machine-to-machine authentication, attack protection, or high-availability service options should check the commercial boundary first. Pick SuperTokens for application teams seeking SDK control, self-hosted deployment, a free core, and a managed cloud path.
Main features
- Authentication recipes. Supports email, passwordless, social, phone, and other login flows through application-configured authentication recipes.
- Session management. Provides session creation, refresh, verification, sign-out, and token handling through frontend and backend SDKs.
- User administration. The dashboard lists users and supports management of sessions, metadata, roles, and account information.
- Multi-factor authentication. Offers multi-factor authentication as a paid add-on with per-monthly-active-user billing and a $100 monthly minimum.
- Multi-tenancy. Supports tenant-aware authentication and organizational features through paid product capabilities.
- Account linking. Connects multiple authentication methods to one user account through a paid account-linking capability.
- SDK integrations. Provides frontend and backend SDKs for JavaScript, Node.js, Python, Go, React, React Native, and related stacks.
Self-hosting SuperTokens
SuperTokens runs as a core HTTP service on customer infrastructure, with Docker documented and a JDK bundled with the distributed binary or image. Applications install the relevant frontend and backend SDKs, configure the core connection, and use a customer database for authentication operations. The project does not publish one universal minimum CPU or RAM requirement in documentation. The README describes the core as a service that performs database operations, while session verification often remains inside backend SDKs. Pin compatible core and SDK versions, apply release migrations, and back up authentication and session data before upgrades. Review ee licensing before self-hosting paid capabilities.
Strengths
- Self-hosting keeps authentication data in infrastructure selected by the customer.
- Frontend and backend SDKs expose application-level control over login behavior.
- Open-source features remain free without self-hosted user limits.
- Managed Cloud offers an operational alternative to running the core service.
Drawbacks
- The ee directory uses a separate license from the Apache-2.0 core.
- Self-hosting requires responsibility for the core service, database, upgrades, and backups.
- Paid features and add-ons complicate comparisons with fully open-source identity servers.
What teams replace with it
Teams usually evaluate SuperTokens when they want to move off Auth0, Firebase Authentication, Amazon Cognito.
For side-by-side commercial comparisons, browse our alternatives hub.
Frequently asked questions
Is SuperTokens free?
Self-hosting the open-source features is free without a user limit. SuperTokens Cloud costs $0.02 per monthly active user and is free below 5,000 monthly active users. Multi-factor authentication and account linking have separate per-user charges with $100 monthly minimums, while dashboard users cost $20 per month after three free users. Other enterprise capabilities use contact-based pricing.
What license does SuperTokens use?
The current LICENSE.md places content outside the ee directory under Apache-2.0. The ee directory uses a separate license defined in ee/LICENSE.md, and third-party components keep their original terms. Apache-2.0 permits commercial use, modification, and redistribution subject to its conditions. The repository is therefore open-core and source available rather than uniformly Apache-2.0.
How do I self-host SuperTokens?
Run the SuperTokens Core HTTP service on customer infrastructure, commonly with Docker or the distributed binary, then install the matching frontend and backend SDKs in the application. Configure the core connection and database, apply required migrations, protect service access, and back up authentication and session data. The documentation does not define one universal minimum CPU or RAM requirement.
How does SuperTokens compare with Auth0?
SuperTokens places frontend and backend SDKs inside the application and offers self-hosting, while Auth0 primarily provides a managed identity service. SuperTokens gives teams more control over deployment and user-data location, but self-hosting adds operations and upgrade work. Auth0 reduces service-management duties and may suit teams prioritizing managed identity operations over application-controlled infrastructure.
Is self-hosted SuperTokens private?
A self-hosted deployment places authentication and session operations on infrastructure selected and operated by the customer. Privacy still depends on database permissions, encryption, service access, logs, backups, secrets, and retention settings. The Cloud option is managed by SuperTokens. Deployment choice changes who operates the service, while application configuration determines what data is stored and exposed.
Similar projects to compare
- KeycloakApache-2.0Keycloak is an Apache-2.0 identity and access management server for applications and services. It provides user federation, strong authentication, user management, fine-grained authorization, and OIDC and SAML integrations. Teams can run it from downloadable archives, a container image, or an operator. Red Hat also publishes a supported commercial build, while community deployments require operators to provide infrastructure, security configuration, databases, upgrades, and ongoing administration.
- ZitadelAGPL-3.0-only, with Apache-2.0 and MIT directory exceptionsZITADEL is an identity and access-management server for customer and workforce applications, offering OIDC, OAuth 2.0, SAML, passkeys, MFA, organizations, and APIs. The v3 and later repository is AGPL-3.0-only with selected Apache-2.0 and MIT exceptions; ZITADEL Cloud starts free and paid Pro starts at $100 monthly.
- AuthentikMIT (core), mixed repository; enterprise code under separate enterprise licenseAuthentik is an open-source identity provider for teams needing OIDC, OAuth2, SAML, LDAP, RADIUS, SCIM, and proxy access in one self-hosted service. Its core is MIT licensed, while enterprise code is separately licensed. There is no general hosted cloud product advertised, and enterprise pricing starts at $0.02 per external user monthly when billed annually.
- AuthgearApache-2.0Authgear is an Apache-2.0 open-source authentication and user-management platform maintained by Skymakers Digital Ltd. It supports self-hosting and Authgear Cloud, with a Free plan priced at $0 monthly. Documented capabilities include passwordless login, passkeys, MFA, social and enterprise login, SSO, user management, APIs, customizable interfaces, user import, and export.
- Better AuthMITBetter Auth is an MIT licensed, framework agnostic authentication and authorization framework for TypeScript. It embeds authentication in an application backend, supports application managed databases and stateless sessions, and offers email, password, social sign on, passkeys, magic links, usernames, and extensible plugins. Better Auth joined Vercel on July 7, 2026, while its open source framework remains framework and platform agnostic.
- CerbosApache-2.0Cerbos is an open-source authorization layer with a stateless Policy Decision Point that evaluates context-aware YAML policies for applications, gateways, workloads, services, and AI agents. It exposes HTTP and gRPC APIs, runs in customer infrastructure, and supports Git, disk, cloud, and database policy storage. Cerbos Hub adds hosted authoring, testing, distribution, and audit management from $25 per month.