One identity and one permission model for your products, APIs, and agents.
Docs · Website · Discussions · Roadmap
AuthEngine is a self-hosted identity layer: one login, one set of organisations, one permission model, shared across every app, API, and agent you build.
- Identity for products — standard sign-in flow, session validation for APIs, per-organisation auth settings.
- Identity for agents — agents authenticate as trusted services and inherit the user's permissions; they cannot mint or escalate access.
Self-hosted. MIT license.
git clone https://github.com/auth-engine/auth-engine.git
cd auth-engine
docker compose up -d| Dashboard | http://localhost:3000 |
| API | http://localhost:8000/docs |
Log in with the super-admin credentials in docker-compose.yml. Full guide: Quick Start.
- Getting started
- How it fits together
- Local development
- Deployment
- Security
- Roadmap
- Contributing
- Community
- License
flowchart LR
user["People"]
ae["AuthEngine"]
app1["App A"]
app2["App B"]
api["APIs and agents"]
user -->|"sign in once"| ae
app1 -->|"Login with AuthEngine"| ae
app2 -->|"Login with AuthEngine"| ae
api -->|"is this still allowed?"| ae
| Piece | What it's for |
|---|---|
| API | Identity, organisations, permissions, login, session checks |
| Dashboard | Admin UI for operators and tenant admins |
| PostgreSQL | People, organisations, roles, keys |
| Redis | Sessions, rate limits, one-time login steps |
| MongoDB | Audit history |
Full picture: Architecture.
Recommended: databases in Docker, API and dashboard on your machine.
docker compose up -d postgres mongo redisAPI (Python 3.12+, uv):
cd apps/api
uv sync --extra dev
cp .env.example .env.local
uv run auth-engine migrate
uv run auth-engine seed
uv run auth-engine run --reloadDashboard (Node.js 20+):
cd apps/dashboard
cp .env.example .env.local
npm ci
npm run devEnv, secrets, seed, migrations, troubleshooting: Quick Start.
| Path | When |
|---|---|
| Docker Compose | Try the published images locally |
| Helm | Kubernetes / K3s |
| Terraform | AWS VPC + EC2 |
| Deploy scripts | Laptop VM or cloud VM |
Images: qniranjan01/authengine · qniranjan01/authengine-dashboard. Guide: Deployment.
Do not open a public GitHub issue for vulnerabilities. Email qniranjan.dev@gmail.com with subject AuthEngine Security Report (72-hour acknowledgement target). Policy: SECURITY.md.
Shipped: multi-tenant identity, permissions, Login with AuthEngine, social login, magic links, MFA, passkeys, API session checks, deploy path.
Next:
- First-class agent identities (agent roles/credentials, still capped by granted permissions)
- Automated tests beyond lint and typecheck
- More identity providers and operator features
Read Contributing. Look for good first issue.
- Fork and branch from
main. - Run the stack locally.
- Keep changes focused; search existing issues first.
- Never commit secrets.
PRs: API must be lint- and type-clean; dashboard lint and build must pass. Open against main.
| Discussions | Design talk, show-and-tell |
| Issues | Bugs, features, questions |
| Documentation | Guides and API reference |
MIT © 2026 Niranjan Kumar.