Skip to main content

Installation

Commands

mengram setup

One command does the whole onboarding: creates your account, saves the API key, installs Claude Code hooks, auto-detects and configures your other AI tools (Cursor, Claude Desktop, Windsurf), imports your existing Claude Code history so memory is useful from minute one, and verifies the round-trip.
Detected tool configs are merged safely (existing servers preserved, a backup is written, unparseable files are never overwritten). If you already have a key, it asks whether to reconfigure.

mengram weekly

Your AI’s memory, summarized for the past 7 days — including the one metric no other tool shows: repeated mistakes prevented (procedures with past failures that your memory recalled this week, each with the date you last got bitten by it).
The report auto-shows once a week at the start of a Claude Code session (via the SessionStart hook) — shown to you, never added to the model’s context. Pass --no-weekly to mengram auto-context to disable.

mengram init

Interactive setup — creates config, vault, and Claude Desktop MCP integration.

mengram server

Start the MCP server for Claude Desktop, Cursor, or Windsurf.

mengram status

Check setup status — config, vault, vector index, Claude Desktop integration.

mengram stats

Show vault statistics — entity counts, fact counts, vector index info.

mengram rules

Generate a CLAUDE.md, .cursorrules, or .windsurfrules file from your cloud memory.

mengram hook

Manage Claude Code memory hooks (auto-save + auto-recall + session context). See Claude Code Integration for details.

mengram try

Zero-account, local-only preview of what Mengram memory would know. Scans your Claude Code history on-device — nothing is uploaded, no API key needed:
Shows your projects, tech stack, and detected workflow patterns (commit→push→deploy, test→fix→re-test, …) drawn from your own session history, then the two commands that make it permanent.

mengram import

Import existing data into memory.

mengram import claude-code

Import your local Claude Code session transcripts (~/.claude/projects) into cloud memory — memory knows your projects from minute one instead of starting empty.
  • Secrets are redacted before storage — on import (client-side) and again server-side in the extraction pipeline, so keys/tokens/JWTs pasted into a conversation never reach the model or get stored (→ [REDACTED])
  • Each session counts as one add operation against your plan’s monthly quota
  • Re-runs skip already-imported sessions; --reimport forces a fresh pass

mengram import chatgpt

mengram import obsidian

mengram import files

mengram api

Start a local REST API server.

mengram web

Start the Web UI with chat and knowledge graph visualization.

Environment Variables