Open Commander's settings via Commander → Settings (or ⌘,) to configure your CLI integration.
CLI Path
Commander needs to know where your CLI (Claude Code or Codex) is installed on your system. By default, it looks in common locations like /opt/homebrew/bin/ (Homebrew on Apple Silicon) or /usr/local/bin/.
- Detect — Click to automatically find the CLI on your system
- Manual path — Enter the full path if auto-detection doesn't work
To find your CLI path manually, run one of the following in Terminal:
- For Claude Code:
which claude
- For Codex:
which codex
Environment Variables
You can pass custom environment variables to the CLI process. This is useful for:
- Setting API keys (e.g.,
ANTHROPIC_API_KEY for Claude Code or OPENAI_API_KEY for Codex)
- Configuring proxy settings
- Custom CLI configuration
Use the + and − buttons to add or remove environment variables.
AWS Bedrock (custom model ARNs)
Claude Code can talk to AWS Bedrock by using a Bedrock model ARN (often an inference profile ARN) as the configured model. You can see what your Claude Code CLI uses in ~/.claude/settings.json:
jq -r '.model' ~/.claude/settings.json
Example value:
"arn:aws:bedrock:eu-west-1:xxxxxxxxxxxx:application-inference-profile/yyyyyyyyyyy"
When you launch Claude Code with a Bedrock ARN, it will authenticate with AWS (typically via AWS SSO).
Commander selects the model based on the menu bar dropdown (Sonnet / Opus / Haiku). If you want those selections to route to Bedrock, override the default model identifiers Claude Code uses for each selection by setting these environment variables in Commander:
ANTHROPIC_DEFAULT_SONNET_MODEL
ANTHROPIC_DEFAULT_OPUS_MODEL
ANTHROPIC_DEFAULT_HAIKU_MODEL
Recommended setup:
- Copy your Bedrock ARN from
~/.claude/settings.json.
- In Commander → Settings → Environment Variables, add
ANTHROPIC_DEFAULT_SONNET_MODEL and set it to the ARN.
- Select Sonnet in Commander's menu bar model dropdown.
If you also set ANTHROPIC_DEFAULT_OPUS_MODEL and/or ANTHROPIC_DEFAULT_HAIKU_MODEL to the same ARN, you can switch between Sonnet/Opus/Haiku in Commander while still using Bedrock for all of them.
If you see 400 The provided model identifier is invalid., it usually means Commander is still sending a non-Bedrock model identifier; verify the corresponding ANTHROPIC_DEFAULT_*_MODEL variable is set for the model you selected in the menu bar.