Install

Let your agent install it

Paste this prompt into Claude Code, Codex or Cursor. The agent checks Node.js, installs Weavekeep, shows you the planned changes and waits for your yes before it changes anything.

Prompt
Install Weavekeep, a local memory layer for coding agents, on this machine. Do the steps in order and stop if one fails.

Rules: never run `weavekeep uninstall` or pass `--purge`, never edit config files by hand, never run `weavekeep scan`, and never print API keys, tokens or other secrets.

1. Run `node -v`. If it prints v22.16 or newer, install Weavekeep globally with the package manager I already use: `npm install -g @weavekeep/cli`, or `pnpm add -g @weavekeep/cli` if I use pnpm. Do not use npx or pnpm dlx.
2. If Node is older or missing, and this is Linux or macOS, run `curl -fsSL https://weavekeep.com/install.sh | sh` instead. It installs a standalone `weavekeep` executable that needs no Node into `~/.local/bin`. If it says that folder is not on my PATH, run Weavekeep by the full path it prints and tell me the line it suggests. Do not install or switch Node, and do not use sudo, without asking me.
3. Run `weavekeep install --dry-run`. It finds my agents and shows a plan of every change. Sum up the plan for me in a few lines and ask me to confirm. Change nothing until I say yes.
4. When I say yes, run `weavekeep install --yes`. It backs up each config file before changing it. If it prints a command for me to run, show me that command.
5. Run `weavekeep doctor`. Each problem comes with a `fix:` line. Run the fix if it is a `weavekeep` command; otherwise tell me exactly what to do.
6. If Cursor was connected, ask whether I also want the optional Weavekeep rule in a project. If I do, run `weavekeep install --cursor-rule <project dir>` for the folder I name.
7. Tell me what is left for me to do:
   - Codex: open `/hooks` in Codex once and trust the Weavekeep hooks.
   - Every agent: start a new session. Memory appears at the start.
8. Finish with a short summary: the version (`weavekeep --version`), the agents that were connected, and anything still to do.

To do it yourself instead, follow the steps below.

Requirements

  • Linux or macOS, on x64 or arm64. Windows is untested: weavekeep install warns there and changes nothing without your yes, and the install script does not run there.
  • Node.js only for the npm package: version 22.16 or newer (check with node --version). The install script's executable brings its own Node. Either way Weavekeep uses the SQLite built into Node, so there is nothing to compile.
  • At least one agent: Claude Code, Cursor or the Codex CLI.

Install and connect

Install Weavekeep.

Terminal
curl -fsSL https://weavekeep.com/install.sh | sh

The script downloads the latest weavekeep executable for your system from https://dl.weavekeep.com, checks it against the release's SHA-256 checksums, and puts it in ~/.local/bin. It never uses sudo and changes no agent config. If ~/.local/bin is not on your PATH, it says so and prints the line to add. To install somewhere else, set WEAVEKEEP_INSTALL_DIR; for a given release, WEAVEKEEP_VERSION:

Terminal
curl -fsSL https://weavekeep.com/install.sh | WEAVEKEEP_INSTALL_DIR=~/bin sh
curl -fsSL https://weavekeep.com/install.sh | WEAVEKEEP_VERSION=0.1.0 sh

The npm package is @weavekeep/cli; it installs the weavekeep command.

Caution

With npm or pnpm, install it globally, not through npx or pnpm dlx. The hooks point at the installed files, and a temporary cache can be cleared at any time. weavekeep install warns you when it runs from such a cache.

Preview the changes.

Terminal
weavekeep install --dry-run

Weavekeep looks for Claude Code, Cursor and Codex in your home folder and on your PATH, and prints one line per agent:

Weavekeep will connect to 3 agents:

  Claude Code   7 hooks in ~/.claude/settings.json, memory tools (claude mcp add), skill in ~/.claude/skills/weavekeep/SKILL.md
  Cursor        5 hooks in ~/.cursor/hooks.json, memory tools in ~/.cursor/mcp.json, skill in ~/.agents/skills/weavekeep/SKILL.md
  Codex         5 hooks in ~/.codex/hooks.json, memory tools, skill in ~/.agents/skills/weavekeep/SKILL.md

Dry run: nothing was changed. Add --verbose to see every line.

Add --verbose to see every hook command and every line that would change.

The skill is a short file that tells the agent to save the rules you state to Weavekeep as well as to its own memory, so your other agents learn them too. Codex and Cursor share one copy. Weavekeep never edits your CLAUDE.md or AGENTS.md.

Connect for real.

Terminal
weavekeep install

You see the same plan, then Apply these changes? [Y/n]. Weavekeep backs up every config file it writes before it changes it. The backup sits next to the file as <file>.bak-<timestamp>. Weavekeep keeps the newest 3 backups of each file, plus the one from before its first change, and deletes its older ones. Claude Code's memory tools are added with claude mcp add, which edits Claude Code's own config. Only Weavekeep's own entries are added; settings from other tools stay as they are.

To connect only some agents, name them: weavekeep install --client claude (repeat --client for more). To skip the question, add --yes.

If Claude Code is connected, install then asks one more question, once:

Claude Code keeps notes about you and your projects in ~/.claude/projects.
Weavekeep can copy them, read-only, so Codex and Cursor know them too. Their files are never changed.
Also share the notes Claude Code saves in its own memory with your other agents? Weavekeep only reads them. [y/N]

Nothing is shared unless you type y. Say yes and the notes Claude Code has already saved are copied at once, and new or changed ones are copied when a session starts or ends. Claude Code itself does not get them twice. Say no and nothing is copied. With --yes, or without a terminal, the question is skipped and nothing is copied. You can change your mind at any time with weavekeep memory import --on or --off, or answer up front with --claude-memory or --no-claude-memory. See Claude Code.

Do the follow-up for your agents.

The output ends with the next steps that apply to you:

  • Claude Code: start a new session. Memory appears at the start.
  • Codex: open /hooks in Codex once and trust the Weavekeep hooks. Codex skips new hooks until you trust them.

Cursor needs no step. If you also want an always-on Weavekeep rule in a project, see Cursor.

The details are on the Codex and Cursor pages.

Check that it works.

Terminal
weavekeep status
weavekeep doctor

status shows which agents are connected and what is stored. doctor checks Node, the database, file permissions and every connected agent, runs a test hook and a test memory server, and prints a fix: line under each problem.

If Claude Code's claude command is not found

Claude Code's memory tools are registered with claude mcp add. If the claude command is not on your PATH, install still adds the hooks and prints the exact command to run yourself:

! Claude Code: hooks added, but the claude command was not found, so the memory tools are not registered. Run:
    claude mcp add --scope user --transport stdio weavekeep -- /usr/bin/node /path/to/weavekeep/dist/cli/index.js serve

With the install script's executable, the command ends in -- /home/you/.local/bin/weavekeep serve instead. Run that line once claude is available. weavekeep doctor reports the memory tools as not registered until you do.

Upgrading Weavekeep

With the install script, run it again. It replaces the executable in place, and the hooks and memory tools, which run it by its full path, use the new version from their next start:

Terminal
curl -fsSL https://weavekeep.com/install.sh | sh
weavekeep doctor

With npm or pnpm, upgrade the package the way you installed it, then run install again:

Terminal
npm install -g @weavekeep/cli@latest   # or: pnpm add -g @weavekeep/cli@latest
weavekeep install
weavekeep doctor

The hooks and the memory tools run Weavekeep by its full path. For a pnpm install that is the stable node_modules/@weavekeep/cli link, not pnpm's versioned store folder, so they follow upgrades; with other setups they can keep running the old copy. Running weavekeep install after each upgrade points them at the new one and replaces its old entries in place. weavekeep doctor warns when the hooks run a different Weavekeep than the one on your PATH.

After upgrading Node

This applies to the npm package only; the install script's executable carries its own Node. The hooks run Node and Weavekeep by their full paths. If you switch Node versions (for example with nvm) or reinstall Weavekeep somewhere else, those paths can stop existing. Run weavekeep install again; it replaces its old entries. weavekeep doctor tells you when this is needed.

Next

Read Your first session to see what your agent now gets. Semantic search is on by default: your agent's first session downloads its model (about 24 MB, once) in the background. weavekeep embeddings off turns it off.

On this page