0. See what it would know — no account needed
Before anything else, look at what memory would already hold. This reads the Claude Code history on your own disk, uploads nothing, and needs no key:export PATH="$(python3 -m site --user-base)/bin:$PATH".
Like what you see? Keep it — the steps below take about two minutes.
Fastest path — paste one prompt into your agent
If you have a coding agent (Claude Desktop, Cursor, Claude Code, Codex, Windsurf), skip the manual steps entirely. Paste this prompt:pip install, signs you up, configures the MCP server in its host, and verifies the install end-to-end with mengram doctor. Walk away — it tells you when it’s done.
Want to do it manually? Continue below.
1. Get an API key
Sign up at mengram.io to get your free API key. It starts withom-.
You can also do it from the terminal — mengram signup --email you@example.com sends a 6-digit code; mengram signup --email you@example.com --code 123456 exchanges it for a key and saves it to ~/.mengram/config.json.
2. Install the SDK
3. Add your first memory
4. Search your memories
5. Get a Cognitive Profile
Generate a ready-to-use system prompt that captures who a user is:6. Claude Code — Full Memory Loop
If you use Claude Code, set up automatic memory in one command:export MENGRAM_API_KEY=om-your-key → mengram hook install.
This installs 3 hooks:
- Session context — loads your profile when Claude Code starts
- Auto-recall — searches relevant memories on every prompt
- Auto-save — captures conversations in the background
7. Verify the install end-to-end
OK: round-trip succeeded. on success, or FAIL: <reason> with a fix-it hint.