The Supermemory CLI is the complete interface to Supermemory from the terminal. It lets you add memories, search, manage documents, configure projects, connect external data sources, and administer teams — all programmatically.
Installation & Auth
Configuration
The CLI supports three config scopes:
Environment Variables
Global Flags
Core Commands
add — Ingest content
Ingest text, files, or URLs and extract memories into a container tag.
Options:
--tag <string>— Container tag--stdin— Read content from stdin--title <string>— Document title--metadata <json>— JSON metadata object--id <string>— Custom document ID--batch— Batch mode, reads JSONL from stdin
search — Search memories
Semantic search across memories with filtering and reranking.
Options:
--tag <string>— Filter by container tag--limit <number>— Max results (default: 10)--threshold <number>— Similarity threshold 0-1 (default: 0)--rerank— Enable reranking for better relevance--rewrite— Rewrite query using LLM--mode <string>—memories|hybrid|documents(default: memories)--include <string>— Fields: summary, chunks, memories, document--filter <json>— Metadata filter object
remember — Store a memory directly
Store a specific fact or memory without ingesting a full document.
Options:
--tag <string>— Container tag--static— Mark as permanent memory--metadata <json>— JSON metadata
forget — Delete a memory
Options:
--tag <string>— Container tag--reason <string>— Reason for forgetting--content <string>— Forget by content match instead of ID
update — Update an existing memory
Options:
--tag <string>— Container tag--metadata <json>— Updated metadata--reason <string>— Reason for update
profile — Get user profile
Retrieve the auto-generated user profile for a container tag.
Returns static facts (long-term) and dynamic context (recent activity).
Document Management
docs — Manage documents
Subcommands: list, get, delete, chunks, status
Container Tags
tags — Manage container tags
Container tags scope memories to users, projects, or any logical grouping.
Subcommands: list, info, create, delete, context, merge
API Keys
keys — Manage API keys
Subcommands: list, create, revoke, toggle
Connectors
connectors — External data sources
Connect Google Drive, Notion, OneDrive, and other services to automatically sync documents.
Subcommands: list, connect, sync, history, disconnect, resources
Plugins
plugins — IDE and tool integrations
Connect the CLI to Claude Code, Cursor, and other tools.
Subcommands: list, connect, revoke, status
Team Management
team — Manage team members
Subcommands: list, invite, remove, role, invitations
Monitoring
status — Account dashboard
Shows memory count, document count, API usage, and storage.
logs — Request logs
billing — Usage and billing
Utility Commands
Scoped Keys Mode
When using a scoped API key (restricted to a single container tag), only these commands are available:
search, add, remember, forget, update, profile, whoami
The tag is automatically set from the key's scope — no need to pass --tag.

