Skip to main content
Complete reference for the Rubix CLI. Top-level commands are what you run from the shell. Slash commands are what you run inside the chat UI.

Top-level commands

Launch the interactive chat UI. Equivalent to rubix chat with no options.
rubix
Start interactive chat, optionally resuming a session or pre-sending a prompt.
rubix chat [options]
Options
FlagDescription
-s, --session-id <id>Resume an existing session by id. Find ids with rubix sessions.
-p, --prompt <text>Send a prompt immediately after launch. Non-interactive when combined with a session-id.
Examples
rubix chat --session-id "abc-123"
rubix chat --prompt "What is the health of production?"
Authenticate with the device-code flow. Opens a browser URL for you to paste a short code and approve.
rubix login
Credentials persist at ~/.rubix/auth.json.
Clear local authentication. The next rubix run prompts for device-code login again.
rubix logout
List your past chat sessions. Shows id, title, associated agent, and last update time.
rubix sessions
Use the id with rubix chat --session-id <id> to resume.
Manage the AI model used for chat.
rubix model [subcommand] [modelId]
Subcommands
SubcommandDescription
listShow available models for your workspace.
getPrint the currently selected model.
set <modelId>Switch to a specific model for new sessions.

Slash commands

Available inside the chat UI. Type / to open the menu, or type any command directly.
CommandPurpose
/loginAuthenticate via device-code flow
/logoutClear local authentication
/statusShow authentication, session, and environment status
/resumeResume a previous conversation
/newStart a fresh conversation
/environmentsSwitch the active environment
/refreshRefresh environments and dashboard stats
/modelsSwitch the AI model for this session
/agentsSwitch the agent (app) binding for new sessions
/pasteInsert clipboard content cleanly, bypassing terminal paste truncation
/sendSend the last shell output into chat as context
/clearClear visible conversation history (session is preserved)
/renameRename the current session
/consoleOpen the web console in your default browser
/docsOpen RubixKube docs in your default browser
/helpToggle the keyboard shortcut and help panel
/exitExit the Rubix CLI
/quitAlias for /exit
/untrustRemove the current folder from the trusted list

Flags and environment variables

Print the installed CLI version and exit.
rubix --version
Print help for any command.
rubix --help
rubix chat --help
rubix model --help
Override the stored token for this invocation. Useful for CI or ephemeral runners. When set, the CLI skips the device-code prompt.
Pin the environment for this invocation. Overrides any session default.

Where to go next

Examples

Concrete flows that combine the commands above.

Configuration

Where credentials live and how folder trust works.