Aegis deploys and supervises apps on your own server. A single Rust daemon with embedded SQLite gives you health-checked deploys with automatic rollback, process supervision, a web dashboard and an HTTP API.
[!NOTE] Aegis is pre-1.0 and early. Deploys, rollbacks, the HTTP API, the dashboard and resource limits are tested in CI on Linux; there are no production results yet. Benchmarks and a soak test run in CI on shared GitHub runners; see benchmarks and soak tests for what they do and donβt show. See the scorecard and feature maturity.
curl -fsSL https://raw.githubusercontent.com/shivam411/Aegis/main/install.sh | bash
| Feature | Description |
|---|---|
| β‘ Single Binary | Daemon with embedded SQLite. No PostgreSQL, Redis, or Docker required. |
| π Safe Deployments | Build in isolation (a failed build never touches the live app), health-check the new release, and roll back automatically if it doesnβt come up. Fully zero-downtime cutover needs the planned reverse proxy (roadmap). |
| π§Ή Automated Version Retention | Keeps the last N releases on disk (default: 2). Older versions auto-pruned after each deploy. |
| β° Scheduled Auto-Deployments | Background scheduler triggers builds at specific daily hours (e.g. 02:00 AM). |
| π οΈ Runtime Detection | Detects Node.js, Rust, Go, Python, Bun, Deno from project files. CI deploys Node.js apps; other stacks arenβt deploy-tested yet. |
| π₯οΈ Terminal Dashboard (experimental) | aegis-tui is a keyboard-driven terminal dashboard: apps with status, uptime, restarts and CPU/memory; releases, deployments and live logs per app; a filterable live event stream; and confirmed start/stop/restart, deploy and rollback. |
| π Event-Sourced Audit Trail | Every mutation is an immutable domain event. Full replay on startup. |
| π Instant Rollbacks | Roll back to any retained release without rebuilding from source. |
| ποΈ Live Resource Limits | Per-app CPU and memory limits with Linux cgroups (v2 or v1), changed from dashboard sliders without restarting the app. Live and 7-day charts, OOM and throttling alerts. |
| π Web Dashboard | Deploy, roll back, stream logs, watch resources and audit everything from the browser. |
| π§ͺ Jobs & Live URL Check | Cron and on-demand commands in the live release; after a deploy Aegis requests your URL and rolls back (keeping the HTTP status) if it isnβt up. |
| π Prometheus & Grafana (opt-in) | Switch on /metrics from the dashboard and import the ready-made Grafana dashboard. |
| π₯ Users, Roles & App Access | Viewer, deployer and admin accounts; limit an account to a list of apps (or all), and hide sensitive apps behind a password. |
| π Notifications & Webhooks | Slack alerts for failed deploys, crashes and resource pressure; signed GitHub push webhooks trigger deploys. |
curl -fsSL https://raw.githubusercontent.com/shivam411/Aegis/main/install.sh | bash
The installer automatically detects your OS and CPU architecture, downloads the latest release from GitHub, and installs to ~/.local/bin/. The CLI binary is aegis-cli; the installer also links aegis to it, which is the name used in these docs (both work).
Download the latest binary for your platform from GitHub Releases:
| Platform | Archive |
|---|---|
| Linux x86_64 | aegis-linux-amd64.tar.gz |
| Linux ARM64 | aegis-linux-arm64.tar.gz |
| macOS x86_64 | aegis-darwin-amd64.tar.gz |
| macOS ARM64 (Apple Silicon) | aegis-darwin-arm64.tar.gz |
| Windows x86_64 | aegis-windows-amd64.zip |
tar -xzf aegis-linux-amd64.tar.gz
mv aegis-daemon aegis-cli aegis-tui ~/.local/bin/
ln -sfn aegis-cli ~/.local/bin/aegis # optional: the name the docs use
git clone https://github.com/shivam411/Aegis.git
cd Aegis
cargo build --release
cp target/release/aegis-daemon target/release/aegis-cli target/release/aegis-tui ~/.local/bin/
ln -sfn aegis-cli ~/.local/bin/aegis
Requires Rust 1.75+, SQLite3, and protoc.
# 1. Initialize project in your repository
aegis init
# 2. Verify project configuration
aegis validate
# 3. Build, health-check and deploy (rolls back automatically on failure)
aegis deploy
# 4. Follow the app's output
aegis logs -f
# 5. Roll back if needed
aegis rollback
See what is tested today on the Scorecard.
Features are tiered as Experimental, Validated (tested in CI), Dogfooded or Production Proven. No feature is Dogfooded or Production Proven yet. Full list with links to the tests: docs/feature_maturity.md.
| Feature / Capability | Maturity Level | Evidence |
|---|---|---|
| Deploy pipeline, health checks, automatic and manual rollback | π‘ Validated | lifecycle.rs, e2e-smoke.sh |
| Process supervisor, logs, daemon restart recovery | π‘ Validated | runtime/process tests, e2e-smoke.sh |
| Event store & event bus | π‘ Validated | core/event_store tests |
| HTTP API, auth, API tokens, TLS, GitHub webhooks | π‘ Validated | core/web/tests/ |
| Web dashboard | π‘ Validated | ui-tests/tests/ (Playwright) |
| Live CPU/memory limits (cgroup v2) | π‘ Validated | kernel.rs, resources.spec.js |
PM2 & systemd migration (aegis migrate) |
π§ͺ Experimental | Minimal; untested |
replay, inspect --at, incident, investigate, upgrade |
π§ͺ Experimental | Placeholder output today; being reworked |
Templates for soak, chaos, performance, migration, compatibility and dogfooding reports are in validation/_templates/. None of those runs has been done yet.
Aegis follows CQRS-Lite event-sourcing principles. Commands mutate state by appending immutable events to SQLite. The EventBus broadcasts events to the ProjectionEngine for fast in-memory TUI rendering.
βββββββββββββββββββ Command ββββββββββββββββ
β CLI / TUI / β βββββββββββββββββββΊ β Aegis Daemon β
β Git Webhooks β ββββββββ¬ββββββββ
βββββββββββββββββββ β
(Emits Event)
βΌ
βββββββββββββββββββ
β Event Bus β
ββββββββββ¬βββββββββ
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββ
βΌ βΌ βΌ
βββββββββββββββββββββ βββββββββββββββββββββ βββββββββββββββββββββ
β Event Store β β Projection Engine β β Plugin Manager β
β (SQLite DB) β β(In-Memory Caches) β β (Slack / GitHub) β
βββββββββββββββββββββ βββββββββββββββββββββ βββββββββββββββββββββ
Clone β Install β Build β Test β Package β Verify β Promote
Each stage runs in an isolated build directory. If any stage fails, the live version remains untouched.
For a deep dive, see the Architecture Documentation.
| Command | Description |
|---|---|
aegis status |
Daemon version, project count, running apps |
aegis init |
Detect the runtime, write aegis.toml, register the project |
aegis validate |
Check aegis.toml and show the effective settings |
aegis deploy [project] |
Build and deploy, showing each stage; --release, --repo, --commit, --detach |
aegis rollback [project] |
Switch back to the previous (or --version) release without rebuilding |
aegis list |
Projects with status, live release, PID and restart count |
aegis logs [target] [-n N] [-f] |
App output (stdout, stderr and supervisor messages) |
aegis start / stop / restart [target] |
Control an appβs process; a stopped app stays stopped across daemon restarts |
aegis releases [project] |
Release history with status and commit |
aegis deployments [project] |
Deployment history with status, failing stage and reason |
aegis timeline [project] |
The projectβs recent events |
aegis schedule |
Configure daily auto-deployment (--hour 0-23) |
aegis emit-event |
Emit a custom event to the event store |
aegis stream-events |
Stream live event bus notifications |
target is a process id or a project id/name; without it, commands use the project in ./aegis.toml.
With [web] enabled = true, open http://127.0.0.1:8420/ (through an SSH tunnel, a reverse proxy, or built-in TLS) and sign in as admin. From the browser you can:
The dashboard has light and dark themes, works on a phone, and has keyboard shortcuts (press ?). New users get a short guided tour, and every section has a ? button that explains it. The dashboard guide walks through every page with screenshots.

Set [web] enabled = true and the daemon also serves an authenticated JSON API, with live Server-Sent Events, on 127.0.0.1:8420. Sign in as admin (the first password is in <data_dir>/initial-admin-password) or use API tokens. Reach it through an SSH tunnel, a reverse proxy with HTTPS, or built-in TLS. See docs/http_api.md, docs/security.md and docs/openapi.json.
curl -fsSL https://raw.githubusercontent.com/shivam411/Aegis/main/install.sh | sudo bash -s -- --server
This installs Aegis as a hardened systemd service running as a dedicated aegis user, with the web API enabled on loopback. Add --domain aegis.example.com to prepare it for a reverse proxy such as Caddy.
Aegis reads aegis.toml from the working directory:
[daemon]
host = "127.0.0.1"
port = 50051
database_path = "aegis.db"
log_level = "info"
max_retained_versions = 2
[!NOTE] Aegis is pre-1.0 and has not had a beta yet. New architectural changes follow the RFC Process. Summary:
public_roadmap.md; detailed plan:roadmap_web_control_plane.md.
| Phase | Scope | Status |
|---|---|---|
| 0β1 | Real deploys, health checks, rollback, supervision; HTTP API | β Shipped (tested in CI) |
| 2 | Authentication, TLS, GitHub webhooks, hardened server install | β Shipped (tested in CI) |
| 3β4 | Web dashboard; live CPU/memory monitoring and limits | β Shipped (tested in CI) |
| 5 | Env vars and secrets, domains + reverse proxy + TLS, webhook setup and config-as-code in the UI | βΆ Now |
| 6 | Users and roles, backup/restore, self-update, terminal UI, Docker runtime | π Next |
| Later | Multi-node fleet | π Planned |
Not yet measured: production use, soaks longer than a few hours, performance on real hardware, and migration accuracy. Benchmarks and 5/60-minute soaks run in CI (benchmarks.md). See the scorecard.
git clone https://github.com/shivam411/Aegis.git
cd Aegis
cargo check --workspace # Compile check
cargo test --workspace # Run all tests
cargo clippy --workspace # Lint
cargo fmt --all # Format
# Dashboard browser tests (needs Node 18+; uses a debug build of the daemon)
cargo build -p aegis-daemon
cd ui-tests && npm ci && npx playwright install chromium && npx playwright test
Aegis/
βββ core/ # Daemon, config, event store, projection, scheduler
βββ deployment/ # Release, builder, strategy, health, rollback
βββ runtime/ # Process supervisor, polyglot engine, logs
βββ git/ # Repository operations, webhooks
βββ ui/ # CLI (clap + tonic), TUI (ratatui + crossterm)
βββ integrations/ # Slack, GitHub, Docker plugins
βββ docs/ # Documentation (GitHub Pages)
βββ ui-tests/ # Playwright tests for the web dashboard
βββ scripts/ # Uninstall helper and the end-to-end CI script
βββ validation/ # Report templates (no results recorded yet)
βββ install.sh # One-line installer
βββ .github/ # CI, release, and pages workflows
Licensed under the MIT License.
Built with β€οΈ in Rust.