Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyAI, memory and agents

Compartment

Lets your AI agent keep encrypted, fully offline memory that carries across sessions, projects and agents.

576 stars on GitHubby MaxFreedomPollardLicense Apache-2.0Updated last month

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add compartment -- uvx compartment serve

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Remember that I prefer figures before conclusions in client reports.
What did I decide about the Airtable setup?

What it is

Compartment stores what your agents learn in one encrypted vault on your computer. Each memory is a single claim with a source and date, and can expire. Recall uses a hybrid keyword and vector search that answers in about 12 ms. There is no account, API key or network use.

What it can do

  • memory_store_many: store a batch of memories
  • memory_recent: list the newest memories
  • memory_link: record a relation between things
  • memory_relations: look up relations by entity or date
  • compartment init: create the vault
  • compartment integrate: connect Claude, Hermes or OpenClaw

When to use

  • β€ΊWhen you want your agent to remember your preferences in every later session
  • β€ΊWhen you want agents on one computer to share the same memory
  • β€ΊWhen you want memory that expires after a date, such as a door code

What you need

Install the compartment package from PyPI and run compartment init, then choose a passphrase. No API key or network is needed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The readme shows a license badge and says there is no account or cloud.

Is the data encrypted?

Yes. Everything on disk is encrypted, including embedding vectors, and only your passphrase opens it.

Does it use the network?

No. The readme says no network and no telemetry.

Which agents does it work with?

Claude Code, Claude Desktop, Hermes Agent, OpenClaw, Cursor, Codex and other MCP clients.

Does it use an LLM inside?

No. Embeddings run locally with a bundled model and the host model decides what to store.

Can I remove stored memories?

Memories can expire on a date, and a newer opinion replaces an older one.

If it does not work

  • β€ΊRun compartment init first, then connect an agent with compartment integrate claude.
  • β€ΊIf recall returns nothing, check that the vault is unlocked.
  • β€ΊRun compartment status to see the total and your own memory counts.

5 new skills a week. 1 minute to read.