mem9-setup

mem9-setup is a skill for Claude Code from unvulcanised-watercress762/mem9. It costs 29 tokens per session (809 once invoked), scanned B, original, Apache-2.0.

An automated setup procedure for configuring Mem9, a service that gives agents persistent memory, in Claude Code.

In plain words
What is it for?
Installing or enabling Mem9, creating its account, updating Claude Code settings, and checking whether memory is already configured.
Why use it?
It removes the manual work of checking settings, creating a memory account when needed, and saving the connection details.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the mem9 plugin — 3 skills, 3 hooks shipped together

Good fit Installing or enabling Mem9, creating its account, updating Claude Code settings, and checking whether memory is already configured.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unvulcanised-watercress762/mem9/mem9-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add unvulcanised-watercress762/mem9 --skill mem9-setup
Clone the repo
git clone --depth 1 https://github.com/unvulcanised-watercress762/mem9

Made for: Claude Code.

Or install mem9, the plugin that ships this one along with the rest of its 3 skills, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mem9-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/unvulcanised-watercress762/mem9/mem9-setup/github.svg)](https://agentmods.dev/skills/unvulcanised-watercress762/mem9/mem9-setup)
Your own site
<a href="https://agentmods.dev/skills/unvulcanised-watercress762/mem9/mem9-setup"><img src="https://agentmods.dev/badge/skills/unvulcanised-watercress762/mem9/mem9-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mem9-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/unvulcanised-watercress762/mem9/mem9-setup"><img src="https://agentmods.dev/badge/skills/unvulcanised-watercress762/mem9/mem9-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 809 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00809
Opus 5 $0.00015 $0.00404
Sonnet 5 $0.00006 $0.00162
Haiku 4.5 $0.00003 $0.00081

Measured 11d ago against content hash 6341983177ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

mem9-setup scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

path = os.path.expanduser('~/.claude/settings.json')

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST https://api.mem9.ai/v1alpha1/mem9s
claude-plugin/skills/mem9-setup/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mem9 Setup for Claude Code

You are an automated installer. Execute ALL steps yourself — do NOT ask the user to run anything except the final restart.

Step 1: Check if already configured

python3 -c "
import json, os, sys
path = os.path.expanduser('~/.claude/settings.json')
if not os.path.exists(path):
    print('NO_SETTINGS')
    sys.exit(0)
with open(path) as f:
    cfg = json.load(f)
tid = cfg.get('env', {}).get('MEM9_TENANT_ID', '')
if tid:
    print(f'ALREADY_CONFIGURED:{tid}')
else:
    print('NEEDS_TENANT')
"
  • If ALREADY_CONFIGURED:<id> → Skip to Step 3.
  • If NEEDS_TENANT or NO_SETTINGS → Continue to Step 2.

Step 2: Provision tenant and write config

2a: Provision a new tenant

curl -s -X POST https://api.mem9.ai/v1alpha1/mem9s

Extract the id field from the JSON response. This is the MEM9_TENANT_ID.

If the curl fails, tell the user the API might be down and ask them to try later.

2b: Write tenant ID to settings.json

Read ~/.claude/settings.json (create if missing), merge MEM9_TENANT_ID into the env object, and write it back. Preserve all existing settings.

python3 -c "
import json, os, sys

tenant_id = sys.argv[1]
path = os.path.expanduser('~/.claude/settings.json')

# Read existing or start fresh
cfg = {}
if os.path.exists(path):
    with open(path) as f:
        cfg = json.load(f)

# Merge env
env = cfg.get('env', {})
env['MEM9_TENANT_ID'] = tenant_id
cfg['env'] = env

# Write back
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, 'w') as f:
    json.dump(cfg, f, indent=2)
    f.write('\n')

print(f'OK: MEM9_TENANT_ID={tenant_id} written to {path}')
" "REPLACE_WITH_ACTUAL_TENANT_ID"

Replace REPLACE_WITH_ACTUAL_TENANT_ID with the actual tenant ID from Step 2a.

Step 3: Install plugin via CLI

These are CLI commands — run them directly in Bash:

claude plugin marketplace add mem9-ai/mem9
claude plugin install mem9@mem9

If claude plugin marketplace add fails with "already exists", that's fine — skip it and continue to install.

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 108 lines · 29 tokens per session scan B 6341983177ed

Subscribe to this mod's changes

mem9-setup is a skill published in the GitHub repository unvulcanised-watercress762/mem9 (3 stars, last pushed today), licensed Apache-2.0. It adds 29 tokens to every session and 809 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

langchain

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG…

davila7/claude-code-templates · 79 tokens

honcho

Configure and troubleshoot Honcho memory for Hermes.

NousResearch/hermes-agent · 12 tokens

ccs-align

Run the CCS Align seat's hourly breathing cycle — prove the local claude-mem worker is healthy, pull needle observations through search → timeline → getobservations, land them in a seat-owned middle cache via atomic grab → append → filter exclude-marks → replace, manage exclude marks, and walk house → project → seat…

thedotmack/claude-mem · 136 tokens

weekly-digests

Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…

thedotmack/claude-mem · 93 tokens

mode-creator

Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags, optional Telegram alerts, bot setup, worker restart, and startup-context verification. Use this whenever someone asks to customize what claude-mem remembers, create or change a mode…

thedotmack/claude-mem · 94 tokens

cloud-sync

Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.

thedotmack/claude-mem · 64 tokens