Rofiant Code

Documentation

Everything you need to install, configure, and run Rofiant Code from your terminal.

Quick start

Install with one command, then run rofiant from the project you want to work on.

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/RofiantAI/Rofiant-Code/main/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/RofiantAI/Rofiant-Code/main/install.ps1 | iex

Rofiant Code needs an OpenAI-compatible model endpoint. Set one before launch:

export AI_API_KEY="your-key"
export AI_BASE_URL="https://openrouter.ai/api/v1"
export AI_MODEL="nvidia/nemotron-3-super-120b-a12b:free"
rofiant

Or run /login inside the app to save a key locally instead.

Build & plan modes

Press Tab to switch between the two operating modes.

ModeDescription
Build Full coding mode with permission prompts based on each tool's risk classification.
Plan Read-only exploration using file search, file reads, Git diff, and task tracking.

Commands

/help Show commands and shortcuts
/new Start a new session
/model [id] View or change the model
/login Open the provider sign-in and API-key selector
/compact Summarize and replace earlier history
/status Show project, Git, provider, and model information
/diff Show Git changes
/sessions List recent project sessions
/usage Show token usage
/skip-permissions Toggle permission bypass after confirmation
/exit Exit Rofiant Code

Configuration

Rofiant Code reads its configuration from environment variables.

AI_API_KEY - Provider API key
AI_BASE_URL https://openrouter.ai/api/v1 OpenAI-compatible API base URL
AI_MODEL nvidia/nemotron-3-super-120b-a12b:free Model ID
AI_MAX_CONTEXT_TOKENS 100000 Context trimming budget
ROFIANT_WEB_URL https://www.rofiant.ca Rofiant login URL
ROFIANT_DANGEROUSLY_SKIP_PERMISSIONS - Set to 1 to bypass permission prompts

Skills

Rofiant Code discovers SKILL.md files from project directories (.rofiant/skills/, .claude/skills/, and similar) and user-level config directories. Invoke a discovered skill with /<skill-name> [request].

Subagents

Send a task to a focused one-shot subagent by starting the message with its name.

$explore Read-only repository investigation
$general Full-capability coding task
$explore find where authentication state is stored