CLI de RightNow
Actualizado
El comando rightnow hace tu parte de una optimización, en la máquina que sirve tu modelo. Descarga un kit, lo comprueba, lo sirve, lo verifica junto al motor original y lo revierte.
Instalar
En Linux o macOS, el instalador comprueba el binario firmado antes de instalar nada:
Coloca rightnow en ~/.local/bin y nunca edita el perfil de tu shell. Si ~/.local/bin no está en tu PATH, imprime la línea que debes añadir.
En Windows, ejecuta esto en PowerShell. Comprueba la misma firma antes de instalar nada:
| Plataforma | Pasos del kit |
|---|---|
linux-x64 | Sí |
linux-arm64 | Sí |
linux-x64-musl | Sí |
linux-arm64-musl | Sí |
darwin-arm64 | No |
darwin-x64 | No |
windows-x64 | No |
Calentar, servir, verificar y revertir un kit solo funciona en Linux. Todos los demás comandos funcionan en todas las plataformas.
Cada binario tiene su suma de comprobación en SHA256SUMS, firmada en SHA256SUMS.sig, junto a él.
Iniciar sesión
Ejecuta rightnow login en la máquina. Imprime un código: el propietario del espacio de trabajo lo aprueba en la consola de RightNow. La CLI no envía datos de tu máquina.
La sesión se guarda en el llavero de tu sistema. En una máquina sin llavero, como un servidor de GPU, se guarda en un archivo que solo tu usuario puede leer. rightnow whoami muestra el espacio de trabajo en el que la máquina ha iniciado sesión.
Comandos
Los comandos de la versión 2.0.0:
| Comando | Qué hace |
|---|---|
rightnow version | Print the CLI's version. |
rightnow doctor | Read this machine: GPU, driver, which GPUs are in use (free_gpus), engine, systemd, disk, user. Sends nothing. |
rightnow trace import <file> --out <out> | Make a trace from your own request log (JSONL or CSV). Prompts in the log are never read further or copied. |
rightnow trace metrics --url <url> --out <out> | Make a trace from the engine's own /metrics page over a window, with no change to serving (vLLM). |
rightnow trace record --upstream <upstream> --out <out> | Record a trace by passing the client's requests through to your engine for a while. Numbers only, never any text. |
rightnow trace check <file> | Check a trace file against the contract (rightnow-trace.v1). |
rightnow trace show <file> | Show everything a trace would send: its fields and its first rows. |
rightnow login | Sign in from this machine with a code the workspace owner approves in the RightNow console. Sends no machine details. Already signed in: says so and starts nothing. |
rightnow logout | Sign out: end this machine's session on the server, then delete the saved sign-in. |
rightnow whoami | The workspace this machine is signed in to. |
rightnow runs | Your optimization runs and whether each kit is ready. |
rightnow run <id> | One run: its order, its state, its result and its kit. |
rightnow trace upload <file> --run <run> | Send a checked trace (numbers only) to a run that has not started. Check it first with trace show. |
rightnow kit pull <id> | Download a paid kit, check its signature and every file, and unpack it into a folder that becomes its kit home. Installs nothing. |
rightnow kit check <dir> | Check a pulled kit folder against its signed list (signature, every file's size and sha256) and whether it fits this machine. Runs nothing. Under --json, made_for and this_machine hold what fit and fits hold. fit and fits go away in 0.2. |
rightnow kit warm <dir> | Run the kit's warm step once before traffic (it fills the GPU driver's cache the kit was measured with). |
rightnow kit serve <dir> | Check the kit folder again, then run the engine with the kit (serve.sh) in the foreground until you stop it (Ctrl-C). Words after -- go to the engine. With --json (and over MCP) nothing runs: the exact line comes back for your own process manager. |
rightnow kit verify <dir> | Run the kit's own verify program (the engine without the kit, then with it, on this machine's GPU), show the numbers, parity first. Use a GPU that is not serving. Sends nothing unless --post. Its work folder, with the engines' caches and the result, is rightnow/verify/<kit id> in your cache folder ($XDG_CACHE_HOME, else ~/.cache) and stays after the run. Set XDG_CACHE_HOME to keep it off a small home disk. |
rightnow kit rollback <dir> | Check the kit folder again, then run the engine as it was before the kit (serve-stock.sh) in the foreground until you stop it (Ctrl-C). Words after -- go to the engine. With --json (and over MCP) nothing runs: the exact line comes back for your own process manager. |
rightnow update <dir> | Take the newest kit of the run you serve: download it beside the kit in use, check it, warm it, verify it on this machine, then switch (the kit before stays for --back). Run it on a GPU that is not serving, or pass --no-verify. --check only says whether there is one. |
rightnow mcp | Serve these commands as tools to a coding agent over MCP (stdio). |
Los comandos de traza están en esta versión, pero una ejecución todavía no usa una traza: cada solicitud se mide con la carga estándar.
Todos los comandos aceptan --json: imprimen un único documento JSON, y el código de salida indica cómo terminó el comando.
Estos pasos ejecutan los propios programas del kit en tu máquina: rightnow kit warm, rightnow kit serve, rightnow kit verify, rightnow kit rollback, rightnow update. Lee cada paso antes de ejecutarlo.
Tu agente de programación
Un agente de programación puede hacer cada paso por ti. Copia este prompt en él, con el id de tu ejecución en lugar de RUN_ID:
O dale al agente los comandos como herramientas: añade este servidor MCP a su configuración.
Cada herramienta le indica al host del agente si solo lee o si cambia tu máquina, para que el host pueda preguntarte antes de un cambio.
Máquinas restringidas o sin conexión
En una red restringida, permite HTTPS hacia los tres hosts a los que acceden la CLI y su instalador:
| Host | Para qué se usa |
|---|---|
www.rightnowai.co | El instalador, el inicio de sesión y tus ejecuciones. |
releases.rightnowai.co | Los archivos de la CLI y sus sumas de comprobación firmadas. |
storage.googleapis.com | Los archivos de tu kit. |
Para llevar un kit a una máquina sin internet:
Descargar con conexión
En una máquina que pueda acceder a esos hosts, descarga el kit con
rightnow kit pull.Copiar
Copia la carpeta completa del kit y el binario
rightnowa la máquina sin conexión. Los pasos del kit leen tu modelo desde una carpeta en esa máquina, así que copia también sus pesos.Comprobar sin conexión
Ejecuta
rightnow kit checkallí. Solo lee archivos locales: comprueba cada archivo con la lista firmada del kit, sin red y sin iniciar sesión.
rightnow kit verify no envía nada a menos que añadas --post, que necesita la red.
Códigos de salida
| Código | Significado |
|---|---|
0 | Funcionó. |
1 | No funcionó. El mensaje dice por qué. |
2 | Un comando, una opción o un valor no era correcto. |
3 | La CLI rechazó el paso. |
4 | Esta máquina no ha iniciado sesión. |
5 | No se encontró la ejecución, el kit o el archivo. |
6 | El pago todavía no se ha acreditado. |
7 | No se pudo conectar con RightNow, o no aceptó la llamada. Su error.code indica cuál de los dos, y not_open significa detenerse y avisar a la persona. |
8 | Esta máquina no está lista para el paso. |
Relacionado
Para empezar, consulta qué modelos puedes optimizar y luego abre Optimizar un modelo en la consola. Antes de pagar, lee los precios y los términos de compra.