Connecting Trace Sources¶
Lerim reads trace data from supported sources and turns it into reusable context.
There are two connection paths:
- Native adapters read completed local sessions and feed Lerim's compiler.
- MCP client config adds Lerim's context and trace-submission tools to compatible clients. A specific client is only claimed as live-tool-call accepted when the integration matrix lists installed-client evidence for it.
Native Auto-detect¶
Native Manual Connect¶
lerim connect claude
lerim connect codex
lerim connect cursor
lerim connect opencode
lerim connect pi
Custom path¶
MCP Clients¶
Install Lerim into MCP-compatible agent clients:
Or connect one target:
lerim connect codex --mode mcp
lerim connect claude-code --mode mcp
lerim connect cursor --mode mcp
lerim connect opencode --mode mcp
lerim connect gemini-cli --mode mcp
lerim connect cline --mode mcp
lerim connect cline-cli --mode mcp
lerim connect claude-desktop --mode mcp
lerim connect openclaw --mode mcp
lerim connect hermes --mode mcp
lerim connect goose --mode mcp
lerim connect roo-code --mode mcp
lerim connect kilo-code --mode mcp
lerim connect windsurf --mode mcp
lerim connect openhuman --mode mcp
Every real write creates a timestamped backup when the target config already exists.
MCP config is the retrieval and explicit-submit path. By itself, it does not
make Lerim scan that agent's local history. A connected MCP client can read
stored context with lerim_context_brief, lerim_context_search,
lerim_context_answer, or lerim_records_list. It can add a completed run to
Lerim only if it calls lerim_trace_submit with the completed transcript and
scope metadata.
Check Connections¶
Custom agents¶
Custom agents can use MCP if they are MCP clients. If they export completed workflow traces instead, clean those traces into Lerim canonical JSONL, then register the clean folder as a custom project:
lerim project add ~/lerim-traces/support-clean \
--type custom \
--source-profile support
lerim ingest --agent custom
Add --source-profile <id> when that folder should extract through a bundled
or custom profile. See Custom Trace Folders and
Customize Lerim For Your Use Case.
Do not register raw vendor logs directly unless they already match Lerim's canonical JSONL schema. The cleaner/exporter is the adapter for unsupported agents, and it owns redaction, structure mapping, and retention before Lerim extracts durable context.