npx supermemory.
It does two things:
Manage your cloud memory
npx supermemory <command> talks to the hosted platform. Add, search, and manage memories, documents, tags, keys, connectors, and teams.Run a local server
npx supermemory local downloads and runs the self-hosted memory engine on your machine — one binary, zero config.Install
You can run every command throughnpx with no install:
npx:
supermemory form — prefix with npx if you haven’t installed globally.
Authenticate
Most commands act on your cloud account, so authenticate first:npx supermemory local does not require authentication — it runs entirely on your machine and generates its own API key on first boot. See Local server.Configuration
The CLI resolves config from three scopes, most specific wins:| Scope | File | Use case |
|---|---|---|
project | .supermemory/config.json (gitignored) | Per-machine secrets, API keys |
team | .supermemory/team.json (committed) | Shared container tag, team-wide defaults |
global | ~/.config/supermemory/config.json | Defaults for all projects on this machine |
Environment variables
| Variable | Description |
|---|---|
SUPERMEMORY_API_KEY | API key for authentication |
SUPERMEMORY_TAG | Override the default container tag |
OTEL_EXPORTER_OTLP_ENDPOINT | OpenTelemetry collector endpoint |
Global flags
Available on every command:| Flag | Description |
|---|---|
--json | Force machine-readable JSON output |
--tag <string> | Override the default container tag for this command |
--help | Show help for any command |
Next steps
Command reference
Every command and flag — add, search, docs, tags, keys, connectors, teams, and more.
Local server
npx supermemory local — run the memory engine on your own machine.