Skip to content
Docs navigation: Open models / CLI reference

CLI reference

Open modelsCLI reference Updated

On this page

Your coding agent runs these for you. Run runinfra help for the exact options in your version.

ConnectionValue
Control sitehttps://runinfra.ai
Commandruninfra
Sign-inApprove the device code in your browser. Keep your API key out of agent chat.
BillingThe existing funding rules of your open-model account.

Use the model ID from your setup plan.

Replace MODEL_ID with an available id from Open models; read current capabilities, limits and prices from GET /v1/models.

Coding plans are retired. New customers have been unable to buy them since 2026-11-03. Existing holders keep their current plan until its paid period ends, subject to the plan's payment and eligibility conditions. runinfra plan buy is unavailable. Workspaces without a current plan use credits. Installed CLIs still run runinfra plan, which shows your plan until it ends.

Install

Node.js 22 or newer:

Shell
npm install -g @runinfra/cli@latest

Or Python 3.8 or newer:

Shell
python -m pip install --upgrade runinfra-cli

Check with runinfra update --check, then update with runinfra update.

Commands

TaskCommand
Sign inruninfra login
Check sign-inruninfra whoami
Find agentsruninfra agents
Review a connectionruninfra connect <agent> --json
Apply the approved connectionRepeat with --yes
Undo setupruninfra disconnect <name>
Diagnose connectionsruninfra doctor
List modelsruninfra models --harness <agent>
Change the starting modelruninfra models set <name> MODEL_ID
Refresh modelsruninfra models sync [name]
List key prefixesruninfra keys
Rotate a keyruninfra keys rotate <name>
Revoke a keyruninfra keys revoke --id <keyId>
Set a $10 monthly capruninfra keys cap <name> 10 (use none to remove)
Check plan statusruninfra plan
Open plan settingsruninfra plan settings
Read your accountruninfra account
Sign outruninfra logout
Updateruninfra update
Read helpruninfra help

Use the separate command's name for model, key and disconnect commands. Disconnect does not sign this computer out.

Connect options

OptionMeaning
--funding planCurrent coding plan first, then credits under your workspace policy.
--funding creditsPay as you go; keeps paying from credits while a current plan remains active.
--in-placeUse the open-models service inside Claude Code or Codex until you disconnect.
--name <name>Name a separate command.
--model MODEL_IDChoose a starting model.
--key-source file|envChoose where the key lives.
--previewAllow preview setup, including saved settings and a paid check.
--yesApprove the same unused review.

Omit --funding when no Coding plan can pay. See Choose how to pay.

Good to know

--json prints one document on stdout.

File and key changes need a reviewed plan and approval. Scripts exit 8 until you repeat with --yes.

Only connect, keys rotate, doctor --verify and models sync --verify send paid checks.

Files live in ~/.config/runinfra ($XDG_CONFIG_HOME/runinfra when set; %LOCALAPPDATA%\runinfra on Windows). RUNINFRA_CONFIG_DIR changes that path. Only step-by-step terminal setup adds a separate command's folder to PATH, after your yes.

Exit codes

CodeMeaning
0Success.
1Unexpected internal error.
2Bad usage, unsupported runtime, or local precheck.
3Not signed in, denied, expired, revoked, or auth_pending (awaiting approval).
4Entitlement or plan refused, or the requested agent, key or resource was not found.
5Network, server, readiness, or requested measurement unavailable.
6Integrity or configuration verification failure.
7Local preparation failed or storage is unavailable.
8Consent required before the command may continue.
9Consent was refused.
130Interrupted.

Terminal app

Run runinfra in your terminal. Pick an agent it found, then a separate command you can rename or Inside Claude Code or Codex. Pick one you already set up to update its models, set it up again, or remove the open-models service. Sign in through your browser, read the short review, and press Enter. The open-models service then offers to start the agent. The same screens manage keys and sign-out.

Source reference