NewKepler is live.See Kepler

Rubix CLI: an AI SRE in Your Terminal

ProductsUpdated November 20264 min read

Chat with Rubix, work through your incidents, RCAs and Tasks, or ask once from a script. The same Rubix as the console, without leaving the terminal.

On this page

Quick answer

The Rubix CLI puts Rubix, RubixKube's AI SRE, in your terminal. Ask about an incident, work through your incidents, RCAs and Tasks, or ask once from a script, without opening a browser.

It is the same Rubix and the same organization as the console, so a chat you start in the terminal shows up in the console too.

Why an AI SRE in the terminal

When something breaks, SREs are already in a terminal: kubectl, logs, curl. Switching to a browser to ask what happened breaks the flow. The Rubix CLI brings the answer to where you already are.

When you'd use it

  • You're reading logs and something looks wrong. Pipe them in: cat error.log | rubix -p "what does this mean?".
  • You want to see what's open. rubix status lists the critical and high incidents, what needs you, the Tasks waiting and your environments.
  • You're working an incident. Open it in Browse, read what Rubix found, run the RCA again, comment, or ask Rubix about it with one key.
  • You want Rubix in a script. One-shot commands print plain text or JSON and exit, so they fit in an alias, a cron job or a runbook.
  • You'd rather write in your editor. Ctrl+G opens the message in your editor, and saving brings it back.

Three ways to use it

Start it withWhat it's for
ChatrubixA conversation with Rubix. Approvals, questions and modes work as in the console.
Browserubix browse, or the left arrow on an empty inputFull-screen lists of incidents, RCAs, Tasks, artifacts and chats, with actions on single keys.
One-shot commandsrubix -p "...", rubix status, rubix incidentsPrint an answer or a list and exit. For scripts and quick checks.

Browse your incidents, RCAs and Tasks

Browse works like the console in your terminal. Search with filters such as sev:high, env:prod or owner:me, read an incident with what Rubix found, and act on it with one key: close it, run the RCA again, comment, rate the RCA Right, Partly or Wrong, or move a Task to another status. Anything that changes a record asks first, and each change is made as you.

Rubix CLI Browse: open incidents on the left, and the selected crash-looping payments-api incident on the right with its journey and what Rubix found

Same Rubix as the console

  • Chats are shared. A chat started in the terminal is in the console's chat list, and the other way round. A reply keeps running if you close the terminal.
  • Same controls. Pick the model, the response style and the mode: Observe only reads, Assist asks before every change, Auto makes changes and asks before anything destructive. The mode can't go above your organization's highest mode.
  • Same records. Incidents, RCAs and Tasks use the same codes, such as INC-12, RCA-4 and TSK-30.

Built for scripts

rubix -p joins anything you pipe in to the question. Add --json to -p, status, the lists and the records to get JSON. If Rubix stops for an approval or a question, the CLI prints the command to answer it in chat and exits with code 2, so a script knows to hand over to a person.

Get started

npm install -g @rubixkube/rubix
rubix login
rubix

You need Node.js 22.12 or newer and a RubixKube account. Sign-in uses a code you approve in your browser, and it works over SSH too. Create a free account, then read the CLI docs and every command.

Frequently asked questions

What is the Rubix CLI?

The Rubix CLI is the terminal app for RubixKube. It lets SRE and DevOps engineers chat with Rubix, work through incidents, RCAs and Tasks, and ask once from scripts, without leaving the terminal. Install it with npm install -g @rubixkube/rubix.

How is it different from a general AI assistant in the terminal?

A general assistant knows nothing about your systems. Rubix works from your organization's incidents, RCAs, Tasks and connected environments, and cites the evidence it read.

Do I need to install anything in my infrastructure?

Not for the CLI itself. For Rubix to see your systems, connect an environment once in the console. Then the CLI works with the same incidents and RCAs.

Can I use it in scripts?

Yes. One-shot commands such as rubix -p, rubix status and rubix incidents print plain text or JSON with --json and exit. When Rubix needs a person, the CLI exits with code 2.

Is the Rubix CLI free?

Yes. The CLI is free on npm, and RubixKube's Individual plan is free too.

See how it works.

Book a 30-minute demo. No slides, just your stack.

Download Whitepaper