Skip to content

locallens doctor

Run health checks on all LocalLens dependencies.

Usage

bash
locallens doctor [OPTIONS]

Options

OptionDefaultDescription
--formatrichOutput format: rich or json

Checks performed

CheckCritical?What it tests
Qdrant EdgeYesLocal shard is accessible and contains data
Qdrant ServerNoDocker Qdrant is running (only for web dashboard)
OllamaNoOllama is reachable (only for ask)
Embedding ModelYesSentence-transformers model loads correctly
Voice STTNoMoonshine speech-to-text is installed
Voice TTSNoPiper text-to-speech is installed
Disk SpaceNoSufficient free disk space

Examples

bash
locallens doctor

Rich output

┌──────────────────────────────────────────────────────┐
│                  LocalLens Doctor                     │
├─────────────────┬────────┬───────────────────────────┤
│ Check           │ Status │ Detail                    │
├─────────────────┼────────┼───────────────────────────┤
│ Qdrant Edge     │   ✓    │ Shard OK, 1284 points     │
│ Qdrant Server   │   -    │ Not running (optional)    │
│ Ollama          │   ✓    │ Running at localhost:11434 │
│ Embedding Model │   ✓    │ all-MiniLM-L6-v2 (384)    │
│ Voice STT       │   -    │ Not installed (optional)   │
│ Voice TTS       │   -    │ Not installed (optional)   │
│ Disk Space      │   ✓    │ 45.2 GB free              │
└─────────────────┴────────┴───────────────────────────┘

JSON output

bash
locallens doctor --format json
json
{
  "checks": [
    { "name": "Qdrant Edge", "status": "ok", "message": "1284 points in shard" },
    { "name": "Ollama", "status": "ok", "message": "Running at http://localhost:11434" },
    { "name": "Embedding Model", "status": "ok", "message": "all-MiniLM-L6-v2 (384-dim)" },
    { "name": "Voice STT", "status": "warn", "message": "Not installed (optional)" },
    { "name": "Voice TTS", "status": "warn", "message": "Not installed (optional)" },
    { "name": "Disk Space", "status": "ok", "message": "45.2 GB free" }
  ],
  "exit_code": 0
}

The exit code is 0 if all critical checks pass, 1 otherwise. Critical checks are Qdrant Edge and Embedding Model.

Released under the MIT License.