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.11.0-1.*.noarch.rpm
  • Debian / Ubuntu (.deb): sudo apt install ./llmctl_0.11.0_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, --set-homelab configures 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 on 127.0.0.1
    • llmctl data info|export|import|purge — Full user data sovereignty (100% local, 0 telemetry): inspect file paths & sizes, export/import portable .zip backups, and physically purge data with cascading secure_delete + VACUUM
  • Models & Presets:
    • llmctl get [org/repo[:quant]|file.gguf] — All-in-one pipeline: zero-download GGUF inspect + real VRAM/RAM fit check (suggests smaller quants on OOM) + add with optimal tune settings (n-gpu-layers, cpu-moe, KV quant, auto-mmproj) + pull/load (-i live HF search, -n alias, --ctx, --kv-type, --no-pull, --force, --json)
    • 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/Homelab Web UI (optional password login) with Chat, /mcp slash-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 inspector
    • 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.11.0

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.11.0
File Size Uploaded Provenance Actions
llmctl_cli-0.11.0.tar.gz 267.2 kB With provenance Details for llmctl_cli-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 554.1 kB

Release files / llmctl_cli-0.11.0.tar.gz

Download URL llmctl_cli-0.11.0.tar.gz
Size 267.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e7042152840ff884b58bceec06eceb99f88862c5fd80cafeb09c68cd1cc8d47
BLAKE2b-256 checksum
How to use checksums
242098d9c58a368cd3cdb325030c232d2c1fdbb76b607c6afe9697f2f565085a
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.11.0-py3-none-any.whl

Download URL llmctl_cli-0.11.0-py3-none-any.whl
Size 287.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d458946a3abc53a5cdcc886431c446b9de2ff99d7a43bc8cd043c20fb7579c46
BLAKE2b-256 checksum
How to use checksums
a1074b95d0aef4a9604530075dc1b6da697266c5575d2b75d23b40411c0cece0
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.11.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.

Select from 2 files

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