Unified CLI for local LLM serving — llama.cpp + TurboQuant GGUF backends, OpenAI-compatible HTTP on LAN. Sibling to voiceCLI and imageCLI. Historically consumed by lyra (LiteLLM library) and by claude-code (via the shared LiteLLM proxy); the Quadlet stack that served them is dormant since 2026-11-30 (see Deployment).
uv sync
mkdir -p ~/.roxabi/llmcli/models
cp llmcli.example.toml ~/.roxabi/llmcli/llmcli.toml
cp models/*.toml ~/.roxabi/llmcli/models/ # copy example model files, edit as needed
llmcli pull qwen3_6-35b-a3b-tq3 # download model into HF hub cacheServing is dormant: the Quadlet units (LiteLLM proxy on :18091, NATS worker) are disabled since 2026-11-30. To serve again, restore them with docs/QUADLET-DEPLOYMENT.md § 0 (proxy first and healthy, then the worker), then load a model: the worker launches llama-server on swap, not at start. swap is a NATS request from the operator CLI, which needs the hub URL, operator credentials and a target the worker answers to — see docs/deploy/remote-worker.md § Operator CLI NATS config:
WORKER_HOST=$(podman container inspect --format '{{.Config.Hostname}}' llmcli-nats-worker)
llmcli swap --host "$WORKER_HOST" qwen3_6-35b-a3b-tq3 # the worker launches llama-server for this model
llmcli status --host "$WORKER_HOST"
curl localhost:8091/v1/chat/completions -d '{"model":"...","messages":[...]}'| Command | Purpose |
|---|---|
llmcli pull <name> |
Download model into shared HF hub cache |
llmcli serve [name] |
Removed — serving went through the NATS worker Quadlet |
llmcli swap <name> |
Hot-swap running model (via NATS worker) |
llmcli stop |
Stop running engine (via NATS worker) |
llmcli status |
Engines, ports, VRAM, uptime (via NATS worker) |
llmcli list |
Catalog + running state (via NATS worker) |
llmcli chat <name> "..." |
One-shot OpenAI call (bypasses proxy) |
llmcli register-proxy |
Refresh llmCLI block in ~/.litellm/config.yaml |
The commands marked via NATS worker need a running NATS worker, disabled since 2026-11-30 (#153).
Config is split into two parts:
| File | Purpose |
|---|---|
~/.roxabi/llmcli/llmcli.toml |
Host settings ([host] only) |
~/.roxabi/llmcli/models/<name>.toml |
One file per model — name = model key |
Each model file is flat TOML (no section header):
# ~/.roxabi/llmcli/models/qwen3-14b-q5.toml
engine = "llamacpp"
repo = "Qwen/Qwen3-14B-GGUF"
file = "qwen3-14b-q5_k_m.gguf"
port = 8092
vram_gib = 11
flags = ["-ngl", "99", "-c", "8192", "-fa", "on", "--jinja"]To add a model: copy any file from models/ in this repo, drop it in ~/.roxabi/llmcli/models/, and edit. No restart needed — llmcli list picks it up immediately (once the NATS worker runs again).
Inline [models.*] in the main toml still works for backward compat; the models/ dir takes precedence on name conflict. M₂ (roxabitower, 5070 Ti 16 GB) held the heavy local models. M₁ (roxabituwer, 3080 10 GB) serves no local model — its VRAM goes to voiceCLI — and its catalog lists cloud specs only (engine = "remote").
Last deployed layout, dormant since 2026-11-30 (see Deployment):
llama-server :PORT ◄── llmcli-nats-worker (catalog-driven hot-swap)
▲
│ OpenAI API
├── lyra hub (litellm library, per-agent ModelConfig)
└── litellm proxy :18091 ◄── claude-code (ccl/cccl aliases)
Dormant since 2026-11-30. llmCLI ships two Podman Quadlet units managed by user-systemd. Both carry disabled = true in deploy/quadlet.toml, so the fleet planner installs neither on any host:
| Service | Port | Host role | State |
|---|---|---|---|
llmcli (LiteLLM proxy) |
18091 | llm-worker (M₂) |
disabled 2026-11-30 (#156) |
llmcli-nats-worker (NATS worker) |
— | llm-worker (M₂) |
disabled 2026-11-30 (#153) |
The claude-code aliases that target :18091 (guide) only work against a re-enabled proxy.
Re-enable → docs/QUADLET-DEPLOYMENT.md § 0: proxy first, then install only the selected units (./deploy/install.sh copies both). docs/QUADLET-DEPLOYMENT.md keeps the full runbook and docs/guides/deployment.md the deployment guide, both as reference.