Privacy and security
Local only
- Memory is stored on your machine, in
~/.weavekeep, and nothing in it leaves the machine. See Files and settings. - There is no account, no telemetry and no update check.
- Weavekeep calls no AI service. Search runs on your machine: keyword search, plus a small semantic search model that runs locally.
- Your memory never leaves your machine. The only download is the local search model (about 24 MB), once;
weavekeep embeddings offturns it off. Theweavekeep serveyour agent runs fetches it from Hugging Face in the background, the first time it needs it, and the model then runs locally.
The only programs Weavekeep starts are local: claude mcp add and claude mcp remove during install and uninstall, its own background workers, your editor for weavekeep memory open, and the test hook and server that weavekeep doctor runs.
Note
What Weavekeep adds to your agent's context becomes part of your session, like anything else in the context. Your agent sends it to its model provider together with your prompt, as it does with your files and messages.
What is stored
| What | Where it comes from |
|---|---|
| Sessions: project folder, agent, start and end time | Session start and end hooks |
| Your prompts | The prompt hook |
| The agent's final message for each turn | The Stop hook (Cursor: after the agent responds) |
| Tool calls and their results | The tool hook. This includes command output and the contents of files the agent read or edited through a tool. Images are replaced with a short placeholder, and the results of Weavekeep's own tools are not stored again |
| Compaction summaries | Claude Code's compaction hook |
| Conversation text from Claude Code transcripts | Read after a session ends, to fill in what the hooks missed |
| Notes, facts and decisions | weavekeep remember, the remember tool, and your memory files |
| Copies of Claude Code's own memory notes, if you agreed | Read from Claude Code's memory folder; Claude Code's files are never changed |
| Embedding vectors of your prompts, replies, notes and decisions | While semantic search is on (the default). Derived from the above, and dropped by weavekeep embeddings off |
| A random device id | Created once per machine |
Secret removal
Every piece of text passes through a secret filter before it is written to the database, to a large-item file or to a memory file. The filter also runs on context before it is given to the agent, and on lines you type into decisions.md or facts.md. A secret is replaced with a marker like [REDACTED:github_token].
The filter looks for:
- Private keys: any
-----BEGIN … PRIVATE KEY-----block. - Passwords in URLs: the password in
scheme://user:password@host. - Authorization headers: the value after
Authorization:orProxy-Authorization:, includingBearer,BasicandTokenvalues. - Bearer tokens written on their own, when the token contains a digit.
- Basic credentials: base64 text after
Basicthat decodes touser:password. - Command-line passwords:
-u user:password,--userand--proxy-user, as used bycurl. All-digit values such as1000:1000are left alone. - Anthropic API keys (
sk-ant-…). - OpenAI API keys (
sk-…,sk-proj-…,sk-svcacct-…,sk-admin-…). - GitHub tokens (
ghp_,gho_,ghu_,ghs_,ghr_,github_pat_). - AWS keys: access key ids (
AKIA…,ASIA…) andaws_secret_access_keyvalues. - Stripe keys (
sk_live_,sk_test_,rk_live_,rk_test_). - Slack tokens (
xoxa-,xoxb-,xoxp-,xoxo-,xoxs-,xoxr-). - Google API keys (
AIza…). - npm tokens (
npm_…). - JSON Web Tokens (three dot-separated parts starting with
eyJ). - Secret assignments:
KEY=valueandkey: valuewhere the name containsSECRET,TOKEN,PASSWORD,PASSWD,API_KEY,PRIVATE_KEY,ACCESS_KEYorCREDENTIAL, as in.envfiles, shell exports and config files. In JSON, a value under a key such as"password"or"api_key"is replaced whole. The same goes for a fact whose relation has such a name.
To avoid false alarms, it skips names that hold counts or settings (max_tokens, TOKEN_URL, PASSWORD_FILE), and values that are clearly not secrets: placeholders like $VAR, {{var}}, <value>, ***, true or null, file paths, and short numbers.
Known limits
- Pattern based. The filter catches the formats above. A secret in a format it does not know, such as a password typed in plain prose, is stored as is.
- Some values are not caught on purpose. Lowercase values made only of letters after a colon, like
password: hunter, look the same as code (token: string) and are left alone. - The database is not encrypted. It is protected by file permissions (only your user can read it). Use your operating system's disk encryption for protection at rest.
- Forgetting is not erasing. A forgotten item is hidden everywhere but stays in the database file, marked as forgotten. To remove everything, run
weavekeep uninstall --purge. See Forget and export. - Turning the filter off.
WEAVEKEEP_NO_SCRUB=1stores text unfiltered. It is meant for debugging and prints a warning every time the database is opened. Text stored while it was set stays unfiltered.
If a secret did get stored, rotate it. Then forget the item, or purge all memory if it must leave the disk.
Your agents' own transcripts
The filter protects what Weavekeep stores. Claude Code and Codex also keep their own transcripts, unfiltered, in ~/.claude/projects and ~/.codex/sessions. weavekeep scan finds the secrets in them, and checks that Weavekeep's store holds none. It only reads and never shows a secret in full. See Check what you leaked.
Permissions
Weavekeep's folders are readable only by you (mode 700), and its files too (mode 600). It tightens them when they become looser. weavekeep doctor reports any entry that other users can read. See Files and settings.
You stay in control
weavekeep exportshows everything that is stored.weavekeep forget <id>hides an item.- Your memory files are plain text you can read and edit.
weavekeep uninstall --purgedeletes all memory.