Quickstart and Installation¶
This page gets a local Moraine stack running on macOS or Linux.
Install¶
The recommended install path is the PyPI package with uv:
Upgrade through the same tool manager:
If you prefer release bundles, run the installer:
The bundle installer places binaries in ~/.local/bin by default and writes
~/.moraine/config.toml when that file does not already exist. Add
~/.local/bin to PATH if your shell does not find moraine.
Start Moraine¶
Start the local stack:
Check service health:
Open the monitor UI:
Run agent sessions normally. As Moraine indexes session files, the monitor and status output should show fresh ingest activity.
Add MCP Retrieval¶
Moraine MCP search runs as a local stdio MCP server. Each agent harness starts
moraine run mcp when it needs the tools, so keep the Moraine stack running
with moraine up.
By default moraine up also starts a single shared MCP server for the host,
and each moraine run mcp proxies to it instead of booting a full server per
session — this is what keeps many concurrent agents cheap. Registration is
unchanged; if the shared server is not running, moraine run mcp falls back to
an embedded server automatically. See
Agent MCP Search → Install.
Add Moraine to Codex globally:
Add Moraine to Claude Code for all projects:
Add Moraine to Hermes:
The MCP server uses the same config resolution rules as the rest of Moraine, with
MORAINE_MCP_CONFIG taking precedence over the generic MORAINE_CONFIG.
For Cursor, Kimi CLI, Pi, project-scoped Claude Code, and other clients, see
Agent MCP Search.
Common Commands¶
| Command | Purpose |
|---|---|
moraine up |
Start ClickHouse, ingest, the monitor UI, and the shared MCP server. |
moraine up --mcp |
Force-start the shared MCP server (also on by default). |
moraine status |
Print service and ingest health. |
moraine logs |
Show recent service logs. |
moraine logs ingest --lines 500 |
Show recent ingest logs. |
moraine db migrate |
Apply database migrations. |
moraine db doctor |
Check ClickHouse connectivity and schema health. |
moraine down |
Stop managed services. |
Install From Source¶
Source builds are useful for development and local testing:
git clone https://github.com/eric-tramel/moraine.git
cd moraine
cargo build --workspace --locked
MORAINE_SOURCE_TREE_MODE=1 cargo run -p moraine -- up
MORAINE_SOURCE_TREE_MODE=1 tells the control command to run service binaries
from target/debug. For installed binaries, keep the service binaries together
or set MORAINE_SERVICE_BIN_DIR to the directory containing moraine-ingest,
moraine-monitor, and moraine-mcp.
Stop¶
Stop the local stack when you are done: