Skip to main content

memman

Persistent memory for Claude Code and Codex.

memman saves decisions, preferences, and project knowledge so the agent can find them in later sessions. The agent chooses what to remember and when to recall it. memman handles storage, search, and background processing.

Storing and recalling 1,000 memories costs under $1 on the default models (Cost).

CI License: MIT

Features

  • The agent decides. Claude Code's three lifecycle hooks deliver the session guide and remind the agent to recall. The Codex skill does the same. The agent runs every memory command itself, and no hook writes a memory.
  • Queued writes. remember and replace return at once. A background worker adds a summary and an embedding and stores the text as written.
  • Hybrid recall. Keyword matches, vector similarity, and recency, then a reranker over the best candidates.
  • Separate stores and branches. Named stores keep projects apart. A branch layers over a store and ends with store merge or store drop.
  • SQLite or Postgres. SQLite by default, Postgres with memman[postgres].
  • Claude Code and Codex. One CLI, and the same stores and worker for both.

Quickstart

memman needs Python 3.11+ on Linux, macOS, or Windows under WSL2.

pipx install memman
memman install    # one OpenRouter key, a background worker, the hooks or skill
memman remember "The billing service retries failed requests at most three times."
# The worker stores the write on its next run, every 60 seconds by default.
memman recall "billing service retry limit"
memman replace <id> "The billing service retries batch requests four times and other requests three times."

Installation covers Codex, headless installs, WSL2, upgrades, and Postgres.

Cost

On the default models, summaries for 1,000 stored memories cost $0.17. MongoDB Atlas bills the embedding and rerank calls that OpenRouter forwards, so this table states no price for them.

Step Default model Cost
Summaries for 1,000 memories ~anthropic/claude-haiku-latest $0.17
Embeddings for 1,000 memories and 1,000 queries voyageai/voyage-4-lite billed by Atlas
Reranking for 1,000 recalls voyageai/rerank-3-lite billed by Atlas

Cost lists the assumptions behind the figure.

Documentation

License

MIT

Metadata

Release files for memman 0.51.9

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

Source distribution (sdist)

Source distribution for memman 0.51.9
File Size Uploaded Provenance Actions
memman-0.51.9.tar.gz 227.9 kB With provenance Details for memman-0.51.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memman 0.51.9
File Interpreter ABI Platform Actions
memman-0.51.9-py3-none-any.whl Python 3 none any Details for memman-0.51.9-py3-none-any.whl

Total release size: 487.2 kB

Release files / memman-0.51.9.tar.gz

Download URL memman-0.51.9.tar.gz
Size 227.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a63f4df9e04efac535aebac5704ea517c2c46faa2bcaa28196f18c1cbc661d00
BLAKE2b-256 checksum
How to use checksums
58ff75a1cdec0616f17fbe981fd087410eaa382c77028cfbcc51b2c78caf5d98
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 Nov 9, 2026.

Transparency log

Release files / memman-0.51.9-py3-none-any.whl

Download URL memman-0.51.9-py3-none-any.whl
Size 259.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68286aec69e028a21ef0b208c3d6ad814fa8ddcf5cb8fc10bfffd2f317cdc95f
BLAKE2b-256 checksum
How to use checksums
e84a138dd8715ec7c39d4374c13fe376761285ec02c27679d847276c3157eaf4
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 Nov 9, 2026.

Transparency log

Security for memman 0.51.9

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 memman-0.51.9.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 Nov 9, 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.

Release history Release notifications | RSS feed

This release

0.51.9 This release

2 release files Full provenance

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