Installation
Commands
mengram init
Interactive setup — creates config, vault, and Claude Desktop MCP integration.| Flag | Description |
|---|---|
--provider | LLM provider: openai, anthropic, ollama |
--api-key | API key for the provider |
--vault | Custom vault path |
--home | Mengram home directory (default: ~/.mengram) |
--no-mcp | Skip Claude Desktop MCP setup |
--mcp-only | Only setup MCP (config must exist) |
mengram server
Start the MCP server for Claude Desktop, Cursor, or Windsurf.| Flag | Description |
|---|---|
--config | Config path (default: ~/.mengram/config.yaml) |
--cloud | Use cloud API instead of local vault |
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.| Flag | Description |
|---|---|
--format | Output format: claude_md, cursorrules, windsurf |
--force | Regenerate (bypass cache) |
mengram hook
Manage Claude Code memory hooks (auto-save + auto-recall + session context). See Claude Code Integration for details.mengram import
Import existing data into memory.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
| Variable | Description |
|---|---|
MENGRAM_API_KEY | Cloud API key (starts with om-) |
MENGRAM_URL | Custom API base URL |
MENGRAM_USER_ID | Default user_id |