Architecture
MantleOS is a self-hosted brain: one server, one Postgres database as the source of truth, and an app as the window you work through.
The shape
MantleOS app (web, Desktop) Claude and other MCP clients \ / HTTPS: /api and /api/mcp | MantleOS server: web + runner + workers <-- email, Telegram, calendars | Postgres + object store (file bytes)- The app is what you click: MantleOS on the web and MantleOS Desktop. It talks to the server only over
/api. - The server is the engine. It holds the data, runs the agents and answers MCP clients.
The parts of the server
| Part | What it does |
|---|---|
| Web | Serves every /api route and the MCP endpoint at /api/mcp |
| Runner | Runs each assistant turn, the memory work (summaries, facts, digests) and heartbeats. A turn survives a restart and carries on |
| Workers | One per job, for example email sync, Telegram, files, calendars and event reminders |
| Postgres | Every item, search index, meaning vector, fact and job queue |
| Object store | The bytes of files and attachments (RustFS, or any S3) |
| Parser | Reads every uploaded file (documents, drawings, images, the sound of a video) in its own container, with a memory limit and no internet access |
| Helpers | A headless browser for PDF export |
Optional services add a local embedder and code sandboxes (Optional services).
Everything is a node
An email, a file, a note, a page, a table, a contact or an event is one row in one nodes table, arranged in a tree. One table gives one search, one access rule and one place where memory grows. When a node is added or changed, the database signals the runner, which reads it and updates the memory (How MantleOS remembers).
One brain, one owner
Each server is one brain with one owner. Every person gets their own login, and their workspaces decide what they read and change; Postgres row rules enforce it (Workspaces). Two brains talk only through federation (Sharing and federation).
Example: one question
You ask in the app, “What did the plumber quote?”
- The app sends the message to
/api, and the web part queues the turn. - The runner gathers memory: the matching email, its facts, recent chat.
- The model answers, calling tools if it needs them.
- The app shows the reply as it streams, with the email as its source.
Every step is recorded in Traces (Traces, debug and integrity).
Next
- Choose how to install
- Deep developer reference: architecture.md