Documentation navigation
Docs/Install/Quick install

Quick install

Use the installer to start Lore with Docker or connect clients to an existing Lore server.

Use the installer when you want the shortest path to a working Lore server and local agent integrations.

Prerequisites

  • Docker with the Compose plugin (docker compose). On macOS, Docker Desktop includes both. On Linux, install Docker Engine and the docker compose plugin.
  • At least one supported agent runtime (Claude Code, Codex, Pi, OpenClaw, Hermes, or OpenCode) that you want to connect. The OpenCode prerelease is tested with OpenCode 1.18.3.
  • An OpenAI-compatible API key for embeddings (e.g. OpenAI, DeepSeek, or a local service). You will configure this in /setup after the installer finishes. Without it, semantic recall and Dream will not work.

Run the installer

The default install starts Lore with Docker Compose, writes local client config, and sets up supported agent channels on this machine.

*.bash
Shell
npx @loremem/cli

Chinese-language installer:

*.bash
Shell
npx @loremem/cli --lang zh

What the installer does

  • Downloads docker-compose.yml and a .env template from the Lore repo.
  • Starts the Lore server, PostgreSQL, and Redis containers.
  • Waits for the server to become healthy.
  • Creates ~/.lore/config.json with server URL and token.
  • Installs MCP configuration and hooks where the selected runtime uses them.
  • For OpenCode, downloads lore-opencode.zip and atomically installs the managed native plugin at ~/.config/opencode/plugins/lore-memory.js.
  • Installs thin lifecycle forwarders; boot guidance and recall formatting are returned by the Lore server.

The standard OpenCode installation does not configure MCP. OpenCode receives the exact native lore_* tools, so generic /api/mcp is only a manual fallback.

The native plugin suppresses duplicate Lore MCP imports at runtime. The installer also handles an earlier lifecycle-hook duplication path used by Claude compatibility layers: if an existing user-level oh-my-openagent.json[c] or legacy oh-my-opencode.json[c] is present and can be parsed safely, it sets claude_code.plugins_override["lore@lore"] = false. It preserves all unrelated fields and JSONC comments, records the previous value under ~/.lore/, and restores the previous value during OpenCode uninstall.

Lore does not modify Claude Code files. The installer never creates an oh-my-openagent configuration file; if the existing third-party file is unsafe or unparseable, it warns and skips the compatibility edit. Run the installer with LORE_OPENCODE_ALLOW_MCP=1 and use the same variable when starting OpenCode only when you explicitly need the legacy MCP fallback alongside the native plugin; reinstalling with the escape hatch restores any value previously changed by Lore.

You can inspect ~/.lore/ after the installer finishes to see what was written.

Common options

OptionUse it when
--channels claudecode,codexYou only want selected integrations. Use opencode for OpenCode.
--base-url http://host:18901Lore is already running somewhere else. This skips server startup.
--api-token TOKENThe server is protected by API_TOKEN.
--skip-dockerYou only want local client integrations.
--preYou want the pre-latest release channel.
--devYou want the dev-latest release channel.
--forceYou want to reinstall even if the version looks current.

Examples

Install only the OpenCode prerelease v1.3.15-pre.4:

*.bash
Shell
npx @loremem/cli install --pre --channels opencode

This installs lore-opencode.zip for OpenCode 1.18.3 or newer. If the opencode CLI is not installed, the channel reports a successful skip instead of failing the whole installer.

Install only Codex and Claude Code integrations:

*.bash
Shell
npx @loremem/cli install --channels codex,claudecode

Point this machine's agents at an existing Lore server:

*.bash
Shell
npx @loremem/cli install --base-url http://192.168.1.100:18901 --api-token YOUR_TOKEN

After the installer finishes

  1. Open http://127.0.0.1:18901/setup unless you connected to an existing server.
  2. Complete embedding, View LLM, and boot memory setup.
  3. Restart the agent runtimes you installed.
  4. For Codex, run codex mcp list to confirm Lore is registered. Then open a Codex session and type /hooks — trust the Lore hooks if prompted.
  5. For OpenCode, confirm ~/.config/opencode/plugins/lore-memory.js exists, restart OpenCode, and ask it to call lore_status. Boot uses experimental.chat.system.transform; prompt Recall uses chat.message and remains available when system injection is unavailable.
  6. Send a realistic prompt and confirm a recall block appears.

If you do not want the installer to manage the server or clients, use Manual configuration.

Manual configurationConfigure the Lore server and agent integrations by hand when you do not use the installer script.Use your own PostgreSQLRun Lore against an existing PostgreSQL instance with pgvector and optional Chinese full-text search extensions.First-run setupOpen /setup, configure model endpoints, bootstrap memory, and restart connected runtimes.Essential settingsSet server auth, embedding, View LLM, Redis cache, and backup defaults used by daily operation.