Skip to main content

llmctl

Linux macOS Windows Release PyPI Python 3.11+ Zero Runtime Deps License: MIT

Leer en Español (README.es.md)

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)

Target main Status Backend / Artifact
Linux (Ubuntu, Python 3.11–3.13 + lint + ty) Linux systemd --user / process
macOS (Python 3.11–3.13) macOS launchd + Apple Silicon Metal
Windows (Python 3.11–3.13) Windows process + NVIDIA / Vulkan / CPU
Debian / Ubuntu .deb Package .deb llmctl_<ver>_all.deb
Fedora / RHEL .rpm Package .rpm llmctl-<ver>-1.*.noarch.rpm

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.8.2-1.*.noarch.rpm
  • Debian / Ubuntu (.deb): sudo apt install ./llmctl_0.8.2_all.deb
  • macOS / Linux (Homebrew): llmctl.rb formula attached to each release.
  • Windows (Scoop): llmctl.json manifest 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 via llmctl server install or auto-detected on PATH (not needed in remote mode)
  • Optional hardware tools: nvidia-smi (NVIDIA), rocm-smi/amd-smi (AMD), vulkaninfo (iGPU/Vulkan), or Apple Silicon (sysctl built 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> on load, unload, pull, test, chat, rm, show, inspect, tune, or set opens 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, optional llama-server install, Ollama import or HF preset, shell completion hint)
    • llmctl doctor — Check environment, binary, active profile, models.ini, hardware, and service (--json)
    • llmctl config — Open models.ini (--app opens config.toml, --init creates starter config, --show prints effective config)
  • Models & Presets:
    • llmctl add [repo|file.gguf] — Add a Hugging Face repo or local .gguf (-i live 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 vision mmproj projectors) from Ollama, LM Studio, or Jan into models.ini (--all, --dir, --cpu-optimize)
    • llmctl scan <folder> — Recursively scan any folder (LM Studio, Jan, downloads) for .gguf files with automatic mmproj pairing (--add)
    • llmctl show [alias] — Inspect all configured options, resolved on-disk .gguf file, and GGUF header summary (--json)
    • llmctl set [alias] key=value [...] [--unset key] — Atomically edit or remove preset keys in models.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 (-i interactive, --purge deletes 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 through llama-server with a live spinner
    • llmctl 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, strict Vision + Tools + Thinking capability gate (--ignore-capabilities), clickable citations, and native .docx / .md export (--out report.docx, --list, --show <id>, --export <id>)
    • llmctl web [--port 8080] [--proxy] [--start-server] [--no-open] — Dark-studio local Web UI with Chat, Multimodal Deep Research, Scheduled Tasks (cron/daily/hourly/weekly runner), MCP Connectors (Stdio & HTTP JSON-RPC 2.0 live tool calls), and model capability inspector (Vision, Tools, Thinking, Code, Audio, Embed, MoE, Quant, ctx-size)
    • llmctl service install --web-proxy — Configures automatic login/boot startup serving the Web UI on http://localhost:8080 while transparently proxying /v1/*, /models*, /slots, and /health to llama-server on :8081 (zero config changes for Cline, OpenCode, Continue, Aider, or llmctl)
  • 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 HTTP Range (zero download!) and compute exact VRAM + KV-cache fit (--ctx N, --kv-type f16|q8_0|q4_0, --json)
    • llmctl tune [alias] — Compute optimal ctx-size, n-gpu-layers, flash-attn, KV quantization, threads, and cpu-moe for your hardware and apply with --apply
    • llmctl top — Live dashboard for VRAM/Metal/Vulkan, RAM, CPU, /slots telemetry, 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 --explain and safe confirmation before running
    • llmctl history [--search text] [--bench] [--clear] — Search local SQLite (0600) chat and benchmark history
    • llmctl validate — Static linter for models.ini catching router-only CLI flags, key typos, missing files, and VRAM OOM risks
    • llmctl 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/unload or 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 --use
    • llmctl profile list | use <name|default> | rm <name>
    • Env vars: LLMCTL_PROFILE, LLMCTL_API_URL, LLMCTL_API_KEY (config.toml is stored with 0600 permissions 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 | info
    • llmctl server install | update | info
  • Editor & Coding-Agent Integrations:
    • eval "$(llmctl env)" — Export OPENAI_BASE_URL, OPENAI_API_KEY, and LLMCTL_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 your models.ini presets
  • Centralized Skills (no npx required):
    • 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 | powershell
    • llmctl -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.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmctl-cli 0.8.2
File Size Uploaded Provenance Actions
llmctl_cli-0.8.2.tar.gz 225.2 kB With provenance Details for llmctl_cli-0.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llmctl-cli 0.8.2
File Interpreter ABI Platform Actions
llmctl_cli-0.8.2-py3-none-any.whl Python 3 none any Details for llmctl_cli-0.8.2-py3-none-any.whl

Total release size: 469.7 kB

Release files / llmctl_cli-0.8.2.tar.gz

Download URL llmctl_cli-0.8.2.tar.gz
Size 225.2 kB
Tags Source
SHA-256 checksum
How to use checksums
16c82b91da766a5a7b861d4b05f546d8266d394a6ad77d200894b296e4ae9d5b
BLAKE2b-256 checksum
How to use checksums
0b647159db5fe84ad523abf6fe69702d4de18ef5604e0dda944f0dcab4474238
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 log

Release files / llmctl_cli-0.8.2-py3-none-any.whl

Download URL llmctl_cli-0.8.2-py3-none-any.whl
Size 244.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37aab6b2f05b5a26bea73b246913a8a63659afbf40ed8ab5152dd3bfc6a008c6
BLAKE2b-256 checksum
How to use checksums
92adb2976d46decaf9a09d9b6dfb6cc1217cec09988f0d777712c524ab8ee310
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 log

Security for llmctl-cli 0.8.2

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.

Select from 2 files

Attestation for llmctl_cli-0.8.2.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page