RightNow CLI
更新日
rightnow コマンドは、モデルを提供しているマシンで、最適化のうちあなたの側の作業を行います。キットを取得し、確認し、提供し、元のエンジンと並べて検証し、ロールバックします。
インストール
Linux または macOS では、インストーラーが何かをインストールする前に、署名付きのバイナリを確認します:
rightnow を ~/.local/bin に置き、シェルのプロファイルは一切編集しません。~/.local/bin が PATH にない場合は、追加する行を表示します。
Windows では、PowerShell でこれを実行します。何かをインストールする前に、同じ署名を確認します:
| プラットフォーム | キットの手順 |
|---|---|
linux-x64 | はい |
linux-arm64 | はい |
linux-x64-musl | はい |
linux-arm64-musl | はい |
darwin-arm64 | いいえ |
darwin-x64 | いいえ |
windows-x64 | いいえ |
キットのウォームアップ、提供、検証、ロールバックは Linux でのみ動作します。それ以外のコマンドは、すべてのプラットフォームで動作します。
各バイナリのチェックサムは、その横の SHA256SUMS にあり、SHA256SUMS.sig で署名されています。
サインイン
マシンで rightnow login を実行します。コードが表示されるので、ワークスペースのオーナーが RightNow コンソールで承認します。CLI はマシンの詳細を送信しません。
サインイン情報はシステムのキーチェーンに保存されます。GPU サーバーのようにキーチェーンがないマシンでは、あなたのユーザーだけが読めるファイルに保存されます。rightnow whoami は、マシンがサインインしているワークスペースを表示します。
コマンド
リリース 2.0.0 のコマンド:
| コマンド | 内容 |
|---|---|
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). |
このリリースにはトレースのコマンドがありますが、実行ではまだトレースを使いません。すべてのリクエストは標準の負荷で測定されます。
すべてのコマンドは --json を受け付けます。JSON ドキュメントを 1 つ出力し、終了コードがコマンドの終わり方を示します。
次の手順は、キット自身のプログラムをあなたのマシンで実行します:rightnow kit warm, rightnow kit serve, rightnow kit verify, rightnow kit rollback, rightnow update。実行する前に、各手順を読んでください。
コーディングエージェント
コーディングエージェントに、すべての手順を任せられます。RUN_ID の代わりに実行の ID を入れて、このプロンプトをエージェントに貼り付けてください:
または、コマンドをツールとしてエージェントに渡します。この MCP サーバーをエージェントの設定に追加してください。
各ツールは、マシンを読むだけか変更するかをエージェントのホストに伝えます。そのため、ホストは変更の前にあなたに確認できます。
制限されたマシンやオフラインのマシン
制限されたネットワークでは、CLI とそのインストーラーが接続する次の 3 つのホストへの HTTPS を許可してください:
| ホスト | 用途 |
|---|---|
www.rightnowai.co | インストーラー、サインイン、あなたの実行。 |
releases.rightnowai.co | CLI のファイルと、その署名付きチェックサム。 |
storage.googleapis.com | キットのファイル。 |
インターネットに接続していないマシンにキットを入れるには:
オンラインで取得
それらのホストに接続できるマシンで、
rightnow kit pullを使ってキットを取得します。コピー
キットのフォルダー全体と
rightnowバイナリを、オフラインのマシンにコピーします。キットの手順はそのマシン上のフォルダーからモデルを読み込むため、モデルの重みもコピーしてください。オフラインで確認
そのマシンで
rightnow kit checkを実行します。読み込むのはローカルのファイルだけで、ネットワークもサインインも使わずに、すべてのファイルをキットの署名付きリストと照合します。
rightnow kit verify は、ネットワークが必要な --post を付けない限り、何も送信しません。
終了コード
| コード | 意味 |
|---|---|
0 | 成功しました。 |
1 | 失敗しました。理由はメッセージに表示されます。 |
2 | コマンド、フラグ、または値が正しくありませんでした。 |
3 | CLI がその手順を拒否しました。 |
4 | このマシンはサインインしていません。 |
5 | 実行、キット、またはファイルが見つかりませんでした。 |
6 | 支払いがまだ完了していません。 |
7 | RightNow に接続できなかったか、呼び出しが受け付けられませんでした。どちらかは error.code で分かり、not_open の場合は停止して利用者に伝えます。 |
8 | このマシンはその手順の準備ができていません。 |
関連
まず、最適化できるモデルを確認してから、コンソールでモデルを最適化するを開きます。お支払いの前に、料金と購入条件をお読みください。