Aegis

Your whole hosting stack, owned by one platform.

Web, mail, DNS, databases, queues and backups — installed, configured and supervised without a single distro package.

Aegis is a self-hosted hosting platform written from scratch in Python. It ships its own portable CPython, installs every application under /aegis/apps from sources pinned with SHA256, and keeps state separate and versioned. The system Python is never used.

See what it runs $ aegis install
  • Bundled runtime
  • No distro packages
  • Pinned inputs
The cubes

What Aegis installs and owns

Each cube owns one application: its sources, templates, configuration and commands.

Web serving and language runtimes

nginx with one PHP-FPM pool per account, plus every runtime the host needs, side by side and versioned.

nginxPHPPythonNodeRubyGo

Databases and queues

Each engine gets its own data directory, its own port and its own account. A backup is a task, not a script.

PostgreSQLMariaDBMongoDBRedisMemcachedBeanstalkd

Mail, end to end

Postfix, Dovecot, OpenDKIM and PostsRSD configured as one system: one password, one maildir, one quota.

PostfixDovecotOpenDKIMPostsRSD

Zones, records and certificates

BIND is authoritative and certbot answers DNS-01 through the same TSIG key. A renewal is a task with a row.

BINDCertbotTSIGACME DNS-01

An agent that knows the platform

An aegis agent with the manual as skills, tools that act on the host, and a turn engine that runs a prompt to completion.

DeepSeekxAIOpenAI-compatible
Operating it

Everything it does is a file you can read.

No apt step, no hidden state, no magic at boot. Aegis renders configuration from templates, writes it where you can see it, and applies it as a task you can inspect afterwards.

Config is the interfaceEvery area is a TOML file merged into one config object. What the panel edits is what the CLI reads.
Every write is a taskThe panel enqueues a row; a daemon executes it, streams the output and keeps the result.
State is separateInstalled apps in /aegis/apps, generated config in /aegis/config, mutable data in /aegis/data, logs in /aegis/logs.
Reproducible from the repoEvery artifact comes from the pinned manifest and vendor sources, with checksums.
How the pieces fit together
18
cubes shipped
1
bundled runtime
0
distro packages
4
state trees
Aegis AI

An agent that lives inside the platform.

The AI module gives Aegis an agent with the manual as skills and a set of tools that act on the host — from the command line or in the background.

Knows the platformThe manual is loaded as skills, so the agent answers from the same documentation you read.
Acts on the hostTools for packages, services, configuration and files — each call recorded, each result visible.
Runs to completionA turn engine drives the prompt across steps, streaming output to the CLI or in the background.
Your providerDeepSeek and xAI today; any OpenAI-compatible endpoint plugs in through config/ai.toml.
Works with your agents
DeepSeekxAIOpenAI-compatible
streamed or background
The stack

Everything it runs, it runs itself.

24 cubes · pinned and checksummed

Each cube owns one application: its sources, templates, configuration, commands and its own documentation page. Nothing is delegated to the distribution.

nginxweb
PHPruntime
Pythonruntime
Noderuntime
Rubyruntime
Goruntime
PostgreSQLdatabase
MariaDBdatabase
MongoDBdatabase
Rediscache
BSTBeanstalkdqueue
MCDMemcachedcache
PFXPostfixsmtp
Dovecotimap
DKMOpenDKIMsigning
RSDPostsRSDrewrite
BNDBINDdns
Certbottls
SPVSupervisorprocesses
FTPVSFTPDftp
CMPComposerphp deps
Gitvcs
FFmpegmedia
IMGImageMagickimages
Principles

The machine can be rebuilt from the repository.

Four rules decide every design choice in Aegis. If a feature breaks one of them, it does not ship.

Bundled runtimeA portable CPython lives in runtime/python/<version> with current as a symlink. The system Python is never used.
No distro packagesApplications are installed under /aegis/apps, not through apt. Sources are pinned in vendor/apps with SHA256.
Versioned, separate stateInstallations, mutable data, generated config and logs live in four separate trees, each with one owner.
The user decidesNo invented behaviour and no unrequested refactors. The platform does exactly what it is told, and records it.
Questions

Aegis in brief.

What is Aegis?

A self-hosted hosting platform built from scratch in Python. It owns the machine it runs on — web, mail, DNS, databases, queues and backups — and ships with its own runtime so it does not depend on the host distribution.

Does it use the distribution packages?

No. Applications are installed under /aegis/apps from sources pinned in vendor/apps with a SHA256 for every artifact. A portable CPython in runtime/python/<version> replaces the system interpreter.

Where does everything live?

Panel code in /etc/aegis, installed applications in /aegis/apps, generated configuration in /aegis/config, mutable data in /aegis/data and logs in /aegis/logs.

How do I install something?

One command: aegis install nginx installs the application and its libraries with no prompts. With no argument, aegis install runs the guided setup: checks, config, toolchain, then one step per missing application.

Can I use it without the panel?

Yes. The panel is a FastAPI application that reads the same configuration and databases as the command line. Every write in the panel becomes a task row, so the CLI can replay and inspect it.

What can it run today?

nginx, PHP, Python, Node, Ruby and Go; PostgreSQL, MariaDB, MongoDB, Redis, Beanstalkd; Postfix, Dovecot, OpenDKIM, PostsRSD; BIND and Certbot; Supervisor and VSFTPD; plus Composer, Git, FFmpeg and ImageMagick.

Start here

Install Aegis on your own machine.

Walk the platform $ aegis install

Python, one repository, no distro dependencies. Read the manual first, then install.