A wiki your agent can navigate
Plain markdown files in ~/.archivum, linked to each other, with an _index.md that lists them. Open them in any editor, or let your agent follow the links and search.
Archivum keeps what your agent learns as plain files on your machine: short notes, session transcripts and a small wiki. A background “dream” reviews them, corrects stale facts and proposes better memory. You read the diff and approve it.
npx archivum-cli init
Free and open source. No account. Dreaming runs on your own LLM key; nothing leaves your machine until you dream.
archivum recall "how do I run the tests?" \
--limit 3
Your agent writes notes and its sessions are saved as transcripts. A dream looks back over them with hindsight and proposes updates to a small wiki. The next session starts from the approved version.
Claude Code hooks or the MCP server save short notes and session transcripts to ~/.archivum on your machine. Known secret patterns are redacted before anything is written.
Notes and wiki pages are ranked with BM25 keyword search. The agent can also follow links between wiki pages from the index. No embeddings, no vector database.
When you run archivum dream, a model checks the wiki against your transcripts, fixes stale or wrong facts, merges duplicates and links related pages. It writes a proposal, and nothing changes until you apply it.
A short index of the wiki is loaded at session start, so your agent does not have to rediscover what earlier sessions already learned.
Run archivum init and it sets up the hooks and MCP server for the clients it finds. You can also wire things by hand, as shown here.
# set up hooks and the MCP server for the clients found
npx archivum-cli init
# later: review what your sessions taught the agent
archivum dream
archivum apply
dream proposes wiki changes with your own LLM key
apply writes them to the live wiki, as versions
{
"hooks": {
"SessionStart": [{ "hooks": [{
"type": "command",
"command": "npx -y archivum-cli hook session-start"
}] }],
"Stop": [{ "hooks": [{
"type": "command",
"command": "npx -y archivum-cli hook stop"
}] }]
}
}
SessionStart loads your context digest into the session
Stop saves the transcript for a later dream
codex mcp add archivum -- npx -y archivum-cli mcp
[mcp_servers.archivum]
command = "npx"
args = ["-y", "archivum-cli", "mcp"]
{
"mcpServers": {
"archivum": {
"command": "npx",
"args": ["-y", "archivum-cli", "mcp"]
}
}
}
remember / recall / forget
context() // short digest of the wiki
read_document / search_documents / list_documents / related_documents
memory_status / list_notes / document_history
list_proposals / show_proposal // review a dream, read-only
Notes are searchable right away. Dreams turn notes and transcripts into a small wiki and propose fixes. You decide what is applied, and everything stays in files you own.
Plain markdown files in ~/.archivum, linked to each other, with an _index.md that lists them. Open them in any editor, or let your agent follow the links and search.
Each write to the live wiki, from a dream you applied or from you, is recorded. See the history of a page and restore an earlier version.
0dream changes applied without you running apply
Anthropic by default, or any OpenAI-compatible endpoint, including a local router. Each run is estimated first, asks to proceed, and stops at the token budget you set.
Known patterns such as API keys and tokens are replaced in transcripts, notes and anything a dream writes, before they reach disk.
Replaced with [REDACTED] markers. This catches known patterns, not everything.
A dream only writes a proposal. Read the diff against your live wiki, then apply or reject it. A page changed since the dream started is skipped, not overwritten.
0
Accounts, servers or databases to run
4
Memory layers: transcripts, notes, wiki, context
7
MCP tools, plus a context resource
16
CLI commands, from init to restore
Archivum is open source software that runs on your machine. There is nothing to sign up for. The only thing that costs money is the model you choose to dream with, and you pay that provider directly.
~/.archivumarchivum retention to drop old dreamed transcriptsNot answered here? Read the docs or write to us.
A pass that reads your pending transcripts and notes alongside the current wiki, one analyzer per input and then one organizer. It checks what the wiki claims against what happened, corrects or marks stale facts, merges duplicates and links related pages. The result is a proposal you can diff, then apply or reject.
You do, through your own LLM key: Anthropic by default, or any OpenAI-compatible endpoint with tool calling, including a local router. archivum dream prints a rough estimate, asks before it proceeds and refuses runs estimated above your token budget. Without a key, dreaming does not run and nothing is sent anywhere.
Yes. It is an AI model working from your transcripts, so quality depends on the model you use and it can get things wrong. That is why changes are reviewed before they are applied, every applied write is a version you can restore, and transcripts are treated as untrusted data: dream agents only get document tools, with no shell and no network.
In ~/.archivum (or $ARCHIVUM_HOME), as markdown and JSON files, with one folder per space. Nothing leaves your machine except the calls to the LLM you configure when you dream. Dreamed transcripts are removed after 30 days by default.
BM25 keyword ranking over notes and wiki pages, plus the wiki’s index and links that the agent can follow. There are no embeddings and no vector database, so a query that shares no words with a memory will not find it.
The Claude Code hooks are built against its documented hook format. The MCP server speaks standard MCP over stdio, but it has not been tested in every MCP client. Agents without hooks can send transcripts with archivum log.
The simulation plays out memory and dreaming in your browser. Recorded mode uses a scripted example and runs no model. Live mode sends your chat text through this site’s server to a model, under usage caps paid by the site owner, and may be switched off.
Limited. The eval/ folder has a small synthetic check, not a benchmark, and it does not prove dreaming improves memory for your agent. Read the diffs before you apply them.