llmctl
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)
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.rbadjunta en cada release. - Windows (Scoop): manifiesto
llmctl.jsonadjunto 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 conllmctl server installo detectado enPATH(no requerido en modo remoto)- Opcional:
nvidia-smi(NVIDIA),rocm-smi/amd-smi(AMD),vulkaninfo(iGPU/Vulkan) o Apple Silicon (sysctlintegrado 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.gguflocal (-ibúsqueda en vivo con auto-mmprojy 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 amodels.inilos 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.ggufy los registra con--addllmctl set <alias> clave=valor [...] [--unset clave]— Edita o elimina parámetros de un preset enmodels.inide forma atómica (p. ej.llmctl set qwen ctx-size=16384 threads=8)llmctl rm [alias]— Elimina un preset (-iinteractivo,--purgeborra 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íallama-servercon indicador de progreso en vivollmctl 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/sy 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 --usellmctl profile list | use <nombre|default> | rm <nombre>- Flags globales:
--profile <nombre>,--api-url <url>,--api-key <token>(oLLMCTL_PROFILE,LLMCTL_API_URL,LLMCTL_API_KEY)
- Servicio y binarios:
llmctl on | off | restart | status | logs [-n N] [--no-follow]llmctl service install | uninstall | infollmctl server install | update | infollmctl config— Abremodels.ini(--appabreconfig.toml,--initcreaconfig.toml,--showmuestra 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 | powershellllmctl -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.5.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.5.0.tar.gz | 71.3 kB | With provenance | Details for llmctl_cli-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llmctl_cli-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for llmctl_cli-0.5.0-py3-none-any.whl |
Total release size: 154.7 kB
Release files / llmctl_cli-0.5.0.tar.gz
| Download URL | llmctl_cli-0.5.0.tar.gz |
|---|---|
| Size | 71.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9a16fc12911cadf5def9ed80793b6ed8e8b8854acfa56bca7ec997b76fcabd2
|
|
BLAKE2b-256 checksum How to use checksums |
3245e15336dc69a74131be75e7e6caa63a3117ab4aa574f4aab4c95d2384f20c
|
| 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 logRelease files / llmctl_cli-0.5.0-py3-none-any.whl
| Download URL | llmctl_cli-0.5.0-py3-none-any.whl |
|---|---|
| Size | 83.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19fa780f68c6ceb1583bf7a4c377a8266a42aa36a43e4529742259b1445ee813
|
|
BLAKE2b-256 checksum How to use checksums |
590b5175f84e1b40ffaed2d3685b62e2c7b001caef718c286f5928107df44528
|
| 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 logSecurity for llmctl-cli 0.5.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.5.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 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.