Engram provides a single binary with subcommands for setup, analysis, and operation.
| Flag | Description |
|---|---|
--config <path> |
Path to configuration file (default: engram.yaml) |
--socket <path> |
Unix socket path (default: ~/.engram/engram.sock) |
-v, --version |
Print version and exit |
-h, --help |
Show help text |
Auto-detects installed AI clients and installs the Engram compression plugin.
engram install [flags]| Flag | Description |
|---|---|
--claude-code |
Install Claude Code plugin only |
--openclaw |
Install OpenClaw plugin only |
--source <dir> |
Override plugin source directory |
What it does:
- Detects installed AI coding tools (Claude Code, OpenClaw)
- Registers Engram as a plugin for detected tools
- Copies plugin files to the appropriate configuration directory
Analyze your project and show compression opportunities with estimated savings.
engram analyze [directory] [flags]| Flag | Description |
|---|---|
--sessions <n> |
Override sessions per day (default: 50) |
--cost <n> |
Override cost per million input tokens (default: $3.00) |
-y, --yes |
Auto-accept all optimizations |
What it does:
- Scans project files for identity files (CLAUDE.md, AGENTS.md, etc.)
- Estimates token savings from Engram compression
- Presents a prioritized report with monthly dollar savings
Show optimization recommendations based on actual session data.
engram advisor [directory]What it does:
- Reads accumulated session data for a project
- Analyzes compression patterns and efficiency
- Shows actionable recommendations for improving savings
Start the Engram compression daemon.
engram serve [flags]| Flag | Description |
|---|---|
--socket <path> |
Unix socket path (default: ~/.engram/engram.sock) |
--install-daemon |
Install as a system daemon (launchd on macOS, systemd on Linux) |
What it does:
- Starts the compression daemon
- Listens on a Unix socket for JSON-RPC requests
- Compresses context in real time for active sessions
Show daemon status and session information.
engram status [flags]| Flag | Description |
|---|---|
--socket <path> |
Unix socket path (default: ~/.engram/engram.sock) |
What it does:
- Shows whether the daemon is running
- Displays active session count and uptime
- Reports total tokens saved and current savings rate