Offline analysis of LMStudio server logs.
Quickly inspect your local LMStudio usage: token counts, per-model statistics, generation speeds, and daily breakdowns — all from your local ~/.lmstudio/server-logs directory.
- Aggregate stats — total queries, prompt/completion tokens, average generation speed
- Per-model breakdown — queries, token counts, generation speed, and average latency per model
- Daily breakdown — usage trends across days with generation and wall-clock throughput
- Largest conversations — top conversations ranked by prompt tokens
- Slowest queries — identify the longest-running requests
- Time window filtering — analyze any custom time range with
-H/--hours
# Build and install
make install
# Or build locally
make buildRequires Go 1.21+.
# Last 24 hours (default)
lmstats
# Last 1 hour
lmstats -H 1
# Last week
lmstats -H 168
# Help
lmstats help ══════════════════════════════════════════════════════════════
LMStudio Server Logs — Last 24h
══════════════════════════════════════════════════════════════
Queries: 142
Total Tokens: 1.2M
Prompt: 345.6k
Completion: 874.3k
Avg Prompt Speed: 42.3 tok/s
Avg Generation: 38.7 tok/s
Avg Total Speed: 39.1 tok/s
Total Prompt Time: 8182ms
Total Gen Time: 22591ms
Total Wall Time: 30773ms
────────────────────────────────────────
Per Model:
Model Queries Prompt Comp Total Gen (tok/s) Avg Latency
─────────────────────────────── ────── ─────── ─────── ─────── ────────── ───────────
meta-llama/llama-3.1-8b-instr… 89 245.3k 512.1k 757.4k 41.2 24.31ms
mistral/mistral-7b-instruct 53 98.4k 362.2k 460.6k 35.8 27.64ms
────────────────────────────────────────
Per Day:
Date Queries Prompt Comp Total Gen (tok/s) Wall (tok/s)
──────────── ─────── ───────── ───────── ───────── ────────── ──────────
2026-04-21 89 245.3k 512.1k 757.4k 41.2 38.5
2026-04-20 53 98.4k 362.2k 460.6k 35.8 34.1
LMStats reads log files from ~/.lmstudio/server-logs/, which LMStudio organizes by month. It parses each .log file for chat completion timing data and aggregates the results.
No network calls, no data leaves your machine.