⌨️CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY
Also known as CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
Set to 1, it fills the model picker from your gateway's list.
Think of it like
It is like you ask the shop for its own list of what is in stock.
Example
Lucy's gateway offers six models, but /model showed only the usual three. She turns this on, and all six appear.
Why it matters
People can pick from what the gateway has, with no list to keep by hand.
Definition
Example code
bash
export ANTHROPIC_BASE_URL=https://llm.example.com
export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
claudeCommon mistake
Key takeaways
- 1Reads the gateway list. Its /v1/models.
- 2Off by default. Set 1.
- 3Allowlist still applies. Filter what shows.