Open Source · Self-Hosted · Yours

Give Your Agents
Durable Memory

#004
Decision
hash: 8f3a
#005
Insight
hash: c19e
#006
Checkpoint
hash: 44bd
#007
Next Thought
append only

Every thought stores the hash of the thought before it.

MentisDB is a durable, self-hosted memory engine for AI agents. Persistent across sessions. Shared across your entire fleet. Owned by you — not your AI provider.

Free & open source · MIT License · Runs on your laptop or server

Get running in 30 seconds

0.4.3.8

Install MentisDB

One command installs the daemon. Your AI tools connect to it instantly. Memory runs on your machine. Yours to keep.

cargo install mentisdb && mentisdbd

Requires Rust. Install Rust →

🍎 macOS users: make sure Xcode Command Line Tools are installed first — xcode-select --install

Then connect your AI tool:

Claude Code
claude mcp add --transport http mentisdb http://127.0.0.1:9471
OpenAI Codex
codex mcp add mentisdb --url http://127.0.0.1:9471
GitHub Copilot CLI

Add to ~/.copilot/mcp-config.json:

{ "mentisdb": { "type": "http", "url": "http://127.0.0.1:9471" } }
Qwen Code
qwen mcp add --transport http mentisdb http://127.0.0.1:9471

The Problem with AI Memory Today

Without durable memory, your agents are brilliant in the moment — and amnesiac by design.

🧠

Agents Have Amnesia

Every time an AI agent's context window fills up, it forgets everything. Decisions, lessons, constraints — gone. Your team keeps re-explaining what took weeks to learn.

🔒

Your Memories Are Held Hostage

When you store memory through a vendor's API, they control it. Change providers, hit rate limits, or lose your account — and the accumulated intelligence of your agent fleet disappears.

🔁

Teams of Agents Can't Learn Together

Each agent session is isolated. One agent discovers a critical bug pattern, but the next agent starts from zero. There's no shared brain, no institutional memory, no compounding.

What You Can Do

MentisDB transforms isolated, amnesiac agents into a coordinated, self-improving intelligence network.

🔁

Zero Context Loss

When an agent's context window fills, it writes a Summary checkpoint to MentisDB, compacts, reloads, and continues without losing a single decision. Chat history is ephemeral. MentisDB is permanent.

🚀

Fleet Orchestration

One project manager agent decomposes work, dispatches parallel specialists pre-warmed with shared memory, and synthesizes results wave by wave. Your fleet thinks together.

Session Resurrection

Any agent loads the chain and immediately knows where the project stands, what decisions were made, what traps were hit, and what comes next — without re-reading code or re-asking the human.

📚

Self-Improving Agents

Agents upload updated skill files after learning something new. A skill checked in at the start of a project is better by the end of it. The fleet's collective knowledge compounds over time.

🔧

Harness Swapping

The same durable memory works across every AI coding tool. Claude Code, Copilot CLI, Cursor, Codex — connect any MCP-capable host to the same running daemon. Switch tools without losing context.

🏢

Organizational Memory

Multiple agents, multiple roles, multiple owners write to the same chain. New engineers or new agents boot up, load the chain, and inherit everything the team learned — from day one.

One Memory. Many Agents.

MentisDB is an append-only memory ledger. Agents can share a single chain for collective intelligence — or run entirely private chains. One per agent, one per project, one per team, one per company. You decide the boundaries.

Agent: apollo
Decision
#004 · architect
Agent: astro
LessonLearned
#005 · backend
Agent: orion
Checkpoint
#006 · pm
You / Any Agent
Next thought...
→ append only

Every thought in the chain links to the previous one via its hash — a tamper-evident record of your fleet's collective intelligence.

🔗

Append-Only Ledger

Every thought is permanently recorded. Nothing is ever overwritten or deleted. Run one shared chain for your whole fleet, or create isolated chains per agent, project, team, or organization — the history of every chain is always accessible and replayable.

👤

Every Thought is Attributable

Each memory carries a stable agent_id. You always know who decided what, when. Filter by agent, by type, by time — the provenance is always there.

🔄

Agents Learn Across Sessions

One agent's LessonLearned becomes another agent's operating rule. Specialists share what they know. The collective intelligence of the fleet outlives any individual context window.

🔐

Hash-Chained Integrity

Every thought hashes into the chain. If history were tampered with, the chain breaks. Your agent fleet's memory is tamper-evident by design — no silent rewrites, ever.