Command-line interface for SharedMemory — manage AI agent memory from the terminal.
npm install -g @sharedmemory/cliRequires Node.js 18+.
smem config --api-key sm_live_...
smem config --volume your-volume-idStore a memory.
smem add "John Smith is the CTO of Acme Corp"Options: -v <volume>, -t <type> (factual / episodic / procedural), -a <agent>
Search entities in the knowledge graph.
smem search "React"Ask a question answered from stored memories.
smem ask "What technologies does John use?"Options: -v <volume>, --learn (auto-save insights from the conversation)
View the auto-generated profile for the current volume.
List available memory volumes.
Check API connectivity.
$ smem status
Connected to SharedMemory
URL: https://api.sharedmemory.ai
Version: 2.0
List agents in an organization.
smem agents list --org <org-id>Create a new agent and get an API key.
smem agents create --org <org-id> --project <project-id> --name "my-agent"Deactivate an agent and revoke its API key.
smem agents delete <agent-id>Rotate an agent's API key.
smem agents rotate-key <agent-id>https://docs.sharedmemory.ai/sdks/cli
MIT