Skip to main content

llmctl

CI 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 o locales, hardware (NVIDIA, Apple Silicon/Metal, AMD, Vulkan/iGPU y CPU), 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 CI systemd --user / process
macOS (Python 3.11–3.13) macOS CI launchd + Apple Silicon Metal
Windows (Python 3.11–3.13) Windows CI 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.4.1-1.*.noarch.rpm
  • Debian / Ubuntu (.deb): sudo apt install ./llmctl_0.4.1_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 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)
  • Chat, benchmark y diagnóstico:
    • 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.4.1

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.4.1
File Size Uploaded Provenance Actions
llmctl_cli-0.4.1.tar.gz 66.3 kB With provenance Details for llmctl_cli-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 143.2 kB

Release files / llmctl_cli-0.4.1.tar.gz

Download URL llmctl_cli-0.4.1.tar.gz
Size 66.3 kB
Tags Source
SHA-256 checksum
How to use checksums
44e1e2a47ad117ae659775ce48fa65f1027181d2496ed73bcbf1e34bdd24bbdb
BLAKE2b-256 checksum
How to use checksums
55f6dabde9ae8f419e09b362459cff1a5c6348ff28a22f8663825f6c706450ab
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.4.1-py3-none-any.whl

Download URL llmctl_cli-0.4.1-py3-none-any.whl
Size 76.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
437c77b9191cf112e7eafa571ef250ec9852c8f673faefa7b51b6b8c7b31e09b
BLAKE2b-256 checksum
How to use checksums
3d9961289064e98800ee0e263a68a331b7b29ebd1c3ee34a8230e18923f24730
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.4.1

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