Stack Auth
Open-source authentication platform for Next.js and React, built as an alternative to Auth0 and Clerk.
Open source alternative to:
Stack Auth is an open-source, self-hostable authentication and user management solution designed specifically for modern web apps built with Next.js and React. It is a developer-friendly alternative to Auth0 and Clerk, offering pre-built UI components, server and client SDKs, and a hosted dashboard.
It supports email/password login, magic links, OAuth social providers (Google, GitHub, Facebook, and more), session management, multi-tenant organizations, and role-based access control — all configurable with minimal code. Stack Auth ships with fully functional sign-in, sign-up, and account pages that you can drop into your Next.js app in minutes.
As an open-source project it can be self-hosted on your own infrastructure, giving you full control over user data. It is also available as a managed cloud service for teams that prefer a hosted option.
Categories:
Build with:
Looking for contributors
This project is actively seeking help, join the community!
Repository details
Updated 6/26/2026, 7:00:34 AM
View RepositoryRepository activity
Compare Stack Auth with
Similar open source alternatives
Keycloak
Open-source identity and access management with SSO, OAuth2, OIDC, and SAML support for modern applications.
Auth0
Authentik
Open source identity provider and SSO solution that replaces Auth0 and Okta with a self-hostable, flexible authentication platform.
Auth0
SuperTokens
Open-source authentication solution, an alternative to Auth0 and Firebase Auth that you can self-host.
Auth0