@weavekeep/cli
v0.1.3
Published
Local-first memory layer for AI coding agents. Hooks capture, MCP recalls.
Maintainers
Readme
Weavekeep
Local memory for AI coding agents.
Weavekeep records your AI coding sessions on your own machine and gives the important parts back to every agent you use. A new session starts with your decisions and how the last session ended.
- Works with Claude Code and Codex. Any other MCP client can use the memory tools.
- Memory stays on your machine. No account and no API key.
- Memory is plain Markdown files you can read and edit.
- API keys, tokens and passwords are removed before anything is saved.
Install
Runs on Linux and macOS. Windows is untested; weavekeep install warns there.
The install script needs no Node.js. It downloads the standalone weavekeep executable for your machine (x64 or arm64), checks its SHA-256 checksum and puts it in ~/.local/bin, without sudo:
curl -fsSL https://weavekeep.com/install.sh | sh
weavekeep installOr install the npm package, with Node.js 22.16 or newer:
npm install -g @weavekeep/cli # or: pnpm add -g @weavekeep/cli
weavekeep installweavekeep install finds the agents on your machine, shows every change it makes, and backs up each config file first. It also adds a small Weavekeep skill to each agent's skills folder (~/.claude/skills/weavekeep, ~/.agents/skills/weavekeep for Codex). The skill tells the agent to save your rules to Weavekeep as well as its own memory, so your other agents learn them too. Weavekeep never edits your CLAUDE.md or AGENTS.md. To see the changes without making them:
weavekeep install --dry-runThen start a new agent session.
To upgrade the executable, run the install script again; it replaces the file in place, and the hooks keep running it. To upgrade the npm package, update it the same way (npm install -g @weavekeep/cli@latest or pnpm add -g @weavekeep/cli@latest), then run weavekeep install again so the hooks run the new version. weavekeep doctor warns when they still run an older copy.
What you get
At the start of every session, the agent sees your project's decisions and how the last session ended:
Weavekeep memory for /home/you/projects/shop.
When the user states a lasting rule, preference or decision, or you would save one to your own memory, also save it with the Weavekeep `remember` tool: that is how the user's other agents learn it.
Before you propose topics, options or an approach, re-decide something, or ask what the user may have told another agent, call the Weavekeep `recall` tool with a few keywords. Never bring back what the user stopped or rejected.
Decisions (from /home/you/.weavekeep/memory/shop-3f2a91c0/decisions.md):
- Use SQLite via node:sqlite, not Postgres
- Payments go through Stripe Checkout, never raw card fields
Final assistant message of the previous session (6c1f2e4a-91b0-4d7e-8a35-2f0c9e7d1b62, 2026-10-21T16:42:10.512Z):
Fixed the cart total rounding bug in src/cart/total.ts. Tests pass.Claude Code also gets one more line, on loading the Weavekeep tools when its tool search has deferred them.
On each prompt that names something specific, up to two of the project's saved decisions and facts that match it are added, in full, so the agent does not go against a rule you already set. "yes" or "ok" add nothing, and nothing the session already saw is added again.
Any agent can search memory through four MCP tools: recall, remember, timeline and forget. weavekeep install registers them with each agent. Another MCP client can start them with weavekeep serve (stdio); it gets the tools, but no recording and no session-start memory.
Tell one agent a rule, and the others know it. Say "always commit and push without asking" in Claude Code. The agent saves the rule to its own memory and also calls remember, and the next Codex session starts with it.
Agent support
| | Claude Code | Codex CLI |
|---|---|---|
| Records sessions | Yes | Yes |
| Memory at session start | Yes | Yes |
| Memory added to each prompt | Yes | Yes |
| Search tools (recall, remember, ...) | Yes | Yes |
| Weavekeep skill | ~/.claude/skills/weavekeep | ~/.agents/skills/weavekeep |
Codex: Codex runs new hooks only after you trust them. After weavekeep install, open /hooks in Codex once and trust the Weavekeep hooks.
Cursor: Cursor is no longer supported. If an earlier version connected it, weavekeep uninstall --client cursor removes Weavekeep's hooks and memory tools from Cursor's config; until then those hooks record nothing.
Skill files: If you edit a Weavekeep skill, install stops updating it and uninstall leaves it in place. weavekeep doctor shows when a skill is missing or out of date. Run weavekeep install to fix it.
Your memory files
Decisions and facts for each project live as Markdown:
weavekeep memory path
# /home/you/.weavekeep/memory/shop-3f2a91c0# Decisions: /home/you/projects/shop
- Use SQLite via node:sqlite, not Postgres <!-- wk:01a15aeb-… -->
- Payments go through Stripe Checkout, never raw card fields <!-- wk:01a15aeb-… -->Edit them in any editor:
| You do | Weavekeep does |
|---|---|
| Change a line | Updates that memory |
| Delete a line | Forgets it |
| Add a - line | Remembers it, and writes an id comment next to it |
Changes are picked up at the next session start. To apply them now, run weavekeep memory sync. To open the file in your editor, run weavekeep memory open.
Privacy
- Local only. Memory is stored in
~/.weavekeep, readable only by you. Your memory never leaves your machine. The only download is the local search model (about 24 MB), once;weavekeep embeddings offturns it off. - Secrets removed. API keys, tokens, private keys, passwords in URLs and
KEY=valuesecrets are replaced with[REDACTED:…]before they are written to disk. - You decide what stays.
weavekeep forget <id>removes an item.weavekeep exportshows everything that is stored.
Check what you leaked
Weavekeep removes secrets from its own memory, but your agents keep their own transcripts as plain text: Claude Code in ~/.claude/projects, Codex in ~/.codex/sessions. An API key you pasted into a prompt, or a password a tool printed, stays there for good. To find them:
weavekeep scan! Found 2 likely secrets in 1 project (Claude Code 2). Rotate them, then delete or redact the transcripts.
14 more matches look like placeholders or test values. Show them with --all.
1. Anthropic API key sk-ant-…a1F9 3f9c0e27b1d4
3 times in Claude Code, first 2026-09-01, last 2h ago
Project ~/projects/shop
~/.claude/projects/-home-you-projects-shop/6c1f….jsonlThe scan only reads. Secrets are always shown masked, in the terminal and with --json, and the same secret is listed once however many files it is in. Matches that look like placeholders or test values (your-api-key, a key ending in EXAMPLE, a URL after API_KEY=) are counted but not listed; --all lists them too. It also checks that the Weavekeep store holds no secrets. Use --project <path> for one project and --agent claude|codex|weavekeep for one source.
Commands
| Command | What it does |
|---|---|
| weavekeep install | Connect Weavekeep to your agents. Shows the changes and asks first |
| weavekeep status | What is stored and which agents are connected |
| weavekeep doctor | Check that everything works, and how to fix what doesn't |
| weavekeep search <words> | Find memory from earlier sessions |
| weavekeep recent | Recent sessions for this project |
| weavekeep remember <text> | Save a decision for this project |
| weavekeep forget <id> | Forget an item. Ids come from search |
| weavekeep memory open | Open this project's decisions in your editor |
| weavekeep memory sync | Apply your Markdown edits now |
| weavekeep export | Write all memory as JSON lines, for backup or inspection |
| weavekeep scan | Find API keys and passwords your agents left in their transcripts |
| weavekeep embeddings | Turn the local model that finds memory by meaning on or off (on by default) |
| weavekeep uninstall | Undo every change install made. Your memory is kept |
Run weavekeep <command> --help for options and examples, or weavekeep --version for the version.
Uninstall
weavekeep uninstall # disconnect from all agents, keep memory
weavekeep uninstall --purge # also delete ~/.weavekeep
rm ~/.local/bin/weavekeep # installed with the install script
npm uninstall -g @weavekeep/cli # installed with npmFAQ
Does it slow down my agent?
No. Each hook gives up after 2 seconds and your agent carries on. If anything goes wrong, Weavekeep steps aside. weavekeep doctor shows how long a hook takes on your machine.
Does it use AI or send my code to a model?
No. Search combines local keyword search with a small embedding model that runs on your machine; weavekeep embeddings off turns the model off. What Weavekeep adds to your agent's context goes to your agent's model provider with the rest of the session, as usual.
Can I use it on several machines? Each machine keeps its own memory today. Encrypted sync between machines is in development.
License
Free to use, including for commercial work. Copying, modifying and redistributing the software are not permitted. The terms are in the LICENSE file in this package. Third-party components included in the package keep their own licences, listed in THIRD_PARTY_NOTICES.md, and nothing in this licence restricts the rights those licences grant.
