Skip to main content
Glama
README.md
<p align="center">
  <a href="https://omnimem.org"><img src="docs/images/omnimem-logo.png" alt="OmniMem" width="420"></a>
</p>

<p align="center">
  <a href="https://github.com/richarvey/OmniMem/stargazers"><img src="https://img.shields.io/github/stars/richarvey/OmniMem?style=flat" alt="GitHub stars"></a>
  <a href="https://github.com/richarvey/OmniMem/releases/latest"><img src="https://img.shields.io/github/v/release/richarvey/OmniMem" alt="Latest release"></a>
  <a href="https://hub.docker.com/r/richarvey/omnimem"><img src="https://img.shields.io/docker/pulls/richarvey/omnimem" alt="Docker pulls"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/licence-MIT-green" alt="MIT licence"></a>
  <a href="https://code.squarecows.com/ric/omnimem/actions?workflow=checks.yml"><img src="https://code.squarecows.com/ric/omnimem/raw/branch/badges/coverage-v7.svg" alt="Test coverage"></a>
</p>

<p align="center"><sub><a href="https://omnimem.org">omnimem.org</a> · Developed on <a href="https://code.squarecows.com/ric/omnimem">Squarecows</a>, mirrored to <a href="https://github.com/richarvey/OmniMem">GitHub</a> · <a href="https://github.com/richarvey/OmniMem/issues">Issues on GitHub</a></sub></p>

**Stop living the same session twice.**

Every coding agent session starts from zero. It doesn't know your project. It doesn't remember what failed last week. It has no idea you lost an evening working out why WebKitGTK quietly ignores a redirect from a custom URL scheme.

So you explain everything again, and the agent confidently suggests the exact thing that didn't work. Same alarm, same song. You're Bill Murray and your agent is Punxsutawney.

OmniMem fixes that. It gives your AI agent a memory that lasts across sessions, projects and machines, over MCP, so it works with whichever agent you like. It runs on your own kit and it's free.

```
claude> answer the settings form with a 303 redirect

⚠ WARNING: previously abandoned approach

  303 from omnimem://: WebKitGTK never follows it (effort: 4/5)
  → answer with a page that replaces itself instead
```

That warning came from memory, not luck. A mistake you've already paid for doesn't get to charge you twice.

> [!NOTE]
> OmniMem 7 is one app in place of the four containers 6.x ran. The installers for every platform are on the [releases page](https://github.com/richarvey/OmniMem/releases/latest). Upgrading from an earlier 7? See [Upgrading](docs/upgrading.md). Running 6.x? See [Coming from 6.x](#coming-from-6x): the 6.x Docker stack stays on the `v6.7.x` branch, and its one-line installer still works.

---

## One program, two ways to run it

OmniMem 7 is a single binary. The MCP server, the memory engine, the embedding model, RSS ingestion and the database all live in one process, with your memories in one SQLite file. No containers to wrangle, no database server to babysit.

- **On your desktop** it sits in the tray (or the menu bar on a Mac). The icon tells you it's running, copies the MCP address for you, and opens the settings panel in your browser, where you can browse memories, review skills, edit your feeds, take backups and change settings.
- **On a server** it's `omnimem serve`: a systemd service from the `.deb` or `.rpm`, or a container, configured with environment variables (one `.env` file for the service), with the same settings panel at `/admin` once you've signed in.

<p align="center">
  <img src="packaging/flatpak/screenshots/dashboard.png" alt="The settings panel's dashboard: counts of memories by kind, recent activity and what needs a look" width="820">
</p>
<p align="center">
  <img src="packaging/flatpak/screenshots/search.png" alt="Searching memories in the settings panel, with each hit's score" width="406">
  <img src="packaging/flatpak/screenshots/graveyard.png" alt="The graveyard: abandoned approaches, why each failed and what worked instead" width="406">
</p>

The embedding model (all-MiniLM-L6-v2 on ONNX Runtime) runs locally. Nothing leaves the machine unless you add an Anthropic API key for the optional Claude Haiku features: fact extraction, query expansion, deeper contradiction checks and RSS summaries.

---

## Install

Everything is on the [releases page](https://github.com/richarvey/OmniMem/releases), each file with a `.sha256` beside it.

| Where | Download | What you get |
|---|---|---|
| Windows 10 and 11 (x64) | `OmniMem-<version>-x64.msi` | The tray app, installed for you alone with no administrator needed. Not signed yet, so SmartScreen asks first: **More info**, then **Run anyway** |
| macOS 13.4 or later (Apple silicon) | `OmniMem-<version>-arm64.dmg` | The menu bar app: drag it to Applications. There's no Intel build. `omnimem-<version>-macos-arm64.tar.gz` is the bare binary |
| Linux desktop (amd64, arm64) | `omnimem-desktop-<version>-linux-<arch>.flatpak` | The tray app with everything it needs: `flatpak install --user` the file. `omnimem-desktop-<version>-linux-<arch>.tar.gz` is the same app for systems without Flatpak, needing GTK 3 and libayatana-appindicator3 |
| Linux server (amd64, arm64) | `omnimem_<version>_<arch>.deb`, `omnimem-<version>-1.<x86_64\|aarch64>.rpm` | The headless server as the `omnimem` systemd service, configured in `/etc/omnimem/omnimem.env`, with its data in `/var/lib/omnimem`. `omnimem-<version>-linux-<arch>.tar.gz` has an `install.sh` for other distributions |
| Docker (amd64, arm64) | `richarvey/omnimem:<version>` | The same server as a container, with one `/data` volume. See [the Docker guide](guides/docker.md) |

Linux builds need glibc 2.38 or newer: Debian 13, Ubuntu 24.04, Fedora 39 and later.

Then point your agent at `http://127.0.0.1:8765/mcp`. In the desktop app the tray menu does it for you: **Add to Claude Code** and **Add to Claude Desktop** check first so OmniMem is never added twice, and **Copy MCP URL** covers everything else. By hand, for Claude Code, that's:

```bash
claude mcp add --transport http --scope user omnimem http://127.0.0.1:8765/mcp
```

Or as a Claude Code plugin, which adds the same server:

```
/plugin marketplace add richarvey/OmniMem
/plugin install omnimem@omnimem
```

The server hands its own usage guide to every agent that connects, so there's no instructions file to copy around. The [quick start](docs/quick-start.md) covers the rest.

---

## What it remembers

Five kinds of memory, all searched together when your agent recalls something:

- **Episodic**: the decisions you made, the bugs you fixed, the patterns you found. The hard-won stuff you shouldn't have to relearn every morning.
- **Project context**: your stack, goals and current state, so the agent turns up briefed instead of cold.
- **Knowledge**: articles from RSS feeds you pick, fetched on a schedule, embedded and stored (and summarised by Claude Haiku if you've given it a key). A feed can also feed a compiled skill directly.
- **Preferences**: rules about how you like to work ("always update the README after a feature lands"), picked up from your conversations and surfaced when they apply.
- **Skills**: SKILL.md documents compiled from your experience in a domain, so the agent works your way from the first prompt. Nothing changes without your say-so. See [the skill compiler](docs/skill-compiler.md).

The top result might be a decision from six months ago on another project, yesterday's fix, or an article that landed on Tuesday night. It doesn't matter where it came from, as long as it's useful.

---

## What makes it different

It isn't a key-value store with an MCP wrapper. OmniMem tries to behave the way memory actually does: things fade, they sometimes contradict each other, and the hard-won stuff earns its place.

- **[Hooks for Claude Code](docs/claude-code-hook.md)**: memory that works without the agent choosing to use it, because mostly it doesn't. `omnimem hook` puts the project's briefing in the opening context of every session, stops a tool call that repeats a known dead end before it runs (handing back what failed and what worked instead), and records what a session changed when it ends. `omnimem install-hooks` sets them up. Over ten paired runs on one task, every attempt at the abandoned approach was stopped, no treated run hit a failing test suite against 8 of 10 without, and it cost 27% less.
- **[The graveyard](docs/features.md#the-graveyard)**: every dead end is logged with what you tried, why it failed and how long it cost you. The agent checks it before suggesting a library or pattern.
- **[Experience scoring](docs/features.md#experience-scoring)**: something that took four attempts and a weird workaround to crack is gold. The harder it was, the more readily it comes back.
- **[Memory lifecycle](docs/features.md#memory-is-not-binary)**: `ACTIVE → DEPRIORITISED → ARCHIVED → DELETED`. "Forget about X" usually means stop bringing it up, not wipe it from existence.
- **[Contradiction detection](docs/features.md#contradiction-detection)**: a quick check on every write, and a deeper look with Claude Haiku when you want one.
- **[Semantic deduplication](docs/features.md#semantic-deduplication)**: near-duplicates get flagged as they're written and cleaned up in bulk with `find_duplicates()`.
- **[One-call briefing](docs/features.md#session-briefing)**: `briefing()` hands over project context, experience stats, stale memories, new articles, contradictions and skill suggestions in one go.
- **[The skill compiler](docs/skill-compiler.md)**: turns reinforced lessons and dead ends into loadable skills, behind a propose-and-accept gate so a one-off opinion can't quietly become policy.
- **[Auto-maintenance](docs/features.md#automatic-maintenance)**: duplicates archived, contradictions flagged, expired articles tidied, all in the background.
- **[Licence and provenance](docs/memory-types.md#common-fields)**: every memory records whether it can be redistributed and who's speaking (you, the agent, or a source it retrieved), so a later session can tell evidence from inference.
- **[Trust](docs/features.md#trust)**: whether OmniMem believes a memory, not just whether it shows it. A fact it extracted for itself waits for you to confirm it, one side of a confirmed contradiction is marked disputed, a memory a newer one replaced folds into it, and one you've judged wrong never comes back. Only you can confirm or reject, in the settings panel or the terminal, never an agent.

The ranking behind every recall:

```
score = similarity x surface_score x recency x experience_weight x date_boost x trust
```

Similarity on its own isn't enough, so lifecycle state, age, how hard a lesson was to learn, whether it happened on the date you asked about and whether it's believed all get a say. What gets dropped as irrelevant is decided on similarity alone.

---

## Works with any MCP agent

One memory for all of them: [claude.ai](guides/claude-ai.md), [Claude Code](guides/claude-code.md), [Claude Desktop](guides/claude-desktop.md), [Cursor](guides/cursor.md), [GitHub Copilot](guides/github-copilot.md), [GitLab Duo](guides/gitlab-duo.md), [AWS Kiro](guides/kiro.md), [OpenCode](guides/opencode.md), [Mistral Vibe](guides/vibe.md), [OpenAI Codex CLI](guides/codex.md) and [Open Design](guides/open-design.md). 49 tools, served over streamable HTTP.

Run it on one machine and put it behind a reverse proxy, and every laptop and agent you use shares the same memory. A shared token covers your own clients; OAuth 2.1 with a login page covers claude.ai and anything else that signs in. See [multiple machines](docs/remote-access.md).

---

## How it fits together

```mermaid
flowchart LR
    agent["AI agent<br/>Claude Code · claude.ai · Cursor · ..."]
    user["You, in the settings panel"]

    subgraph omnimem["omnimem (one process)"]
        mcp["MCP server<br/>streamable HTTP · token · OAuth 2.1"]
        panel["Settings panel<br/>/admin · its own sign-in"]
        rss["RSS scheduler"]
        enrich["Enrichment worker"]
        engine["Memory engine<br/>recall · lifecycle · skills"]
        embed["Embedder<br/>ONNX Runtime"]
        store[("SQLite file<br/>vectors searched in memory")]
    end

    agent -- ":8765/mcp" --> mcp
    user --> panel
    mcp --> engine
    panel --> engine
    rss --> engine
    enrich --> engine
    engine --> embed
    engine --> store
```

Over the network it answers `/mcp`, the OAuth routes, `/healthz` and the settings panel at `/admin`, and that's the whole list. The panel signs people in itself (an MCP token never opens it), wants HTTPS from anywhere but the same machine, and `ADMIN_PANEL=false` turns it off. More in [the architecture doc](docs/architecture.md) and [the settings panel](docs/settings-panel.md).

---

## Self-hosted, open source, yours

It runs on your own kit. No vendor lock-in, and no context shipped off to someone else's servers.

- **One file** holds your memories. Back it up the way you back up any file, or use `dump_to_file()` for a portable JSON export.
- **Local embeddings**: no API calls to turn text into vectors, and no GPU needed.
- **Linux on x86_64 and arm64**, so it's as happy on a Raspberry Pi or a Graviton box as on your laptop, plus Windows on x64 and Macs on Apple silicon.
- **MIT licensed**: fork it, extend it, run it wherever you like.

---

## Coming from 6.x?

OmniMem 6 was a Docker Compose stack: Valkey, a Python MCP server, a web UI and an RSS worker. Version 7 does the same job as one program, and your memories come with you:

1. Take a backup on 6.x with `dump_to_file()`.
2. Import it with `omnimem import <file>`, or restore it from the settings panel's Backups page. Every memory gets re-embedded from its text (roughly 8 ms each), which also brings back any memory 6.x had stopped finding.

The tools, the vectors and your compiled skills behave as they did, so nothing needs retuning. Recall scoring has three deliberate changes since 6.x: recency declines from day one rather than staying flat for 90 days (older memories rank a little lower; nothing extra is dropped), an abandoned outcome no longer scores 0.1, and recording an abandonment no longer suppresses anything. Your agents just need their URL changing from `/sse` to `/mcp`. 3.x backups import the same way. If your 6.x install is a clone of this repository, run `git checkout v6.7.x` in it before you next `git pull`: `main` is 7 now and has no Compose file. The [quick start](docs/quick-start.md) has the details, and 6.x itself carries on in the `v6.7.x` branch.

---

## Documentation

| | |
|---|---|
| [Quick start](docs/quick-start.md) | Installing, building from source, moving from 6.x, connecting your agent |
| [Hooks for Claude Code](docs/claude-code-hook.md) | Briefing at session start, dead ends stopped before they run, sessions recorded |
| [Configuration](docs/configuration.md) | Every setting, for the desktop app and headless installs |
| [Features in depth](docs/features.md) | Lifecycle, graveyard, experience scoring, dedup, contradictions, briefing |
| [The skill compiler](docs/skill-compiler.md) | Compiling experience into loadable skills |
| [MCP tool reference](docs/mcp-tools.md) | All 49 tools |
| [RSS and knowledge](docs/rss-knowledge.md) | Passive knowledge ingestion and promotion |
| [Multiple machines](docs/remote-access.md) | Reverse proxies, OAuth 2.1 for claude.ai, troubleshooting |
| [Settings panel](docs/settings-panel.md) | The panel at `/admin`, page by page |
| [Upgrading](docs/upgrading.md) | What changes between 7 releases, and when to back up first |
| [Architecture](docs/architecture.md) | The process, the recall pipeline, design decisions |
| [Atlas evidence](docs/atlas-evidence.md) | Each [Agent Memory Atlas](https://neoneye.github.io/agent-memory-atlas/systems/omnimem/) mark, the code that earns it and the test that fails without it |
| [Memory type specs](docs/memory-types.md) | The storage model, field by field |
| [Connection guides](guides/) | Per-agent setup |
| Deployment guides | [Docker](guides/docker.md) · [macOS](guides/omnimem-setup-macos.md) · [Raspberry Pi](guides/omnimem-setup-raspberry-pi.md) · [AWS](guides/omnimem-setup-aws-linux.md) · [GCP](guides/omnimem-setup-gcp-linux.md) · [Linux + Tailscale Funnel](guides/omnimem-setup-linux-tailscale.md) |

Per-namespace specs, if you want to know exactly what gets stored and by whom: [overview](docs/memory-types.md) · [episodic](docs/memory-episodic.md) · [project](docs/memory-project.md) · [knowledge](docs/memory-knowledge.md) · [preference](docs/memory-preference.md) · [skill](docs/memory-skill.md)

---

## Contributing

Found a bug or want something? [Open an issue on GitHub](https://github.com/richarvey/OmniMem/issues). The code is developed on [Squarecows](https://code.squarecows.com/ric/omnimem), where pull requests are welcome, and mirrored to GitHub.

It's a Cargo workspace (Rust 1.91 or newer): `cargo test` runs the suite without needing GTK, and `scripts/desktop-check.sh` builds and smoke-tests the desktop app in a container. The `scripts/*-package.sh` scripts build each installer locally the way CI does. New MCP tools, extra scoring multipliers and other embedding models are all fair game.

---

## Licence

MIT. Free to use, fork and modify, with no strings.

---

*Built by Ric Harvey @ [SquareCows Ltd](https://squarecows.com), an AI and automation consultancy for people who'd rather own their tools.*

TDQS

B3.1/5.0

Scored across 49 tools

Disambiguation3/5

Several clusters have genuinely fuzzy boundaries: deprioritise vs archive vs forget vs end_validity vs suppress_topic all reduce or remove a memory's visibility, and deprioritise_project/delete_project/reinstate_project mirror them at project scale. remember vs remember_document vs record_experience and log_abandoned vs record_experience also overlap, though the long descriptions do a reasonable job of steering selection. recall/recall_index/recall_detail are a defensible progressive-disclosure trio rather than redundancy.

Naming Consistency3/5

The dominant convention is snake_case, but the pattern itself is mixed: many tools are bare verbs or nouns (health, version, remember, recall, forget, archive, reinstate, retag, reindex, bless, briefing), while others are verb_noun (set_licence, set_provenance, compile_skill, get_skill, list_projects). Readable throughout, but an agent cannot reliably infer a tool's name from its intent.

Tool Count2/5

At 49 tools this is well past the point where each tool earns its place for a single memory server; the surface spans memories, projects, skills, knowledge feeds, experience tracking, licences, backups and audit. Several tools are clearly niche (reindex kept only for 6.x compatibility, why_did_you_mention, queue_status, log_abandoned), inflating the count without expanding the core capability.

Completeness4/5

Coverage is unusually thorough for the inferred domain: memory lifecycle (remember, recall, deprioritise, archive, reinstate, forget, retag), temporal validity, experience recording, project contexts with bulk operations, skill compilation/discovery/loading, knowledge promotion, licence/provenance classification, contradiction resolution and backup/restore. The main gap is that there is no straightforward way to edit a memory's content in place — retag re-embeds nothing and re-remembering with force is the workaround.

Maintenance

ActivityActive
ResponsivenessNo recent community issues