RightNow CLI
Updated
The rightnow command does your side of an optimization, on the machine that serves your model. It pulls a kit, checks it, serves it, verifies it beside the stock engine and rolls it back.
Install
On Linux or macOS, the installer checks the signed binary before it installs anything:
It puts rightnow in ~/.local/bin and never edits your shell profile. If ~/.local/bin is not on your PATH, it prints the line to add.
On Windows, run this in PowerShell. It checks the same signature before it installs anything:
| Platform | Kit steps |
|---|---|
linux-x64 | Yes |
linux-arm64 | Yes |
linux-x64-musl | Yes |
linux-arm64-musl | Yes |
darwin-arm64 | No |
darwin-x64 | No |
windows-x64 | No |
Warming, serving, verifying and rolling back a kit run on Linux only. Every other command runs on every platform.
Each binary has its checksum in SHA256SUMS, signed in SHA256SUMS.sig, beside it.
Sign in
Run rightnow login on the machine. It prints a code: the workspace owner approves it in the RightNow console. The CLI sends no details of your machine.
The sign-in is kept in your system's keychain. On a machine with none, such as a GPU server, it is kept in a file only your user can read. rightnow whoami shows the workspace the machine is signed in to.
Commands
The commands of release 2.0.0:
| Command | What it does |
|---|---|
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). |
The trace commands are in this release, but a run does not use a trace yet: every request is measured under the standard load.
Every command takes --json: it prints one JSON document, and the exit code says how the command ended.
These steps run the kit's own programs on your machine: rightnow kit warm, rightnow kit serve, rightnow kit verify, rightnow kit rollback, rightnow update. Read a step before you run it.
Your coding agent
A coding agent can run every step for you. Copy this prompt into it, with your run's id in place of RUN_ID:
Or give the agent the commands as tools: add this MCP server to its settings.
Each tool tells the agent's host whether it only reads or changes your machine, so the host can ask you before a change.
Locked-down or offline machines
On a locked-down network, allow HTTPS to the three hosts the CLI and its installer reach:
| Host | Used for |
|---|---|
www.rightnowai.co | The installer, sign-in and your runs. |
releases.rightnowai.co | The CLI's files and their signed checksums. |
storage.googleapis.com | Your kit's files. |
To get a kit onto a machine with no internet:
Pull online
On a machine that can reach those hosts, pull the kit with
rightnow kit pull.Copy
Copy the whole kit folder and the
rightnowbinary to the offline machine. The kit's steps read your model from a folder there, so copy its weights too.Check offline
Run
rightnow kit checkthere. It reads local files only: it checks every file against the kit's signed list, with no network and no sign-in.
rightnow kit verify sends nothing unless you add --post, which needs the network.
Exit codes
| Code | Meaning |
|---|---|
0 | It worked. |
1 | It did not work. The message says why. |
2 | A command, flag or value was not right. |
3 | The CLI refused the step. |
4 | This machine is not signed in. |
5 | The run, kit or file was not found. |
6 | The payment has not cleared yet. |
7 | RightNow could not be reached, or did not take the call. Its error.code says which, and not_open means stop and tell the person. |
8 | This machine is not ready for the step. |
Related
To start, check which models you can optimize, then open Optimize a model in the console. Before you pay, read the prices and the purchase terms.