Skip to main content
Aegis Stack

CI Documentation Python 3.11+ Copier
Monthly Downloads Total Downloads
Commits per Month Total Commits Last Commit

Aegis Stack is an open-source CLI that scaffolds production-ready FastAPI applications and lets you add, remove, and update components and services on existing projects without rewrites.

You need to ship reliable software, but management only gave you 2 weeks.

No time for health checks, proper testing, or clean architecture. Just enough time for duct tape and hope.

What if you could go from idea to working prototype in the time it takes to grab coffee?

Aegis Stack Quick Start Demo

Ship FastAPI apps that grow with you.

Aegis Stack scaffolds complete FastAPI applications with auth, payments, workers, AI, and a built-in control plane. Add what you need, remove what you don't, update when the framework improves.

Quick Start

uvx aegis-stack init my-api

init opens a full-screen guided setup that walks through every component and service with explanations. Prefer the classic one-line prompts? Pass --quick.

More examples
# Skip the guided setup, use the classic one-line prompts
uvx aegis-stack init my-api --quick

# Add user authentication out of the box
uvx aegis-stack init user-app --services auth

# Add background processing + scheduling
uvx aegis-stack init task-processor --components scheduler,worker

# Everything wired up at init
uvx aegis-stack init full-app --services auth,payment,comms --components worker,scheduler

CLI in 9 languages: English, German, Spanish, French, Japanese, Korean, Russian, Simplified Chinese, Traditional Chinese. Run e.g. uvx aegis-stack --lang zh init my-api, or set AEGIS_LANG=zh.

Installation alternatives: See the Installation Guide for uv tool install, pip install, and development setup.

Customizing Your Stack

Aegis Stack spinning up a new project

Components are infrastructure pieces (database, workers, scheduler, cache). Services are business capabilities (auth, AI, payments, comms).

Don't worry about what you pick today. Add anything later with a single command, remove what you outgrow, no rework required.

Components

Component What you get
Backend FastAPI + lifecycle hooks, in-memory request metrics, API load testing for every route Always
CLI Typer, first-class system interface Always
Frontend Flet, ships with the Overseer system dashboard Always
Web Frontend Server-rendered pages at /: Jinja2 + htmx + Alpine, Tailwind/DaisyUI styling Optional
Cache Redis for caching, sessions, pub/sub Optional
Database Postgres (self-hosted or Neon serverless) or SQLite + SQLModel ORM Optional
Inference Local AI models via Ollama Optional
Ingress Traefik v3 reverse proxy with TLS Optional
Observability Pydantic Logfire tracing + metrics + logging Optional
Storage S3 object storage for the files an app keeps, SeaweedFS in dev Optional
Scheduler APScheduler with persistent jobs Optional
Worker Pluggable Arq, Taskiq, or Dramatiq Optional

Components Docs →

Services

Service What you get
AI Conversational agents, RAG, model catalog, TTS and STT (PydanticAI / LangChain across 7 providers) Optional
Auth Persistent sessions with refresh-token rotation, GitHub/Google sign-in, RBAC, multi-tenant Organizations Optional
Blog Markdown publishing with drafts, tags, and an Overseer editor Optional
Comms Transactional email (Resend) + SMS / voice (Twilio) Optional
Documents Content-addressed document store, deduped, with page-addressed extraction Optional
Insights Adoption metrics across GitHub, PyPI, Plausible, Reddit Optional
Payments Stripe checkout, subscriptions, refunds, disputes Optional

Services Docs →

Integrations

Aegis Stack is the orchestration layer. Services and components wire into best-in-class tools you already trust, so you keep your vendor choices and your data.

Anthropic Astral ChromaDB Dramatiq FastAPI Flet
GitHub Google LangChain Neon Ollama Plausible
Postgres Pydantic Reddit Redis Resend SQLite
Stripe Supabase Taskiq Traefik Twilio Typer

CI/CD for Your Stack

Every generated project ships with GitHub Actions and developer tooling pre-wired, so the first push to GitHub runs checks automatically, and one command wires up continuous deployment to your server.

CapabilityWhat you getStatus
CI WorkflowLint, type checking, and tests on every push and PR (parallel jobs, cached)Available
Code ScanningCodeQL static analysis on every PR and on a weekly scheduleAvailable
Pre-commitRuff, ruff-format, and type-check hooks (opt-in)Optional
Continuous DeployGenerates a dedicated SSH deploy key, installs it on your server, pushes secrets to GitHub, and scaffolds a deploy workflow (manual trigger by default)Optional

Deploying Your Stack

Capability What you get
Deploy CLI One-command deploys to any VPS over SSH (rsync + Docker), no PaaS lock-in Available
Server Setup aegis deploy-setup provisions Ubuntu, Debian, or Fedora boxes (Docker + firewall) Available
Backups & Rollback pg_dump before every deploy, retention policy, automatic rollback on failed health checks Available
TLS / HTTPS Let's Encrypt via the Traefik ingress component, zero config when a domain is set Optional

Deployment Docs →

Your Stack Grows With You

Your choices aren't permanent. Start with what you need today, add when requirements change, remove what you outgrow.

# Monday: Ship MVP
aegis init my-api

# Week 3: Add scheduled reports
aegis add scheduler --project-path ./my-api

# Month 2: Need async workers
aegis add worker --project-path ./my-api

# Month 6: Scheduler not needed
aegis remove scheduler --project-path ./my-api

# Stay current with template improvements
aegis update
Starter Add Later? Remove Later? Git Conflicts?
Others Locked at init Manual deletion High risk
Aegis Stack One command One command Auto-handled
Component Evolution Demo

Most starters lock you in at init. Aegis Stack doesn't. See Evolving Your Stack for the complete guide.

Overseer - Your Application's Control Plane

Overseer

Live Demo: sector-7g.dev/dashboard

Overseer is the embedded control plane that ships with every Aegis Stack project.

  • Live health of every component and service in one view
  • Worker queues, scheduled jobs, recent runs
  • Database schema, tables, and migration state
  • AI token usage and conversation history
  • Auth sessions and user activity
  • No external tooling, no vendor integrations, no setup

CLI - First-Class System Interface

CLI Demo

The Aegis CLI is a first-class interface to your running system. Not just a health check, but a full inspection layer.

  • Component-aware commands for every running subsystem
  • Inspect worker queues, scheduler runs, database state
  • Query AI usage, auth sessions, service configuration
  • Same data Overseer sees, terminal-native
  • Built into every generated project, no extra installs

Illiana - Optional System Operator

Illiana Demo

When the AI service is enabled, Aegis exposes an additional interface: Illiana, a conversational operator over your running system.

  • Ask questions in plain language about live system state
  • Backed by live telemetry from Overseer and the CLI
  • Optional RAG over your codebase for code-aware answers
  • Opt-in: only available when the AI service is on
  • Nothing in the stack depends on her being there

Powered By Aegis Stack

  • Aegis Pulse - Package analytics with honest decomposition (Total / Filtered / Human)
  • Sector 7G - Live demo: millions of tasks on a single $5 VPS, zero restarts
  • NWVault Revival - Searchable archive of the original Neverwinter Vault (2002-2014), built in 24 hours

Learn More

For The Veterans

Ron Swanson

No reinventing the wheel. Just the tools you already know, pre-configured and ready to compose.

Aegis Stack respects your expertise. No custom abstractions or proprietary patterns to learn. Pick your components, get a production-ready foundation, and build your way.

Aegis gets out of your way so you can get started.

Release files for aegis-stack 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aegis-stack 0.12.0
File Size Uploaded
aegis_stack-0.12.0.tar.gz 6.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for aegis-stack 0.12.0
File Interpreter ABI Platform
aegis_stack-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 MB

Release files / aegis_stack-0.12.0.tar.gz

Download URL aegis_stack-0.12.0.tar.gz
Size 6.7 MB
Tags Source
SHA-256 checksum
How to use checksums
5c7e0c38efc374d6fee8f2f649f9fc5001d5db747ef1b6c66775cab30e700f5d
BLAKE2b-256 checksum
How to use checksums
e0fc640a07891e0c7cbc2239cea268b641cdecb9f6a8952202a42430377601d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / aegis_stack-0.12.0-py3-none-any.whl

Download URL aegis_stack-0.12.0-py3-none-any.whl
Size 7.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
81792aaab034ad10cb20116b064ae3255570f77860d4985db3f0bf4e43fb0517
BLAKE2b-256 checksum
How to use checksums
b75758f04d672b5535d09aa8b08635af80cb64933837b885aa2b85a40f0de041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.1

2 release files

This release

0.12.0 This release

2 release files

0.11.1

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.11

2 release files

0.6.10

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page