@sharedmemory/cli
v2.6.1
Published
CLI for SharedMemory — manage AI agent memory from your terminal
Maintainers
Readme
@sharedmemory/cli
Command-line interface for SharedMemory — AI that follows your project rules automatically.
Installation
npm install -g @sharedmemory/cliRequires Node.js 18+.
Setup
sm login # authenticate via browser
sm init # guided setup wizardOr manual:
sm config --api-key sm_live_...
sm config --volume your-volume-idCommands
sm "question" (default)
Just type your question — SharedMemory answers using your stored memories.
sm "What technologies does John use?"sm remember <content>
Store a memory.
sm remember "John Smith is the CTO of Acme Corp"Options: -v <volume>, -t <type> (factual / episodic / procedural), -a <agent>
sm query <query>
Query memories (raw vector + knowledge graph search).
sm query "React"Options: -v <volume>, -n <limit>
sm ask <question>
Ask a question explicitly (same as the default command).
sm ask "What technologies does John use?"Options: -v <volume>, --learn (auto-save insights from the conversation)
sm profile
View the auto-generated profile for the current volume.
sm volumes
List available memory volumes.
sm status
Check API connectivity.
$ sm status
Connected to SharedMemory
URL: https://api.sharedmemory.ai
Version: 2.0sm agents list
List agents in an organization.
sm agents list --org <org-id>sm agents create
Create a new agent and get an API key.
sm agents create --org <org-id> --project <project-id> --name "my-agent"sm agents delete
Deactivate an agent and revoke its API key.
sm agents delete <agent-id> --org <org-id>sm agents rotate-key
Rotate an agent's API key.
sm agents rotate-key <agent-id> --org <org-id>Documentation
https://docs.sharedmemory.ai/sdks/cli
License
MIT
