Skip to main content

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

Project description

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.

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agnomem-0.2.2.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agnomem-0.2.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file agnomem-0.2.2.tar.gz.

File metadata

  • Download URL: agnomem-0.2.2.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for agnomem-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0f948f4b3625bb53983ece477027db78fa090dab117112b0d0d28250c4a32553
MD5 8fa3581d0039d1c9d87b9e8f4ae53bf0
BLAKE2b-256 4d9ae26c4c6b3941094d85555814c24b1d44c9f06441f45a4f6ce28dbab44c63

See more details on using hashes here.

File details

Details for the file agnomem-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: agnomem-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for agnomem-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9675083479fd72f158233df6f4ef046de04a14f6bfd7b84c82e8f1a892edc5b7
MD5 b94c99286f4102270d3a17b054dbda8f
BLAKE2b-256 2ecdb53b8690c0337af5028792820aab9a19a84cfdfbabc54742c78c24eea8cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page