Memory for AI agents that tracks what is believed, when, and why, and refuses to decide what is true
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/troybrandonc-bit/Omem && cp Omem/*.md ~/.claude/agents/Subagents overview
# OMEM
[](https://github.com/troybrandonc-bit/Omem/actions/workflows/ci.yml)
[](https://pypi.org/project/omem-infrastructure/)
[](https://pypi.org/project/omem-infrastructure/)
[](LICENSE)
**Memory for AI agents that tracks what is believed, when, and why, and refuses
to decide what is true.**
OMEM is a memory layer for AI agents. Instead of dumping text into a vector
store and hoping for the best, it tracks what each agent believes over time and
handles contradictions explicitly, so an agent can reason about what it knows,
when it learned it, and why.
It runs locally with no external services and no dependencies to install.
```bash
pip install omem-infrastructure && omem-server
```
Docs: **[infrastructure.omem-cloud.com](https://infrastructure.omem-cloud.com)**
· [Quickstart](QUICKSTART.md) · [Security](SECURITY.md) · [Contributing](CONTRIBUTING.md)
## What makes it different
Most agent memory is a list of facts. When two facts conflict, one silently
overwrites the other and the history is gone. OMEM keeps both, tracks which one
is currently believed, and can tell you why. A few things it does that a plain
vector store does not:
- **Belief state over time.** Every fact has a state (believed, contradicted,
unknown) that the engine computes from the evidence, not a static row.
- **Contradiction handling.** Conflicting information is surfaced, not lost.
Claims named `X` and `not:X` are treated as opposed automatically; for anything
else, `mem.contradict("prefers_annual", "prefers_monthly")` says so once. OMEM
never decides two claims disagree by reading them, because that judgment is
what would stop the same question having the same answer a year later.
- **Provenance.** Ask why something is believed and get the chain that led there.
- **Cross-agent memory.** Memory is private to an agent by default; you choose
what to share with a team or the whole project.
- **Semantic recall.** Finds relevant memories even when the wording differs
from how they were stored.
- **A learning loop.** Memories that prove useful rank higher over time.
- **Self-healing that refuses.** OMEM records failures and runs repairs under
policy, and will not run a repair nobody authorised. A model can propose a
plan; only actions registered in code execute, and risk class comes from
OMEM's registry rather than from the plan claiming its own. See
[Self-healing](#self-healing).
## Quick start
You need Python 3.9 or newer. No other dependencies.
**Option 1: install from PyPI (server included).**
```bash
pip install omem-infrastructure
omem-server
```
Upgrading from an earlier version? `pip install --upgrade omem-infrastructure`.
Plain `pip install` on a package you already have reports "Requirement already
satisfied" and does nothing, which is a quiet way to keep running the version
you were trying to leave. `python -c "import omem; print(omem.__version__)"`
says what you actually have.
That starts the server on http://127.0.0.1:8787 and, on first run, prints a
project id and an API key: no signup call, no dashboard visit, nothing to
configure. Paste them straight in:
```python
from omem import Memory
mem = Memory(api_key="omem_sk_...", base_url="http://127.0.0.1:8787",
project="proj_...")
mem.remember(agent="support", about="customer:1", claim="prefers_annual_billing")
print(mem.believes(about="customer:1", claim="prefers_annual_billing"))
# -> BELIEVED_TRUE
```
**[QUICKSTART.md](QUICKSTART.md)** takes that to a contradiction and a provenance
chain in about five minutes, which is where the difference from a vector store
actually shows.
**Option 2: run from this repo.**
```bash
cd server
python api.py # or: python api.py 9000 for a different port
```
Same server, same first-run project id and key, started from source. Setup takes
about a minute either way. Two differences worth knowing:
- **The database lands in a different place.** From source it is
`server/data/omem.db`; `omem-server` writes `./omem-data/omem.db` in whatever
directory you ran it from. `OMEM_DB` overrides either.
- **The dashboard needs building once.** The wheel ships a built copy; a clone
does not, so the server prints "dashboard not bundled" until you run
`cd web && OMEM_STATIC=1 npm run build`. The API is identical either way.
## Self-healing
OMEM records what breaks and repairs it under policy. This is infrastructure for
your agents, not something OMEM does to itself: you register a component and the
hooks it can be repaired with, and OMEM owns the memory, the safety boundary and
the lifecycle.
The part that matters is what it refuses. A model may *propose* a repair plan;
OMEM decides what is permitted. Only action types registered in code can execute,
risk class comes from that registry and never from the plan, high-risk actions
need explicit approval, and a repair is not successful until it verifies.
```python
mem.healing.report_health("vector-index", "healthy", "12,400 vectors")
result = mem.healing.handle(
error={"component": "vector-index", "error_type": "StaleShard"},
plan={"diagnosis": "replica fell behind after a partition",
"confidence": 0.8,
"actions": [{"type": "rebuild_index"}, {"type": "exec_shell"}]},
)
result["status"] # -> "denied"
result["decisions"] # rebuild_index: permitted (low risk)
# exec_shell: unknown action type (not registered)
```
Nothing ran. The plan is kept with the reason each action was permitted or
refused, so the refusal is a record rather than a silence. Error text and model
output are data here, and neither can name an action into existence.
Everything else you would want is enforced too: failures are fingerprinted so a
thousand identical errors are one entry, a repair storm is capped per component,
one recovery per component is claim-enforced in the database, secrets are
stripped before anything is persisted, and an internal error escalates rather
than retrying wild.
The **Self-healing** screen in the dashboard shows component health, the failure
record, and how far each repair got, with the step it stopped at marked, and the
diagnosis it acted on. `server/healing.py` is the whole subsystem and is worth
reading if you are deciding whether to trust it.
## The dashboard
The dashboard ships inside the package. Start the server and open the same
address, **http://127.0.0.1:8787**. It is all there: memory, conflicts, the
belief graph, the timeline, logs and the audit trail. No Node, no second
process, no second port.
In local mode (the default) there is no login; it opens on the project the
server created for you. On a server running `OMEM_AUTH=password` it shows a
sign-in form instead.
It is a static export of `web/`, the only UI in this repository, copied into the
wheel at build time. To work on it:
```bash
cd web
npm install
npm run dev # http://localhost:3000, proxying to the API on 8787
```
and to rebuild the bundled copy, `OMEM_STATIC=1 npm run build`.
## Authentication
OMEM runs in one of two modes, and the difference matters before you put it
anywhere other than your own machine.
**`OMEM_AUTH=local`**: the default, and what makes the quickstart a minute.
There is no login: the dashboard provisions a session against the server it can
see. That is only safe while nothing else can reach the server, so local mode
**refuses to bind a non-loopback address**. If you mean it (a container whose
ports are published to `127.0.0.1`, a single-user VM), set
`OMEM_ALLOW_INSECURE_BIND=1`.
**`OMEM_AUTH=password`**: required for a server other people can reach.
Accounts have passwords, hashed with PBKDF2-SHA256. Signing up with an address
that already has a password returns 409 rather than a session, TOTP is enforced
where it is enrolled, and the server refuses to start unless `OMEM_MASTER_KEY`
is set to something other than its development default.
```bash
export OMEM_AUTH=password
export OMEM_MASTER_KEY="$(python3 -c 'import secrets;print(secrets.token_urlsafe(32))')"
omem-server
```
### TLS
Point `OMEM_TLS_CERT` and `OMEM_TLS_KEY` at a certificate and the server speaks
HTTPS itself (TLS 1.2 floor). Setting only one is a startup error, not a quiet
fall back to plaintext. A terminating proxy is still better at scale, but
running without one no longer means running in the clear.
### Encrypting memory at rest
```bash
pip install "omem-infrastructure[encryption]"
export OMEM_ENCRYPT_AT_REST=1
export OMEM_MASTER_KEY="$(python3 -c 'import secrets;print(secrets.token_urlsafe(32))')"
```
Encrypts the operations log, ingested source payloads and the quoted evidence
behind each memory with AES-GCM. Existing plaintext rows keep working, so it can
be switched on for a database that already has data. It refuses to start on the
development master key, and refuses to run without a real AEAD library rather
than falling back to the stdlib keystream used for OAuth tokens.
**Lose the key and the data is gone**: there is no recovery path, and no
rotation tooling yet.
## Refusing ungrounded writes
Every belief carries a grounding verdict: `GROUNDED` if its provenance reaches a
recorded event, `UNGROUNDED` if it only ever rests on other claims. That verdict
is returned on every read, so a caller can filter on it.
Filtering only helps the caller who remembers to filter. Set
`OMEM_REQUIRE_GROUNDED=1` and OMEM refuses the write instead:
```bash
OMEM_REQUIRE_GROUNDED=1 omem-server
```
```python
mem.remember(agent="support", about="customer:1", claim="prefers_annual")
# -> 422 R_UNGROUNDED: cite `because` evidence that reaches a recorded event
mem.remember(agent="support", about="customer:1", claim="prefers_annual",
because=What people ask about Omem
What is troybrandonc-bit/Omem?
+
troybrandonc-bit/Omem is subagents for the Claude AI ecosystem. Memory for AI agents that tracks what is believed, when, and why, and refuses to decide what is true It has 0 GitHub stars and its last recorded update is dated 2026-08-26.
How do I install Omem?
+
You can install Omem by cloning the repository (https://github.com/troybrandonc-bit/Omem) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is troybrandonc-bit/Omem safe to use?
+
Our security agent has analyzed troybrandonc-bit/Omem and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains troybrandonc-bit/Omem?
+
troybrandonc-bit/Omem is maintained by troybrandonc-bit. The last recorded GitHub activity is dated 2026-08-26, with 2 open issues.
Are there alternatives to Omem?
+
Yes. On ClaudeWave you can browse similar subagents at /categories/agents, sorted by popularity or recent activity.
Deploy Omem to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/troybrandonc-bit-omem)<a href="https://claudewave.com/repo/troybrandonc-bit-omem"><img src="https://claudewave.com/api/badge/troybrandonc-bit-omem" alt="Featured on ClaudeWave: troybrandonc-bit/Omem" width="320" height="64" /></a>More Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.