Open Source · MIT License

Persistent memory for Claude Code and Cursor

Zero API key. Zero cloud. Your sessions, remembered.

bash — agentctx
$ npm install -g @agentctxhq/agentctx
added 1 package in 2.4s
$ agentctx serve
Memory server ready · localhost:3456
BM25 index loaded
Vector index ready
/01context lost

Claude Code forgets everything between sessions

/02friction & cost

Setting up memory requires API keys and cloud accounts

/03too much ops

Existing solutions are complex to self-host

// solution

The memory layer agents actually deserve

01local-first

Zero API Key

No external service. Ever.

Uses BM25 full-text search and local vector embeddings entirely on your machine. No OpenAI, no Pinecone, no monthly bills.

02privacy

Zero Cloud

Your data stays on your machine.

All memories are stored in ~/.agentctx/ as plain files. You own them. Inspect them, back them up, delete them — no account needed.

03simple

Zero Config

One line and you're done.

Add a single MCP entry to your claude.json. Restart Claude Code. That's it. No environment variables, no YAML, no infrastructure.

// install

Up and running in four steps

terminal — agentctx setup
01

Install the binary

$ npm install -g @agentctxhq/agentctx
added 1 package in 2.4s
02

Start the memory server

$ agentctx serve
Memory server ready · localhost:3456
BM25 index initialized
Vector index ready
03

Add to ~/.claude/claude.json

# Add this MCP server entry:
{
"mcpServers": {
"agentctx": {
"command": "agentctx",
"args": ["mcp"]
}
}
}
04

Done

# Restart Claude Code or Cursor.
Claude Code now remembers across every session.

// status

Launching soon

Star the repo to get notified when we ship v1.0. Or drop your email and we'll ping you directly.

Star on GitHub
or get notified by email