⌨️ANTHROPIC_CUSTOM_MODEL_OPTION
Also known as ANTHROPIC_CUSTOM_MODEL_OPTION_NAME, ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION
It adds one model of your own to the /model picker.
Think of it like
It is like you add one more dish to the end of a menu.
Example
Lucy's gateway offers a test model with an odd name. She adds it with this variable, and it shows up last in /model, ready to pick.
Why it matters
You can try a model Claude Code does not list, without losing the usual choices.
Definition
Example code
bash
export ANTHROPIC_CUSTOM_MODEL_OPTION="my-gateway/claude-opus-5-5"
export ANTHROPIC_CUSTOM_MODEL_OPTION_NAME="Opus via Gateway"
claudeCommon mistake
Key takeaways
- 1One extra row. Built-ins stay.
- 2Not checked. Any ID works.
- 3Allowlist too. Or it is hidden.