Skip to main content
Flags for selecting the AI runtime, controlling reasoning effort, and choosing provider configurations.

Runtime Selection

--tool
flag
Select AI runtime by name
If not specified, AI Runner auto-detects: tries Claude Code first, falls back to Codex CLI.
--cc
flag
Claude Code — Anthropic’s AI coding CLI (default if installed)
Shorthand for --tool cc. This is the default runtime when both are installed.
--codex
flag
Codex CLI — OpenAI’s coding agent
Shorthand for --tool codex.Authentication: Codex uses browser login by default (codex login). Set OPENAI_API_KEY or CODEX_API_KEY for API key auth, or use --apikey to require it.Install:

Effort Level

--effort
flag
Reasoning effort — control how deeply the model thinks
Works with both runtimes. AI Runner maps to each tool’s native format:Note: Claude Code’s max is Opus 4.8 only. Codex has additional levels (none, minimal) not exposed via AI Runner.Combine with other flags:
Save as default:

Provider Profile

--profile
flag
Select a config profile — Codex CLI only
Selects a named profile from ~/.codex/config.toml. Use this for providers that aren’t built into AI Runner’s flag system (OpenRouter, Mistral, DeepSeek, xAI, Groq, etc.).Setup — configure profiles in ~/.codex/config.toml:
See the Codex CLI docs for the full config reference.

Examples

Save Runtime as Default

Shebang Scripts

Combining Flags

Runtimes

Full cross-interpreter compatibility reference

Provider Flags

Switch between cloud providers