Skip to main content

cogito-mem

Long-term memory for Claude Code, on your own machine. Cogi the squirrel keeps every message you and Claude exchange, and brings back what Claude forgot. No API key, no cloud, no AI calls to store.

Cogi the squirrel: Claude forgets. Cogi doesn't.

Why try it

  • Claude stops forgetting. Every message and reply is kept word for word, with its date. When something has dropped out of the context window, or happened last week, the relevant part comes back with your next prompt.
  • It remembers what you did, too. The commands you ran (and whether they failed) and the files you touched, without their output.
  • Private and free. One folder on your computer. No account, no API key, no AI calls to save a message. Nothing leaves your machine.
  • Tested. On LongMemEval-S, the past session holding the answer is among the first five Cogi finds for 99.0% of 500 questions, with no AI model involved; other local memory plugins published 95.2–98.0% as of October 2026. On LoCoMo, the 1,000 tokens Cogi hands back answer 74.7% of questions right, level with rereading the whole conversation (76.5%). A search over 10 million tokens takes 26 ms on a laptop CPU. See the results.

Install

You need Claude Code and uv, on macOS or Linux (Windows is experimental). Then, in a terminal:

claude plugin install cogito-mem --marketplace meridian21lab/cogito-mem

The first start downloads the model (310 MB, about a minute). To get updates, turn on auto-update once: /plugin → Marketplaces → cogito-mem → Enable auto-update.

Step-by-step guide · Codex, Claude Desktop, Docker

Try it

  1. Tell Claude: Let's call the staging server "acorn".
  2. Clear its short-term memory: /clear
  3. Ask: What did we call the staging server? Claude answers "acorn": Cogi brought it back.

What Cogi runs, downloads and stores

  • Runs: four Claude Code hooks and one MCP server, cogi, each started with uv run --frozen from the plugin's own folder, at the exact package versions in its uv.lock. After each reply and at the end of a session, the hooks save the new messages from the session's transcript. At the start of a session and with each prompt, they add the few most relevant memories (at most 300 tokens per prompt). The MCP server gives Claude two tools, memory_query and memory_append, answered by a small service that listens on your computer only (127.0.0.1:7327).
  • Downloads, once, over HTTPS: Cogi's one Python dependency, numpy, from PyPI (by uv); llama.cpp's llama-server from llama.cpp's official GitHub releases (skipped if you already have it); and the EmbeddingGemma 2 model (310 MB) from Hugging Face. After that, Cogi makes no network calls.
  • Stores: everything in ~/.cogito-mem/ on your computer: your messages, and a short note of what each turn did, in one SQLite file. API keys, tokens, private keys and passwords are replaced with [redacted] before anything is saved; tool output and file contents are never saved. Text inside <private>…</private> is skipped, and COGITO_MEM_CAPTURE=off pauses saving.
  • Sends: nothing. No account, no analytics, no telemetry. (The optional benchmark command, cogito-mem eval locomo-qa, which only you would run, sends benchmark questions to the LLM API you set up for it, with your own key.)
  • Removes cleanly: claude plugin uninstall cogito-mem@cogito-mem, then delete ~/.cogito-mem.

Every file, download and connection, with links to the source: What you install.

How it compares

cogito-mem claude-mem Mem0 plugin cognee plugin Supermemory plugin
AI calls to store a message none an observer model per tool call (Haiku on your Claude plan by default) extraction on Mem0's servers extraction with your LLM key or claude -p in Supermemory's service
Account or API key none optional sign-in Mem0 Platform API key an LLM key or the Claude CLI API key or login
Where your memory lives your computer your computer (cloud sync optional) Mem0's cloud your computer (cloud optional) Supermemory's cloud (local mode available)
What comes back your exact words, with dates AI-written observations extracted memories graph facts and summaries extracted memories
Searchable after the same turn the observer's run a batch (every 5 exchanges) the next graph run the background save

Keep your project's rules in CLAUDE.md, and let Cogi remember what happened.

Learn more

How it works Collect, keep, find: what Cogi stores and how it finds it
Results · Benchmarks The numbers, and how to reproduce them
API & MCP · Reference HTTP, Python, terminal, settings, FAQ, roadmap
What you install · Privacy · Terms Every file, download and connection; privacy and terms
Development Running the tests and the evaluations

Early access. v0.2 is new, built and tested (over 200 tests), and still being measured. Feedback and issues are very welcome.

License

MIT

Metadata

Release files for cogito-mem 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cogito-mem 0.2.1
File Size Uploaded Provenance Actions
cogito_mem-0.2.1.tar.gz 470.6 kB With provenance Details for cogito_mem-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cogito-mem 0.2.1
File Interpreter ABI Platform Actions
cogito_mem-0.2.1-py3-none-any.whl Python 3 none any Details for cogito_mem-0.2.1-py3-none-any.whl

Total release size: 586.9 kB

Release files / cogito_mem-0.2.1.tar.gz

Download URL cogito_mem-0.2.1.tar.gz
Size 470.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b8fb8b085583eb79bddeccd5f70090774915e1939d1547b617143a894d188b7
BLAKE2b-256 checksum
How to use checksums
e8be184b2474fdf309a14b83d425ff0e9503152d3c2d94e6350c4857c8adfe29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / cogito_mem-0.2.1-py3-none-any.whl

Download URL cogito_mem-0.2.1-py3-none-any.whl
Size 116.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17306fa548ef4aedbc0ed134650ade9f15a3fee5d27cfb7d6a3912e54559dc6a
BLAKE2b-256 checksum
How to use checksums
82081edaf3a72a227c11cd557d86d20854fb4fd73b10025d63b3a2907e23cd36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for cogito-mem 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cogito_mem-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page