Documentation navigation
Docs/Connect agents/Connect an agent

Connect an agent

Use the installer with selected channels, server URL, and API token.

The installer can configure selected channels:

Installer path

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

Use --base-url when the server is already running:

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

Shared connection settings live in ~/.lore/config.json; plugin-specific config can override them, while legacy environment variables are only fallbacks:

ValueMeaning
base_url / baseUrlLore server origin, without a trailing slash
api_token / apiTokenbearer token when the server uses API_TOKEN
client_typeruntime identity sent to Lore: codex, claudecode, pi, openclaw, hermes, or opencode
native OpenCode toolsexact names from lore_guidance through lore_move_node
startup hookloads boot memory for the current runtime
prompt hookfetches recall candidates for the current user prompt
MCP toolsread, search, create, update, move, and delete Lore memory nodes

For the OpenCode prerelease v1.3.15-pre.4, tested with OpenCode 1.18.3, use:

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

The installer places lore-memory.js from lore-opencode.zip at ~/.config/opencode/plugins/lore-memory.js. Manual ZIP installation uses the same path and shared ~/.lore/config.json. Boot enters system context through experimental.chat.system.transform; prompt Recall uses chat.message. If system injection is unavailable, the plugin warns and fails open while prompt Recall continues. Standard OpenCode installation does not configure MCP; /api/mcp is a manual fallback only.

Restart the agent after changing plugin files, MCP config, hooks, or token values. Codex users should open /hooks and trust Lore hooks if prompted.

After connection is verified, move duplicated durable instructions out of local agent docs and into Lore. Keep only bootstrap guidance locally.

Choose runtimesPick the agent runtimes that should share the same Lore memory graph.What agents receiveUnderstand boot memory, recall candidates, MCP tools, and usage tracking.