Metadata-Version: 2.4
Name: omem-os
Version: 0.0.3
Summary: Governed Agent Memory — prove what agents knew, when, and who can see it. Memory, state, audit, retention, and tenant hardening for production agents.
Author-email: Mohit Kumar Rajbadi <mohitkumarrajbadi@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/mohitkumarrajbadi/omem
Project-URL: Repository, https://github.com/mohitkumarrajbadi/omem
Project-URL: Issues, https://github.com/mohitkumarrajbadi/omem/issues
Project-URL: Changelog, https://github.com/mohitkumarrajbadi/omem/releases
Keywords: ai,agent-state,memory,rag,vector-search,embeddings,llm,agents,state-management,checkpointing,memory-os,multi-agent,agentic-ai,context-optimization
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24.0
Requires-Dist: click>=8.0.0
Requires-Dist: xxhash>=3.0.0
Requires-Dist: mcp>=1.0.0; python_version >= "3.10"
Provides-Extra: fast
Requires-Dist: faiss-cpu>=1.7.4; extra == "fast"
Requires-Dist: numba>=0.58.0; extra == "fast"
Provides-Extra: embeddings
Requires-Dist: sentence-transformers>=2.2.0; extra == "embeddings"
Provides-Extra: ingest
Requires-Dist: pypdf>=4.0; extra == "ingest"
Provides-Extra: langgraph
Requires-Dist: langgraph>=0.2.0; extra == "langgraph"
Provides-Extra: postgres
Requires-Dist: psycopg2-binary>=2.9.0; extra == "postgres"
Provides-Extra: mcp
Requires-Dist: mcp>=1.0.0; python_version >= "3.10" and extra == "mcp"
Provides-Extra: secure
Requires-Dist: cryptography>=41.0.0; extra == "secure"
Provides-Extra: langchain
Requires-Dist: langchain>=0.1.0; extra == "langchain"
Provides-Extra: llama-index
Requires-Dist: llama-index>=0.6.0; extra == "llama-index"
Provides-Extra: mem0
Requires-Dist: mem0ai>=0.1.0; extra == "mem0"
Provides-Extra: openai
Requires-Dist: openai>=1.0.0; extra == "openai"
Provides-Extra: benchmarks
Requires-Dist: mteb>=0.6.0; extra == "benchmarks"
Requires-Dist: beir>=0.2.0; extra == "benchmarks"
Requires-Dist: datasets>=2.0.0; extra == "benchmarks"
Requires-Dist: transformers>=4.30.0; extra == "benchmarks"
Requires-Dist: sentence-transformers>=2.2.0; extra == "benchmarks"
Requires-Dist: faiss-cpu>=1.7.4; extra == "benchmarks"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: httpx>=0.27.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Provides-Extra: all
Requires-Dist: faiss-cpu>=1.7.4; extra == "all"
Requires-Dist: numba>=0.58.0; extra == "all"
Requires-Dist: sentence-transformers>=2.2.0; extra == "all"
Requires-Dist: psycopg2-binary>=2.9.0; extra == "all"
Requires-Dist: mcp>=1.0.0; python_version >= "3.10" and extra == "all"
Requires-Dist: langchain>=0.1.0; extra == "all"
Requires-Dist: openai>=1.0.0; extra == "all"
Requires-Dist: cryptography>=41.0.0; extra == "all"
Dynamic: license-file

# OMem

**The durable state layer for production AI agents.**

Persist. Recover. Replay. Fork. Context. Audit.

Not a vector DB. Not an agent framework. Not Temporal. Framework-neutral history + checkpoints so agents can die without losing work.

Tech preview — not GA. Not SOC2.

## Quick proof

```bash
pip install omem-os
OMEM_EMBEDDER=hash omem demo kill-resume
```

```python
from omem import AgentState

agent = AgentState(session_id="incident-agent", backend="memory")
run = agent.start_run(goal="Investigate outage")
run.record("tool_call", {"tool": "logs.query"}, idempotency_key="logs:1")
ck = run.checkpoint()
# process dies → new process:
run = agent.resume_run(run.run_id)  # Mode A: checkpoint-assisted resume
```

## Design partners

Eval pack: [docs/design-partner/](./docs/design-partner/README.md)

```bash
OMEM_EMBEDDER=hash omem demo poison-recovery   # governance / rollback
```

```python
from omem import AgentState

with AgentState(session_id="payments-agent") as agent:
    agent.remember("Wire beneficiary is acct-100")
    snap = agent.snapshot(label="before-tool-call")
    agent.rollback(snap.id)
    print(agent.governance.export_audit(format="json"))
```

```bash
pip install "omem-os[mcp]"
omem init --cursor
```

## Controls

| | |
|--|--|
| Encryption | AES-256-GCM via `OMEM_ENCRYPTION_KEY` |
| State | `snapshot` · `rollback` · `fork` |
| Audit | `agent.governance.export_audit` / `omem governance audit` |
| Cloud | Multi-tenant API + Postgres RLS — sibling `omem-cloud` (tech preview) |
| Mem0 wrap | `pip install "omem-os[mem0]"` → `GovernedMem0` |

## Install

```bash
pip install omem-os
pip install "omem-os[mcp]"
pip install "omem-os[secure]"
pip install "omem-os[postgres]"
pip install "omem-os[mem0]"
```

```bash
git clone https://github.com/mohitkumarrajbadi/omem
cd omem && pip install -e ".[dev]" && pytest tests/ -q
```

## Docs

- [Design partners](./docs/design-partner/README.md)
- [Versioning / branching](./docs/guides/VERSIONING.md) · [Releasing](./docs/guides/RELEASING.md)
- [Docs index](./docs/README.md)
- [Limits](./docs/LIMITATIONS.md)

## License

MIT — [LICENSE](./LICENSE)
