Authzey is a CLI tool that helps you set up authentication in your Next.js apps in minutes, not hours. Stop fighting configuration files and boilerplate—let Authzey scaffold secure authentication so you can focus on building your product.
- 🚀 Zero-config setup — Interactive prompts guide you through the entire process
- 🔐 Multiple auth providers — Currently supports Better Auth, with more coming soon
- 🗄️ Database integration — PostgreSQL with Drizzle ORM support
- 🔑 OAuth providers — GitHub, Google, and Discord out of the box
- ⚡ Framework detection — Automatically detects your Next.js project configuration
# Using npx (recommended)
npx authzey
# Or install globally
npm install -g authzey
authzey- Node.js
>=18 - A Next.js project (App Router or Pages Router)
-
Navigate to your Next.js project directory:
cd your-nextjs-app -
Run Authzey:
npx authzey
-
Follow the interactive prompts to:
- Choose an authentication framework
- Select a database (PostgreSQL or SQLite)
- Pick an ORM (Drizzle)
- Configure OAuth providers (GitHub, Google, Discord)
-
Authzey will scaffold the necessary files and install dependencies for you.
| Framework | Status |
|---|---|
| Better Auth | ✅ Available |
| Auth.js | 🔜 Coming |
| Database | Status |
|---|---|
| PostgreSQL | ✅ Available |
| SQLite | 🔜 Coming |
| MySQL | 🔜 Coming |
| ORM | Status |
|---|---|
| Drizzle | ✅ Available |
| Prisma | 🔜 Coming |
| Provider | Status |
|---|---|
| GitHub | ✅ Available |
| ✅ Available | |
| Discord | ✅ Available |
| Microsoft | 🔜 Coming |
| Apple | 🔜 Coming |
Please make sure to read the Issue Reporting Checklist before opening an issue.
We are actively looking for contributors, no matter your skill level or experience. To contribute, check out CONTRIBUTING.md.
Authzey is licensed under the MIT License.