Skip to main content

Installation

Commands

mengram setup

Interactive signup and configuration — creates your account, saves the API key to your shell profile, and installs Claude Code hooks. All from the terminal.
If you already have a key, it will ask whether to reconfigure. If the email is already registered, it offers to reset your API key.

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 client-side before anything is uploaded (API keys, tokens, JWTs → [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