Aegis
The most robust authentication framework for Go developers. Simple, modular, and built for performance.
Terminal
# Install Aegis core
❯ go get github.com/theinventorylib/aegis
# Install the CLI tool
❯ go install github.com/theinventorylib/aegis/cmd/aegis@latest
# Export migrations for your database
❯ aegis migrate export --dialect postgres --output ./migrations
Engineered for control Modern Auth for Go
Aegis provides a lightweight core with a modular plugin architecture inspired by modern best practices.
Zero Magic
No hidden auto-migrations. You own your schema. Full transparency and control over your database.
Security First
Argon2id, CSRF protection, and secure sessions built-in. Following industry standard security patterns.
Performance
Type-safe Go API with minimal overhead. Optional Redis caching and efficient session tracking.
Core Features
Database Agnostic
Works seamlessly with PostgreSQL, MySQL, and SQLite. Use the database you already love with our minimal core schema.
Secure Sessions
Secure token-based sessions with refresh tokens, Redis caching support, and built-in CSRF protection for web apps.
Modular Plugins
Extend Aegis with official plugins for Email OTP, SMS, OAuth, JWT, Admin management, and multi-tenant Organizations.
Powerful CLI
Manage your database migrations easily. Export migrations in SQL, Goose, or golang-migrate formats for core and any active plugins.
Developer Friendly
No auto-migration magic. Fully typed Go API designed for clarity and control. Focus on building your app, not your auth.
OpenAPI Integration
Auto-generate interactive API documentation with Scalar UI using our official OpenAPI plugin.
Official Plugins
Extend Aegis with our growing ecosystem of official plugins. Each plugin is self-contained with its own schema, handlers, and migrations.
Email & SMS
OTP-based verification and email+password authentication for secure user onboarding.
OAuth
Social login support for Google, GitHub, and more popular providers.
JWT
Standardized token generation, validation, and rotation for API authentication.
Admin
Administrative endpoints for user and session management with audit logging.
Organizations
Multi-tenant support with teams, roles, and member management.
OpenAPI
Interactive documentation for your auth endpoints with Scalar UI.
Ready to get started?
Install Aegis and build secure authentication in minutes. Join the community and start building.
