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 문서 하나를 출력하고, 종료 코드가 명령이 어떻게 끝났는지 알려 줍니다.
다음 단계는 키트 자체의 프로그램을 내 머신에서 실행합니다: rightnow kit warm, rightnow kit serve, rightnow kit verify, rightnow kit rollback, rightnow update. 실행하기 전에 각 단계를 읽어 보세요.
코딩 에이전트
코딩 에이전트가 모든 단계를 대신 실행할 수 있습니다. RUN_ID 자리에 실행 ID를 넣어 이 프롬프트를 에이전트에 붙여 넣으세요:
또는 명령을 도구로 에이전트에 주세요. 이 MCP 서버를 에이전트 설정에 추가하면 됩니다.
각 도구는 머신을 읽기만 하는지 바꾸는지 에이전트의 호스트에 알려 주므로, 호스트가 변경 전에 확인을 요청할 수 있습니다.
제한된 머신이나 오프라인 머신
제한된 네트워크에서는 CLI와 설치 프로그램이 접속하는 다음 세 호스트로의 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 | 이 머신은 이 단계를 실행할 준비가 되지 않았습니다. |
관련 문서
먼저 최적화할 수 있는 모델을 확인한 다음, 콘솔에서 모델 최적화하기를 여세요. 결제하기 전에 가격과 구매 약관을 읽어 보세요.