Backed by YCombinator

The open-source
Auth0 alternative.

We build your sign in page so you don't have to.
AuthN, authZ, and user management in just 5 minutes.

Next.js setup wizard:
$ npx @stackframe/init-stack@latest
Documentation

Secure access,
Seamless integration.

Password, SSO, 2FA, and more

Beautifully styled components to help you get started quickly. No need to worry about design and internal logic.

Get Started

Headless or headful UI

Integrate our shadcn/ui components, or build your own with our headless SDK.

Learn More

JWTs without the JWTs

Stack manages JWTs and access tokens for you, so you get the performance benefits without ever having to think about them.

Learn More

Organizations & teams

Manage B2B customers with orgs & teams, supporting email invitations, team components, and management tools.

Learn More

Permissions & RBAC

Define arbitrary permission trees and org-wide roles.

Learn More

3rd-party OAuth

Access third-party OAuth APIs such as Gmail or OneDrive without having to think about OAuth flows or token refreshes.

Learn More

REST API

Use our client and server APIs to build custom front- and backends.

Learn More

Impersonation

Impersonate users to debug issues or help your customers.

Go To Dashboard

Webhooks

Sync with Slack, your database, or any other service.

Learn More

Beautiful Next.js integration

We pride ourselves with our lean and responsive design. Your users will love it, and your developers too.

Next.js Integration

Easily integrate your Next.js application with our components and features.

Sch

<SignIn />

Effortlessly integrate user authentication with our intuitive SignIn component. Enable quick and secure account access with minimal setup.

Sch

Email Templates

Customize and automate your communications with pre-built Email Templates. Send professional welcome messages, password resets, and notifications effortlessly.

Sch

<AccountSettings />

Provide users with comprehensive account management. Allow them to update personal details and adjust security preferences in one convenient place.

Sch

<UserButton />

Enhance user experience with the UserButton. Let users easily manage their profiles and access account settings with a single click.

Sch

Here's how we compare

Among its competitors, Stack Auth is unique by being open-source,developer-friendly, and feature-rich.

SupabseSupabse
Auth0Auth0
Auth.jsAuth.js
ClerkClerk
KeycloakKeycloak
SuperTokensSuperTokens
Anyone elseAnyone else

Stack vs Supabse

Why not both?

Stack is more than just authN

Instead of just logging you in, Stack also provides authZ (orgs/teams, permissions), impersonation, better emails, user management, and more.

Use Stack + Supabase DB

Get the best of both worlds by dropping in Stack as a replacement for Supabase Auth, but keep using the Supabase DB features you love.

Learn more

Join the community

As an open-source project, we rely on organic growth.
Here's what our users have to say.

  • It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair.
    Charles Dickens
    Charles Dickens

    A Tale of Two Cities

Managed hosting

Simple plan for everyone

Self-hosting is always free.

Stack

For Individuals

$0/ month

10k Monthly active users

Unlimited active teams

Unlimited projects

1 dashboard admins

Custom SSO branding

SSO with OIDC/OAuth

Basic support

Get Started
Team

For early startups and small teams

$49/ month

50k Monthly active users

Unlimited active teams

Unlimited projects

3(then $39 each) dashboard admins

Custom SSO branding

SSO with OIDC/OAuth

Basic support

Priority support

Get Started
Growth

For growing businesses and teams

$299/ month

Unlimited Monthly active users

Unlimited active teams

Unlimited projects

5(then $39 each) dashboard admins

Custom SSO branding

SSO with OIDC/OAuth

SSO with SAML

Basic support

Premium support

Get Started
Getting started with Stack

Everything you need to know

Can I integrate Stack into my existing project?

Yes! It is very straightforward! Stack does not require any special architecture and can merge well into any Next.js project that uses the App router.

How can I integrate Stack into my backend?

Stack provides a Next.js server side SDK that you can just import and use. If you are using a different language or framework, you can use our REST API.

How do I sync user data with my database?

For most of the time, you don't need to sync user data with your database. You can store JSON data in the user object itself. However, if you really need to sync data, you can use our webhooks.

Does Stack support SSO with SAML?

Yes! Let's get in touch and we can help you.

Can I deploy Stack on my own servers?

Yes! Stack is fully open-source and you can self-host it on your own servers.

What kind of support do you offer?

We offer a range of support from data migration to custom on-premise deployments.

The developer-friendly authentication platform

Start building with Stack today

Secure your application with the best open-source authentication and user management platform.

Get Started