CLI for agent-memory: long-term, cross-project memory system for AI agents
npm install @agent-memory/cliCLI for agent-memory — long-term, cross-project memory for AI agents.
``bash`
npm install -g @agent-memory/cli
`bashInitialize (downloads local embedding model)
agmem run init
Commands
$3
`bash
agmem add [--tags t1,t2] [--digest "summary"]
agmem get [--full]
agmem update [--content text] [--tags t1,t2] [--digest text]
agmem delete [...]Pipe from stdin
echo "long content" | agmem add --tags lesson
`$3
`bash
agmem search [--tags t1,t2] [--limit n] [--after date] [--before date]
agmem list [--tags t1,t2] [--sort time|access] [--limit n] [--offset n]
agmem tags
agmem stats
`Search returns
digest (not full content) — use agmem get for full detail.$3
`bash
agmem run # List available commands
agmem run init # Initialize source (download embedding model)
agmem run status # Show source status
agmem run embed # Batch embed un-indexed memories
agmem run embed-rebuild # Full rebuild of all embeddings
agmem run embed-status # Show embedding index status
`$3
`bash
agmem config set [--source name]
agmem config get [--source name]
agmem config list [--source name]
agmem config delete [--source name]
`$3
| Flag | Format | Use case |
|------|--------|----------|
| _(default)_ | TOON | LLM-optimized, ~40% fewer tokens than JSON |
|
--json | JSON | Machine parsing |
| --human` | Human | Terminal display |MIT