setup, diagnose, agent, and memory — each targeting a distinct part of the memory workflow. Every command accepts the shared flags --provider, --api-url, --user, and --namespace to override config-file defaults per invocation. All commands also accept --agent to emit stable JSON envelopes suitable for script consumption.
Setup commands
Thesetup group configures your local AtomicMemory environment and integrates the CLI with the agent hosts you use.
Initialize config
atomicmemory init writes ~/.atomicmemory/config.json and is typically the first command you run after installation.--api-key-stdin to read your API key from stdin instead of a flag, keeping it out of shell history.Inspect and edit config
atomicmemory config shows your current configuration (API keys are redacted by default). Use config set to update individual keys without re-running init.Install lifecycle hooks
atomicmemory hooks install emits lifecycle hook configuration for a supported agent host. Node.js is the recommended runtime and is bundled as atomicmemory hooks run. Python is an advanced option for teams that set ATOMICMEMORY_PYTHON_HOOK_BIN.The
hooks install command emits config — it does not mutate your agent host’s own config files. Follow the printed instructions to apply the output.Diagnose commands
Thediagnose group helps you verify connectivity to your AtomicMemory Core instance and catch misconfiguration before it affects agent workflows.
atomicmemory doctor
atomicmemory doctor
Runs the full diagnostic suite: connection check, config validation, scope resolution, and provider health. Start here whenever something isn’t working.
atomicmemory status
atomicmemory status
Prints a concise summary of the current connection state — useful for a quick pulse check without the full diagnostic output.
atomicmemory validate
atomicmemory validate
Validates your config file against the published schema and reports any missing required fields or type errors.
Memory commands
Thememory group covers the full lifecycle of individual memories: adding, ingesting, searching, packaging, listing, retrieving by ID, deleting, and importing.
Adding a memory
Useadd to write a single memory directly, without going through the ingest pipeline:
Ingesting a conversation turn
Useingest to process a structured conversation turn (e.g. a JSON file produced by an agent host). The ingest pipeline extracts discrete memories from the turn:
Searching memories
search performs semantic search over your scoped memories and returns ranked results:
Packaging context for an agent
package retrieves memories relevant to a query and assembles them into a context block that fits within a token budget — ideal for prepending to a system prompt:
Listing memories
list enumerates memories in scope, with optional pagination:
Getting a specific memory
get retrieves the full details of a single memory by its ID:
Deleting a memory
delete removes a memory by ID:
Importing from an export
import loads memories from a supported export format. Currently supports llmwiki exports:
Agent commands
Theagent group provides resources for embedding AtomicMemory awareness into agent prompts and for reporting version information.
atomicmemory skill get
atomicmemory skill get
Prints the AtomicMemory skill definition — a structured prompt fragment you can embed in an agent’s system prompt to teach it how to use memory tools effectively.
atomicmemory version
atomicmemory version
Reports the installed CLI version.
atomicmemory help
atomicmemory help
Prints command reference in human-readable format. Pass
--json for a machine-readable command tree.Agent mode (--agent)
All commands accept a top-level --agent flag that switches output to stable JSON envelopes. Use this whenever the CLI is invoked by another program, a CI step, or an agent tool call.