:: INSTALL_PROTOCOL

Install memory
where your agents live.

One guided installer detects your machine, offers local or cloud setup, verifies AutoMem, then reviews every Codex, Claude Code, Cursor, OpenClaw, and Hermes write before installing.

automem.ai/install.sh launcher
curl -fsSL https://automem.ai/install.sh | sh
Detects
Node, npm, Docker, Git, agent roots
Verifies
/health and authenticated recall
Reviews
Paths, backups, and commands first
:: SETUP_PATHS
recommended

Hosted Cloud

Deploy on InstaPods or Railway, paste the generated HTTPS endpoint and token, then let the wizard wire your local agents.

curl -fsSL https://automem.ai/install.sh | AUTOMEM_INSTALL_TARGET=cloud sh
private

Local Docker

Clone AutoMem into ~/.automem/server, generate local tokens, start Docker Compose, verify /health, then install agent rules.

curl -fsSL https://automem.ai/install.sh | AUTOMEM_INSTALL_TARGET=local sh
fast path

Existing Endpoint

Use a running AutoMem instance you already control. The wizard verifies it before touching agent configuration.

curl -fsSL https://automem.ai/install.sh | AUTOMEM_INSTALL_TARGET=existing AUTOMEM_API_URL=https://memory.example sh
:: AGENT_TARGETS

Review before write.

The installer writes environment values, then delegates to the existing platform installers. Config files are backed up before changes, and platforms with unreliable automatic config still print exact manual snippets.

codex
mcp-automem install
claude-code
mcp-automem install
cursor
mcp-automem install
openclaw
mcp-automem install
hermes
mcp-automem install
:: ADVANCED_FLAGS
Flag / Env Purpose
AUTOMEM_INSTALL_TARGET local, cloud, or existing
AUTOMEM_CLIENTS Comma-separated agent list
AUTOMEM_API_URL AutoMem HTTP API endpoint
AUTOMEM_API_KEY Bearer token for authenticated deployments
AUTOMEM_LOCAL_DIR Local backend checkout path
AUTOMEM_YES=1 Apply the reviewed plan without prompting
AUTOMEM_DRY_RUN=1 Print the plan without writing files
AUTOMEM_NO_AGENT_INSTALL=1 Configure endpoint only
Need help remembering something?