Overview
Print a summary of the current Lerim runtime state: connected platforms, memory count, session queue stats, and timestamps of the latest sync/maintain runs.This command requires a running Lerim server. Start it with
lerim up (Docker) or lerim serve (direct).Syntax
Parameters
Output structured JSON instead of human-readable text.
Examples
Basic status
Get a human-readable status summary:JSON output
Get structured status for scripting:Status fields
connected_agents
List of connected agent platforms with their session counts:name- Platform identifier (claude, cursor, opencode, codex)path- Filesystem path to session storesession_count- Number of sessions discoveredexists- Whether the path exists on disk
memory_count
Total number of memory items (decisions + learnings) in the store.sessions_indexed_count
Number of sessions that have been indexed and processed.queue
Extraction queue statistics:pending- Sessions queued for extractionprocessing- Sessions currently being extractedcompleted- Sessions successfully extractedfailed- Sessions that failed extraction
last_sync / last_maintain
Timestamps of the most recent sync and maintain runs (ISO-8601 format).How it works
- The command sends an HTTP GET request to
/api/statuson the running Lerim server - The server aggregates runtime state from:
- Connected platforms registry (
~/.lerim/platforms.toml) - Memory directory (
<repo>/.lerim/memory/) - Sessions database (
~/.lerim/index/sessions.db) - Queue state and run history
- Connected platforms registry (
- The response is formatted and displayed
Use cases
Check if Lerim is running
Monitor queue depth
Verify agent connections
Exit codes
- 0: Success - server is running and status returned
- 1: Error - server not running or unreachable
- 2: Usage error - invalid arguments
Related commands
lerim sync
Run sync to process pending sessions
lerim dashboard
View detailed metrics in web UI
Notes
- If the server is not running, you’ll see:
Lerim is not running. Start with: lerim up (Docker) or lerim serve (direct) - The status endpoint is lightweight and safe to poll frequently
- Use
--jsonfor monitoring scripts and automation