Skills/PyPI/bettermemory

bettermemory@8.0.0

CAUTION· not started

Publisher claims: "Memory you can verify — a trust layer between an AI coding agent and its own past: per-hit staleness verdicts, claim-level use attribution, measured effectiveness, episodic run-state. MCP-native, local-first, MIT, no cloud." Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server) · listed in the official MCP RegistryPublisher 0mattias · publishing for 195 daysInstalls 2,552Last detonated 1 h ago

Coverage

Not started: dependency install failed; the server itself was not observed.
Tested
the dependency install step · every file read, file written and host contacted by what ran
Not tested
server startup · the tool list · tool behavior

What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.

Before you give it your token

It will ask for
ANTHROPIC_API_KEYOPENAI_API_KEY or --acknowledge-credentialConfiguration, not credentials: BETTERMEMORY_DIR, BETTERMEMORY_FLOCK_TIMEOUT, BETTERMEMORY_INDEX_THRESHOLD
Where it talks to
no vendor host named in the code
What we saw when it ran
no credential files read · no network
What we could not test
server startup · the tool list · tool behavior

Connect it with a scoped credential, under the guard. It asks for ANTHROPIC_API_KEY, OPENAI_API_KEY and talks to its vendor. Give the credential to the guard, not the server: the value never enters the server's environment and only travels to the host you bind. What the tools do with a real credential was not observed.

$vet-skills run --net declared -- uvx bettermemory

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; not started: dependency install failed; the server itself was not observed) on 2026-11-24 and scored it 68/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Access to sensitive file paths; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 3 s · 2 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.2sprocessdependency install exit 1 ·
0.2sclaimednot started: dependency install failed (exit 1); the server itself was not observed
0.2sprocessscript backend runs setup only
0.2sprocessno install scripts to re-run

Static findings

MEDIUM
File permission modification commandsrc/bettermemory/_fsutil.py:294 · File permission modification command — agent changes file ownership/permissions# Defensive post-rename chmod (belt-and-suspenders): a no-opFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/proposals.py:42 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfrom .credentials import find_credential_markersFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/handlers/write.py:46 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfrom ..credentials import find_credential_markersFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/verify.py:768 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# (`/data/compose/.env`) or its parent happens to existFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/consolidate.py:2304 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfrom .credentials import find_credential_markersFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/handlers/update.py:31 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfrom ..credentials import find_credential_markersFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandsrc/bettermemory/consolidate.py:653 · Privileged sudo command — agent may execute with elevated privilegessudo for deploys; never use sudo for backups") makes no comparableFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/credentials.py:182 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# .env / docker-compose paste is this rule's primary target. TheFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Process kill commandsrc/bettermemory/config.py:403 · Process kill command — agent can terminate processes# conversational stores (kill line was −0.35; the scoring lives inFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/ingest.py:554 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# at `/etc/passwd` (or any file outside the source dir) wouldFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedsrc/bettermemory/provenance.py:325 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/cli/consolidate.py:573 · File permission modification command — agent changes file ownership/permissions# call), but for an admin CLI op that means a chmod failure / I/OFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedsrc/bettermemory/origin.py:597 · Python subprocess execution detectedreturn subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/doctor.py:320 · File permission modification command — agent changes file ownership/permissionsfix_hint="`chmod u+w` the directory or set BETTERMEMORY_DIR to a writable path.",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Destructive file system command detectedsrc/bettermemory/groundedness.py:227 · Destructive file system command detected# "format-On-Save" -> format / on / save) the same way it alreadyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/doctor.py:397 · File permission modification command — agent changes file ownership/permissionsfix_hint=f"`chmod 700 {directory}` (or run `doctor --fix`).",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/consolidate.py:2631 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfrom .credentials import find_credential_markersFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Process kill commandsrc/bettermemory/cli/export.py:382 · Process kill command — agent can terminate processes# power loss / process kill mid-write, defeating the point of aFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/verify.py:761 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# lives on a REMOTE host (`/opt/gophish`, `/data/compose/.env`Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/_response.py:23 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfrom .credentials import CredentialMatchFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/doctor.py:133 · File permission modification command — agent changes file ownership/permissions`applied` means a mutation actually happened (a chmod landed, filesFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/doctor.py:368 · File permission modification command — agent changes file ownership/permissions# attention: a filesystem that refuses the chmod (sandbox, someFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/_fsutil.py:215 · File permission modification command — agent changes file ownership/permissionsinstant between rename and chmod is harmless when the bytes aren'tFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/_fsutil.py:256 · File permission modification command — agent changes file ownership/permissions"atomic_write_bytes: pass at most one of `mode` (chmod after "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
URL with embedded credentialssrc/bettermemory/sync.py:537 · URL with embedded credentials — may be phishing or credential leakingGit accepts URLs like ``https://user:[email protected]/...`` forFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
HIGH
Access to sensitive file pathssrc/bettermemory/hook.py:1421 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# transcript reader into opening `/etc/shadow` or a named pipeFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Process kill commandsrc/bettermemory/config.py:1175 · Process kill command — agent can terminate processes# on power loss / process kill mid-write, and the next run wouldFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/bettermemory/doctor.py:3935 · Python subprocess execution detectedproc = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/bettermemory/store.py:2718 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesand a remote pushing `something.md` as a symlink to `/etc/passwd`Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedsrc/bettermemory/sync.py:599 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/bettermemory/events.py:590 · Process kill command — agent can terminate processes) as exc: # pragma: no cover — disk issues shouldn't kill the recorder.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/events.py:492 · File permission modification command — agent changes file ownership/permissions# Pre-2.6.4 a chmod failure was silently suppressed —Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/migrate.py:501 · File permission modification command — agent changes file ownership/permissions# +chmod 0o600+fsync_dir. The bare `write_bytes`+`replace`Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Process kill commandsrc/bettermemory/sync.py:1007 · Process kill command — agent can terminate processes# kill mid-write can leave a half-written `.gitignore` — and a staleFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandsrc/bettermemory/store.py:2028 · Process kill command — agent can terminate processes# kill the walk for the rest of the store.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandsrc/bettermemory/init.py:767 · Process kill command — agent can terminate processes# writing the new content, so power loss / process kill mid-writeFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandsrc/bettermemory/store.py:2251 · Process kill command — agent can terminate processes# call. Don't kill the loop.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/doctor.py:1207 · File permission modification command — agent changes file ownership/permissions"squatting at the log path; a plain chmod cannot fix "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/events.py:503 · File permission modification command — agent changes file ownership/permissions"event log %s: chmod 0o600 failed (%s); "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/index.py:400 · File permission modification command — agent changes file ownership/permissionschmod per file). No-op on Windows."""Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/store.py:331 · File permission modification command — agent changes file ownership/permissionsThis used to mkdir the root and the tombstone dir, chmod both,Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/events.py:489 · File permission modification command — agent changes file ownership/permissions# Windows. Done outside the open() block so the chmodFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandsrc/bettermemory/events.py:762 · File permission modification command — agent changes file ownership/permissions"rotation archive %s: chmod 0o600 failed (%s); "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05

Cost to the agent

Instructions loaded
≈92 tok
1 file · 81 in bundle
Tool list per prompt
≈0 tok
0 tools · 0 per tool
Handshake
no reply
launch to tools/list, stdio
Undocumented tools
0
description under 20 chars · avg 0

Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.

Known vulnerabilities

No advisories in OSV for bettermemory@8.0.0 as of 45 min ago. This is the package itself, not its dependencies.

What would make this Verified

12 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim 0mattias: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  2. Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  3. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  4. Destructive file system command detected≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  5. URL with embedded credentials≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  6. File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.
Publish a new version to PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim 0mattiasPropose a patch to the maintainer