Skip to main content

llmctl

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

CLI multiplataforma (Linux, macOS y Windows) en Python puro (sin dependencias externas en runtime) para gestionar presets del router de llama-server, modelos GGUF de Hugging Face, Ollama o carpetas locales, hardware (NVIDIA, Apple Silicon/Metal, AMD, Vulkan/iGPU y CPU), panel top en vivo, chat/benchmarks en terminal, perfiles locales/remotos con API key, binarios oficiales de llama.cpp y skills centralizadas (SKILL.md).

Estado por plataforma y empaquetado (CI en vivo)

Objetivo Estado en main Backend / Artefacto
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
Paquete .deb (Debian / Ubuntu) Package .deb llmctl_<ver>_all.deb
Paquete .rpm (Fedora / RHEL) Package .rpm llmctl-<ver>-1.*.noarch.rpm

Instalación en 1 comando (sin descargar ni clonar el repo)

Universal desde PyPI (Linux, macOS y Windows)

uv tool install llmctl-cli
# o con pipx / pip:
pipx install llmctl-cli
pip install --user llmctl-cli

(El paquete en PyPI se llama llmctl-cli, pero el comando instalado en tu terminal sigue siendo llmctl).

Script directo Linux y macOS

curl -fsSL https://raw.githubusercontent.com/Ana-Alonso/llmctl/main/install.sh | bash

Script directo Windows (PowerShell)

irm https://raw.githubusercontent.com/Ana-Alonso/llmctl/main/install.ps1 | iex

Paquetes nativos (desde GitHub Releases)

  • Fedora / RHEL (.rpm): sudo dnf install ./llmctl-0.5.0-1.*.noarch.rpm
  • Debian / Ubuntu (.deb): sudo apt install ./llmctl_0.5.0_all.deb
  • macOS / Linux (Homebrew): fórmula llmctl.rb adjunta en cada release.
  • Windows (Scoop): manifiesto llmctl.json adjunto en cada release.

Instalar llama-server oficial automáticamente (opcional)

Si todavía no tienes llama.cpp instalado en tu equipo:

llmctl server install --dry-run   # previsualiza el binario oficial según tu SO/GPU
llmctl server install             # descarga, extrae y guarda la ruta en config.toml
llmctl server update              # actualiza si hay nueva release en ggml-org/llama.cpp

Requisitos

  • Python >= 3.11 (biblioteca estándar; cero dependencias externas en runtime)
  • llama-server (llama.cpp): instalable con llmctl server install o detectado en PATH (no requerido en modo remoto)
  • Opcional: nvidia-smi (NVIDIA), rocm-smi/amd-smi (AMD), vulkaninfo (iGPU/Vulkan) o Apple Silicon (sysctl integrado en macOS)

Verificación inicial

llmctl --version
llmctl doctor
llmctl gpu
llmctl status

Backends de servicio multiplataforma

llmctl selecciona automáticamente el backend adecuado (o puedes forzarlo con --backend / LLMCTL_BACKEND / config.toml):

Plataforma / Entorno Backend Gestión
Linux (host) systemd systemd --user + journalctl (llmctl service install genera la unit con la ruta real de llama-server)
macOS launchd LaunchAgent en ~/Library/LaunchAgents/ + logs en ~/Library/Logs/llmctl/
Windows / Contenedores / WSL process Proceso en segundo plano con PID file + logs con tail -f nativo en Python
Servidor remoto remote Activado al usar --backend remote, un perfil remoto o LLMCTL_API_URL no-loopback

Comandos principales

  • Modelos y presets:
    • llmctl add [repo|archivo.gguf] — Añade un modelo de Hugging Face o un .gguf local (-i búsqueda en vivo con auto-mmproj y optimización CPU-only, -n <alias>, --file, --mmproj, --auto-mmproj, --mmproj-url, --cpu-optimize, --cpu-moe, --n-cpu-moe <N>, --no-restart)
    • llmctl import ollama — Importa a models.ini los modelos GGUF (y proyectores de visión) ya descargados por Ollama sin duplicar espacio en disco (--all, --dir, --cpu-optimize)
    • llmctl scan <carpeta> — Escanea recursivamente cualquier carpeta (LM Studio, Jan, descargas) en busca de .gguf y los registra con --add
    • llmctl set <alias> clave=valor [...] [--unset clave] — Edita o elimina parámetros de un preset en models.ini de forma atómica (p. ej. llmctl set qwen ctx-size=16384 threads=8)
    • llmctl rm [alias] — Elimina un preset (-i interactivo, --purge borra caché solo si ningún otro preset comparte el repo)
    • llmctl ls — Lista presets (HF y locales) y tamaño de caché (--json, --names-only)
    • llmctl ps — Lista modelos cargados y disponibles en el router (--json)
    • llmctl pull <alias> — Pre-descarga y carga un modelo vía llama-server con indicador de progreso en vivo
    • llmctl clean — Detecta y borra carpetas huérfanas en caché (--dry-run, --yes)
  • Monitor, chat, benchmark y diagnóstico:
    • llmctl top — Panel en vivo de VRAM/Metal/Vulkan, RAM, CPU, estado del servicio y modelos cargados (-n 1.5, --once, --json)
    • llmctl chat <alias> [prompt...] — Chat interactivo o one-shot con streaming SSE y soporte de pipes (git diff | llmctl chat qwen "revisa este diff")
    • llmctl bench <alias1> [alias2 ...] — Compara TTFT, prompt tok/s, gen tok/s y VRAM entre modelos (--runs N, --max-tokens N, --json)
    • llmctl test <alias> — Suite auto-detectada (--text, --vision, --tools, --embed, --fim, --all, --json)
    • llmctl gpu — Muestra VRAM/Metal/Vulkan, CPU (núcleos físicos/lógicos) y RAM (--json)
    • llmctl doctor — Comprueba entorno, binario, perfil, models.ini, hardware y servicio (--json)
    • llmctl free — Libera VRAM vía API router (/models/unload) o reiniciando el router
  • Perfiles, servidor remoto y API key:
    • llmctl profile set homelab --url http://192.168.1.50:8080 --key mi-token --prof-backend remote --use
    • llmctl profile list | use <nombre|default> | rm <nombre>
    • Flags globales: --profile <nombre>, --api-url <url>, --api-key <token> (o LLMCTL_PROFILE, LLMCTL_API_URL, LLMCTL_API_KEY)
  • Servicio y binarios:
    • llmctl on | off | restart | status | logs [-n N] [--no-follow]
    • llmctl service install | uninstall | info
    • llmctl server install | update | info
    • llmctl config — Abre models.ini (--app abre config.toml, --init crea config.toml, --show muestra configuración efectiva)
  • Skills centralizadas (sin requerir npx):
    • llmctl skill add <owner/repo|url|ruta> (--skill <nombre>, --all, opcional --via-npx)
    • llmctl skill import | list | rm <nombre> | run <skill> <alias> [-p "prompt"] [-f archivo]
  • Autocompletado e interactivo:
    • llmctl completion bash | zsh | fish | powershell
    • llmctl -i / --interactive

Activar autocompletado

# Bash
eval "$(llmctl completion bash)"

# Zsh
llmctl completion zsh > ~/.zsh/completions/_llmctl

# Fish
llmctl completion fish > ~/.config/fish/completions/llmctl.fish
# PowerShell (añadir a $PROFILE)
llmctl completion powershell | Out-String | Invoke-Expression

Desarrollo y empaquetado local

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 con cobertura >= 80%
uv build                   # sdist + wheel en dist/
./packaging/build.sh rpm   # o deb / all

Ver historial de cambios en CHANGELOG.md. Licencia MIT.

Metadata

Release files for llmctl-cli 0.6.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.6.0
File Size Uploaded Provenance Actions
llmctl_cli-0.6.0.tar.gz 79.6 kB With provenance Details for llmctl_cli-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 171.7 kB

Release files / llmctl_cli-0.6.0.tar.gz

Download URL llmctl_cli-0.6.0.tar.gz
Size 79.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c4b8c83d3a64ee06d61490a0c0a23ee2213e3cea4449057e35efaec436a57a6d
BLAKE2b-256 checksum
How to use checksums
26471e5d15f5ffb3445c8f7068abb288d5090a7e87b69542dea56214dec7b403
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 4, 2026.

Transparency log

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

Download URL llmctl_cli-0.6.0-py3-none-any.whl
Size 92.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90caedde58228aae25347bae360668ffa1de27b79a956a0a7e057c5be1f88428
BLAKE2b-256 checksum
How to use checksums
007f5bcac3082384d9a1419fe3ee3e877e79e192f27a505d3280bbcdfa43125e
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 4, 2026.

Transparency log

Security for llmctl-cli 0.6.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.6.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 4, 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