lerim connect command registers agent platforms so Lerim knows where to find their sessions.
Supported platforms
Lerim currently supports these coding agents:| Platform | Session store | Format |
|---|---|---|
| Claude Code | ~/.claude/projects/ | JSONL files |
| Codex CLI | ~/.codex/sessions/ | JSONL files |
| Cursor | ~/Library/Application Support/Cursor/User/globalStorage/ (macOS) | SQLite state.vscdb, exported to JSONL cache |
| OpenCode | ~/.local/share/opencode/ | SQLite opencode.db, exported to JSONL cache |
More agents are coming soon. Check the GitHub repository for adapter contributions.
Auto-connect all platforms
The fastest way to get started is to let Lerim auto-detect all installed agents:Connect specific platforms
You can connect platforms individually:Custom session paths
If your agent stores sessions in a non-default location, use the--path flag:
Find your session directory
Locate where your agent stores its session data. This varies by platform and configuration.
Managing connections
List connected platforms
View all currently connected platforms:Disconnect a platform
Remove a platform connection:Connection workflow
Here’s the complete flow for connecting agents:Run init wizard
Start with the interactive setup:This detects installed agents and writes your initial config to
~/.lerim/config.toml.Connect additional platforms
If you install new agents later, connect them:Or connect specific platforms individually.
Session discovery
When you connect a platform:- Lerim validates the path exists
- Scans for session files in the expected format
- Reports the number of sessions found
- Stores the connection in
~/.lerim/config.toml
Troubleshooting
Platform shows 0 sessions
Platform shows 0 sessions
This usually means:
- The path is correct but no sessions exist yet (you haven’t used the agent)
- The path format changed in a newer version of the agent
- Sessions are stored in a custom location
--path to specify the correct location, or check the agent’s documentation for its session storage path.Connection shows 'missing' status
Connection shows 'missing' status
The path was valid when you connected it, but the directory no longer exists.Solution: Reconnect with the correct path or remove the connection:
Path not found error
Path not found error
Lerim couldn’t find the specified path.Solution: Verify the path exists and you have read permissions:
Multi-agent workflows
Lerim’s power comes from unifying memory across all your coding agents:- Use Claude Code at the terminal for quick fixes
- Use Cursor in your IDE for feature development
- Use Codex for code reviews
- Use OpenCode for complex refactoring