@atomicmemory/cli) is a human- and agent-friendly command-line tool for interacting with AtomicMemory memory workflows directly from your terminal or from automation scripts. It is a distinct package from @atomicmemory/mcp-server: the MCP server (atomicmemory-mcp) is a stdio protocol process designed to be launched by agent hosts, while the CLI (atomicmemory) is a conventional command-line program you run interactively or call from shell scripts and CI pipelines.
Installation
Install the CLI globally with npm, or run it on demand withnpx without a global install:
atomicmemory. The CLI requires Node.js 18 or later.
Running
atomicmemory with no arguments in an interactive terminal opens the built-in Ink UI. Use atomicmemory help for a plain text command reference, or pass --no-interactive to suppress the UI in scripts.Initializing your config
After installing, runinit to point the CLI at your AtomicMemory Core instance and set your default user scope:
~/.atomicmemory/config.json. You can inspect or edit it at any time with atomicmemory config.
Command groups
The CLI surface is organized into four logical groups:setup
Configure your installation. Commands:
init, config, hooks, completion.diagnose
Inspect connection health and validate your config. Commands:
doctor, status, validate.agent
Manage agent-facing resources. Commands:
skill, help, version.memory
Work with memories directly. Commands:
add, ingest, search, package, list, get, delete, import.atomicmemory help --json to get the full machine-readable command tree, which is useful for driving the CLI from automation.
Configuration and precedence
The CLI resolves settings in the following priority order — higher entries win:- CLI flags passed at invocation time
ATOMICMEMORY_*environment variables~/.atomicmemory/config.json— the local config file written byinit- Command defaults built into the CLI
--user, the ATOMICMEMORY_SCOPE_USER environment variable, or your config file.
You can override provider and scope settings on any individual command:
Agent output mode
When calling the CLI from automation scripts or agent pipelines, pass--agent to receive stable, machine-parseable JSON envelopes instead of human-formatted output:
--agent mode are written to stdout (not stderr) and exit with a non-zero code, making them easy to detect in any scripting environment.