llmctl
Cross-platform (Linux, macOS, and Windows) pure-Python CLI & Local Web Studio with zero runtime dependencies to manage llama-server router presets (models.ini), Hugging Face / Ollama / LM Studio / Jan / local GGUF models, multimodal Deep Research (PDF/DOCX/XLSX/PPTX/EPUB/images, 1–5 academic rigor with OpenAlex & arXiv, native .docx/.md export), Scheduled Tasks, MCP Connectors (Stdio & HTTP), an automatic :8080 transparent reverse proxy for Cline/OpenCode/etc., hardware probes (NVIDIA CUDA, Apple Silicon Metal, AMD ROCm, Vulkan/iGPU, and CPU), live top monitoring, terminal chat & benchmarks, local/remote profiles, and centralized agent skills (SKILL.md).
Platform & Packaging Status (Live CI)
Installation
Universal via PyPI (Linux, macOS, Windows)
uv tool install llmctl-cli
# or with pipx / pip:
pipx install llmctl-cli
pip install --user llmctl-cli
(The PyPI distribution is llmctl-cli; the installed CLI command is llmctl.)
One-line Installer (Linux & macOS)
curl -fsSL https://raw.githubusercontent.com/Ana-Alonso/llmctl/main/install.sh | bash
One-line Installer (Windows PowerShell)
irm https://raw.githubusercontent.com/Ana-Alonso/llmctl/main/install.ps1 | iex
Native Packages (from GitHub Releases)
- Fedora / RHEL (
.rpm):sudo dnf install ./llmctl-0.10.0-1.*.noarch.rpm - Debian / Ubuntu (
.deb):sudo apt install ./llmctl_0.10.0_all.deb - macOS / Linux (Homebrew):
llmctl.rbformula attached to each release. - Windows (Scoop):
llmctl.jsonmanifest attached to each release.
Quick Start
Run the guided onboarding wizard to detect your GPU/CPU, initialize config.toml and models.ini, install llama-server if missing, and import existing Ollama models or add your first Hugging Face GGUF preset:
llmctl init
Or step by step:
llmctl server install # optional: download the official llama.cpp binary for your OS/GPU
llmctl doctor # verify environment, hardware, config, and service
llmctl add -i # interactive arrow-key Hugging Face GGUF browser with auto-mmproj
llmctl service install --web-proxy # auto-start Web UI + transparent OpenAI proxy on http://localhost:8080
llmctl research "Local LLM quantization" --rigor 4 --out report.docx
llmctl top # live VRAM/RAM/CPU & loaded-models dashboard
Requirements
- Python >= 3.11 (standard library only; zero third-party runtime dependencies)
llama-server(llama.cpp): installable viallmctl server installor auto-detected onPATH(not needed inremotemode)- Optional hardware tools:
nvidia-smi(NVIDIA),rocm-smi/amd-smi(AMD),vulkaninfo(iGPU/Vulkan), or Apple Silicon (sysctlbuilt into macOS)
Cross-Platform Service Backends
llmctl automatically picks the right service backend (or override with --backend / LLMCTL_BACKEND / config.toml):
| Platform / Environment | Backend | Management |
|---|---|---|
| Linux (host) | systemd |
systemd --user + journalctl (llmctl service install writes the unit with the resolved llama-server path) |
| macOS | launchd |
LaunchAgent in ~/Library/LaunchAgents/ + logs in ~/Library/Logs/llmctl/ |
| Windows / Containers / WSL | process |
Background process with PID file + native Python tail -f logs |
| Remote server | remote |
Enabled via --backend remote, a remote profile, or a non-loopback LLMCTL_API_URL |
Command Reference
Tip: Omitting
<alias>onload,unload,pull,test,chat,rm,show,inspect,tune, orsetopens an interactive arrow-key selector with live fuzzy filtering. Global flags include--lang auto|en|es,--json,-q/--quiet,-v/--verbose,--no-color,--yes,--profile,--api-url, and--api-key.
- Onboarding & Setup:
llmctl init— Guided first-run setup (hardware probe, config/presets init, optionalllama-serverinstall, Ollama import or HF preset, shell completion hint)llmctl doctor— Check environment, binary, active profile,models.ini, hardware, and service (--json)llmctl config— Openmodels.ini(--appopensconfig.toml,--initcreates starter config,--showprints effective config,--set-homelabconfigures LAN/Tailscale Homelab mode with optional password login & SSH)llmctl tunnel [user@host]— Open a local SSH port-forward (ssh -N -L) to access your remote Homelab Web UI securely on127.0.0.1
- Models & Presets:
llmctl get [org/repo[:quant]|file.gguf]— All-in-one pipeline: zero-download GGUFinspect+ real VRAM/RAM fit check (suggests smaller quants on OOM) +addwith optimaltunesettings (n-gpu-layers,cpu-moe, KV quant, auto-mmproj) +pull/load(-ilive HF search,-n alias,--ctx,--kv-type,--no-pull,--force,--json)llmctl add [repo|file.gguf]— Add a Hugging Face repo or local.gguf(-ilive search with arrow selector, auto-mmproj, and CPU-only tuning;-n <alias>,--file,--mmproj,--auto-mmproj,--mmproj-url,--cpu-optimize,--cpu-moe,--n-cpu-moe <N>,--no-restart)llmctl import ollama | lmstudio | jan— Zero-copy import of GGUF models (and visionmmprojprojectors) from Ollama, LM Studio, or Jan intomodels.ini(--all,--dir,--cpu-optimize)llmctl scan <folder>— Recursively scan any folder (LM Studio, Jan, downloads) for.gguffiles with automaticmmprojpairing (--add)llmctl show [alias]— Inspect all configured options, resolved on-disk.gguffile, and GGUF header summary (--json)llmctl set [alias] key=value [...] [--unset key]— Atomically edit or remove preset keys inmodels.ini(e.g.llmctl set qwen ctx-size=16384 threads=8)llmctl clone <src> <dst> [key=value ...]— Duplicate an existing preset under a new alias with optional overrides/unsets (e.g.llmctl clone qwen qwen-long ctx-size=32768 cache-type-k=q8_0 cache-type-v=q8_0)llmctl rm [alias]— Remove a preset (-iinteractive,--purgedeletes HF cache only if no other preset shares the repo)llmctl ls— List presets (HF & local) and cache footprint (--json,--names-only)llmctl ps— List loaded and available models in the router (--json)llmctl load [alias]— Load a specific model into VRAM via/models/load(with interactive picker & fallback,--json)llmctl unload [alias | --all]— Unload a specific model (or all with--all) from VRAM (--json)llmctl pull [alias]— Pre-download and load a model throughllama-serverwith a live spinnerllmctl clean— Detect and remove orphaned HF cache directories (--dry-run,--yes)
- Deep Research, Local Web UI, Scheduler & MCPs (Zero Runtime Deps):
llmctl research [alias] "<topic>"— Multimodal Deep Research with editable plan, agentic web search (DuckDuckGo / SearXNG / Brave / Tavily + OpenAlex & arXiv scholarly APIs), 1–5 academic rigor scale (--rigor 1..5), multi-format attachments (-f report.pdf -f slides.pptx -f data.xlsx -f img.png),--local-only, strictVision + Tools + Thinkingcapability gate (--ignore-capabilities), clickable citations, and native.docx/.mdexport (--out report.docx,--list,--show <id>,--export <id>)llmctl web [--port 8080] [--proxy] [--start-server] [--no-open]— Dark-studio local/Homelab Web UI (optional password login) with Chat,/mcpslash-command autocomplete, Temporary Chats, User Memory (auto-learns durable user context), Isolated Project Folders (editable name, color, description, instructions, or file upload.md/.txt/.pdf/.docx), Multimodal Deep Research, Scheduled Tasks (cron/daily/hourly/weekly runner with collapsible run history & Telegram/Discord/Browser Push alerts), 1-Click Personal/Homelab MCP Connectors (duplicate-free), live GPU VRAM load/unload controls, and 4-state model capability inspectorllmctl service install --web-proxy— Configures automatic login/boot startup serving the Web UI onhttp://localhost:8080while transparently proxying/v1/*,/models*,/slots, and/healthtollama-serveron:8081(zero config changes for Cline, OpenCode, Continue, Aider, orllmctl)
- Monitor, GGUF Inspector, Chat, Benchmark & Diagnostics:
llmctl inspect [alias|file.gguf|org/repo[:quant]|url]— Parse local or remote Hugging Face GGUF v2/v3 headers via HTTPRange(zero download!) and compute exact VRAM + KV-cache fit (--ctx N,--kv-type f16|q8_0|q4_0,--json)llmctl tune [alias]— Compute optimalctx-size,n-gpu-layers,flash-attn, KV quantization,threads, andcpu-moefor your hardware and apply with--applyllmctl top— Live dashboard for VRAM/Metal/Vulkan, RAM, CPU,/slotstelemetry, service status, and loaded models with color-coded bars and live hotkeys (-n 1.5,--once,--json)llmctl chat [alias] [prompt...]— Interactive REPL (/help,/model,/attach,/research,/export,/save,/stats,/think,/clear) or one-shot SSE streaming chat with--image, multi-format-f/--file(PDF/DOCX/XLSX/PPTX/ODT/EPUB/code),--no-think,--no-log, and pipe support (git diff | llmctl chat qwen "review this diff")llmctl cmd <task...>— Natural-language shell command assistant tailored to your OS/shell with--explainand safe confirmation before runningllmctl history [--search text] [--bench] [--clear]— Search local SQLite (0600) chat and benchmark historyllmctl validate— Static linter formodels.inicatching router-only CLI flags, key typos, missing files, and VRAM OOM risksllmctl bench <alias1> [alias2 ...]— Compare TTFT,prompt tok/s,gen tok/s(with delta vs previous run), and VRAM across models (--runs N,--max-tokens N,--prompt-tokens N,--markdown,--json)llmctl test [alias]— Auto-detected capability test suite (--text,--vision,--tools,--embed,--fim,--all,--json)llmctl gpu— Inspect VRAM/Metal/Vulkan, physical/logical CPU cores, and RAM (--json)llmctl free— Unload models via/models/unloador restart the router to reclaim VRAM
- Profiles, Remote Servers & API Keys:
llmctl profile set homelab --url http://192.168.1.50:8080 --key my-token --prof-backend remote --usellmctl profile list | use <name|default> | rm <name>- Env vars:
LLMCTL_PROFILE,LLMCTL_API_URL,LLMCTL_API_KEY(config.tomlis stored with0600permissions on POSIX)
- Service & Binaries:
llmctl on | off | restart | status | logs [-n N] [--no-follow]llmctl service install [--web-proxy | --no-web-proxy] [--upstream-port 8081] | uninstall | infollmctl server install | update | info
- Editor & Coding-Agent Integrations:
eval "$(llmctl env)"— ExportOPENAI_BASE_URL,OPENAI_API_KEY, andLLMCTL_MODEL(--shell bash|zsh|fish|powershell)llmctl integrate <opencode|continue|cline|aider|zed|claude-code|llama-swap> [--model alias] [--write path]— Generate ready-to-use configs populated from yourmodels.inipresets
- Centralized Skills (no
npxrequired):llmctl skill add <owner/repo|url|path>(--skill <name>,--all, optional--via-npx)llmctl skill import | list | rm <name> | run <skill> <alias> [-p "prompt"] [-f file]
- Shell Completions & Interactive Menu:
llmctl completion bash | zsh | fish | powershellllmctl -i/--interactive
Enable Shell Completions
# Bash
eval "$(llmctl completion bash)"
# Zsh
llmctl completion zsh > ~/.zsh/completions/_llmctl
# Fish
llmctl completion fish > ~/.config/fish/completions/llmctl.fish
# PowerShell (add to $PROFILE)
llmctl completion powershell | Out-String | Invoke-Expression
Development & Local Packaging
git clone https://github.com/Ana-Alonso/llmctl.git
cd llmctl
uv sync --all-groups
make lint # ruff format --check, ruff check, ty check
make test-cov # pytest with >= 80% coverage gate
uv build # sdist + wheel into dist/
./packaging/build.sh rpm # or deb / all
See CONTRIBUTING.md for guidelines, SECURITY.md for security reporting, and CHANGELOG.md for release history. Licensed under the MIT License.
Metadata
Release files for llmctl-cli 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llmctl_cli-0.10.0.tar.gz | 257.7 kB | With provenance | Details for llmctl_cli-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llmctl_cli-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for llmctl_cli-0.10.0-py3-none-any.whl |
Total release size: 534.8 kB
Release files / llmctl_cli-0.10.0.tar.gz
| Download URL | llmctl_cli-0.10.0.tar.gz |
|---|---|
| Size | 257.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9ea27c8d184ed43f148de91bdaada1326d356150410c2703495f6b08f75a0e3
|
|
BLAKE2b-256 checksum How to use checksums |
1ec4419ba0f8e48c233db712c6e34e4a43fcc29e0f93f4bdbb7c3a318ac62bb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / llmctl_cli-0.10.0-py3-none-any.whl
| Download URL | llmctl_cli-0.10.0-py3-none-any.whl |
|---|---|
| Size | 277.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75d32540b87ce32ed4cdde806ec1b131afd2d28d7470579b4513606538ea4bd4
|
|
BLAKE2b-256 checksum How to use checksums |
478aeac41e0baf1d7ec5478b9c280cf15404af6de887d85ed4804ab36121315e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for llmctl-cli 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for llmctl_cli-0.10.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.