Compartment
Compartment is encrypted, fully offline persistent memory for AI agents, stored as one vault on the user's own computer that Claude Code, Claude Desktop, Cursor, Codex and other MCP clients can read and write with no API key, account or network connection.
Compartment stores what an agent learns as individual memories, each recorded with its source and the date it was learned, available across every later session, every project and every agent on the machine. A memory can be given an expiration date and is automatically removed after it, and when a preference changes, a new memory simply replaces the old one; recall is a hybrid vector and keyword search over an in-memory index that answers in about 12 milliseconds.
Everything on disk, including the embedding vectors themselves, is encrypted, and only the user's own passphrase opens the vault; the embedding model ships inside the package so no external service is called. A new vault starts with roughly 6,700 reference facts about hardware, operating systems, ports, encodings and shell tools, which can be excluded from search with one setting.
It installs with pip and a one-command integration step per agent, and its documentation compares its encryption, account requirements and network behavior against several other memory servers as of a stated date. It is written in Python and licensed under Apache 2.0.