Skip to content
BENIBIX Learn

ANTHROPIC_CUSTOM_MODEL_OPTION

AI⌨️ Claude CodeConfiguration

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

ANTHROPIC_CUSTOM_MODEL_OPTION adds one more row to the /model picker for a model ID you give it. The built-in rows stay as they are. Claude Code does not check the ID, so any name your endpoint accepts works. _NAME and _DESCRIPTION set the row's label. If a model allowlist is set, the ID must be on it too.

Example code

bash
export ANTHROPIC_CUSTOM_MODEL_OPTION="my-gateway/claude-opus-5-5"
export ANTHROPIC_CUSTOM_MODEL_OPTION_NAME="Opus via Gateway"
claude
Add a gateway model to the picker.

Common mistake

Forgetting the allowlist. If one is set and the ID is not on it, the row is hidden.

Key takeaways

  1. 1
    One extra row. Built-ins stay.
  2. 2
    Not checked. Any ID works.
  3. 3
    Allowlist too. Or it is hidden.