Skip to content

CLI Flags

All flags can be passed to the rusty binary. Flags override values from the settings file and environment variables.

terminal
rusty [OPTIONS] [PROMPT]
FlagDescription
--setupRun the interactive setup wizard
-v, --verboseEnable verbose logging
-h, --helpPrint help
-V, --versionPrint version
FlagDescription
--model <MODEL>Model to use (e.g. mimo-v2.5-pro, gpt-4o)
--preset <PRESET>Provider preset: xiaomi, kimi, openai, deepseek, ollama
--api-key <KEY>API key
--api-base <URL>API base URL
--max-tokens <N>Max tokens per response
--temperature <F>Sampling temperature
--thinking-budget <N>Reasoning token budget
FlagDescription
--resume <ID>Resume a saved session by ID
--list-sessionsList saved sessions and exit
FlagDescription
--prompt <TEXT>Single prompt mode (headless). Prints response and exits.
--headlessInteractive REPL without TUI (stdin/stdout)
FlagDescription
--permissions <MODE>Permission mode: default, accept-edits, bypass, plan
--plan-with-tasksPlan mode with task tracking (implies --permissions plan)
FlagDescription
--max-turns <N>Max agent turns before stopping
--cwd <DIR>Working directory
--no-claude-mdDisable discovery of AGENTS.md/CLAUDE.md context files
--append-system-prompt <TEXT>Append text to the system prompt
VariableDescription
RUSTY_API_KEYAPI key (highest priority)
OPENAI_API_KEYAPI key (fallback)
OPENAI_BASE_URLAPI base URL
RUST_LOGLogging level (debug, info, warn)