Metadata-Version: 2.4
Name: agnomem
Version: 0.2.1
Summary: Agent-agnostic memory layer — one memory store for every AI agent.
License-Expression: MIT
Project-URL: Homepage, https://github.com/milindrai/agnomem
Project-URL: Issues, https://github.com/milindrai/agnomem/issues
Keywords: memory,ai,agents,llm,openai,claude,mem0,agnostic,mcp
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.110
Requires-Dist: uvicorn[standard]>=0.29
Requires-Dist: requests>=2.31
Requires-Dist: click>=8.1
Requires-Dist: pydantic>=2.0
Provides-Extra: server
Requires-Dist: mem0ai>=0.1; extra == "server"
Requires-Dist: chromadb>=0.5; extra == "server"
Provides-Extra: gemini
Requires-Dist: mem0ai>=0.1; extra == "gemini"
Requires-Dist: chromadb>=0.5; extra == "gemini"
Requires-Dist: google-genai>=1.0; extra == "gemini"
Dynamic: license-file

# AgnoMem

**Agent-agnostic memory layer — one memory store for every AI agent.**

Claude forgets when you create a new account. GPT-4 has no idea what Claude learned. Cursor and your scripts live in completely separate memory silos. AgnoMem fixes this: a single local memory server that every AI agent reads from and writes to automatically.

```bash
pip install agnomem
export OPENAI_API_KEY=sk-...   # or ANTHROPIC_API_KEY
agno install
```

That's it. Claude Code, Cursor, Windsurf, and your own Python scripts now share the same memory.

---

## How it works

```
Your AI Agents (Claude, GPT-4, Cursor, custom scripts)
            │
            ▼
     AgnoMem server (localhost:7832)
            │
            ▼
     Mem0 + ChromaDB  (persisted at ~/.agnomem)
```

- **`agno install`** — installs Mem0, starts the server, injects instructions into Claude Code's `CLAUDE.md` and your editor's rules file
- **SDK patch** — two lines in your Python script and every `anthropic` / `openai` call gets relevant memories prepended to the system prompt automatically
- **Portable** — all data lives in `~/.agnomem`. Export, backup, or move it anywhere.

---

## CLI

```bash
agno install                      # full setup in one command
agno start / stop / status        # server management
agno search "how do I deploy?"    # semantic search over memories
agno remember "use fly deploy"    # write a memory
agno list                         # list all memories
agno inject --project             # inject into current project's editor rules
agno eject                        # remove all injections cleanly
```

## Python SDK

```python
import agnomem
agnomem.enable()   # patches Anthropic + OpenAI SDKs — call once at startup

import anthropic
client = anthropic.Anthropic()
# every subsequent call automatically gets relevant memories in the system prompt
```

---

## Requirements

- Python 3.10+
- `OPENAI_API_KEY` **or** `ANTHROPIC_API_KEY` (Mem0 uses an LLM to extract facts)

---

## License

MIT
