Answer: Set `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1` in your shell or in the `env` block of `~/.claude/settings.json`; Claude Code then queries the gateway for its model list at startup and adds those names to the `/model` picker. Status: Confirmed Entry: tool/claude-code/models/add-gateway-models Revision: 1 Digest: sha256:ca6181ec37bc99ea (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:31Z Last changed: 2026-11-13T03:04:31Z Last verified: 2026-11-20T12:21:43Z Next check: 2026-11-21T12:21:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Environment variable | CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1 | [1] | 2026-11-20 Settings file | ~/.claude/settings.json | [1] | 2026-11-20 Picker command | /model | [1] | 2026-11-20 Default description | From gateway | [1] | 2026-11-20 Debug log path | ~/.claude/debug/.txt | [1] | 2026-11-20 Sources: [1] Anthropic. "Connect Claude Code to an LLM gateway". https://code.claude.com/docs/en/llm-gateway-connect.md Role: primary. Accessed: 2026-11-20T12:21:43Z Quote: "set `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1` in your shell or in the `env` block of `~/.claude/settings.json`" (Supports: Environment variable) Quote: "in the `env` block of `~/.claude/settings.json`" (Supports: Settings file) Quote: "adds those names to the `/model` picker alongside the built-in entries" (Supports: Picker command) Quote: "or `From gateway` when it doesn't supply one" (Supports: Default description) Quote: "look for the `[gatewayDiscovery]` lines in the debug log at `~/.claude/debug/.txt`" (Supports: Debug log path) Published: 2026-11-20T02:55:07Z Snapshot SHA-256: 66a220c65179fe2601bf9e9fe4f1516d2a7f63ad4a0b22ff0c45b602f572ac30 (captured 2026-11-13T03:04:31Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:04:31Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:21:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:43Z Last attempt: 2026-11-20T12:21:43Z Notes and limitations: Extracted automatically from a single official source (section "Add gateway models to the model picker"). Related: https://latestn.com/tool/claude-code/models/adjust-effort-level How do I adjust the effort level in Claude Code? https://latestn.com/tool/claude-code/models/auto-mode-classifier-model How do I choose or change the classifier model used by auto mode in Claude Code? https://latestn.com/tool/claude-code/models/background-session-model-effort How do I set the model, effort, and permission mode for Claude Code background sessions? https://latestn.com/tool/claude-code/memory-and-context/what-loads-before-typing What loads into Claude Code's context window before I type anything? https://latestn.com/tool/claude-code/memory-and-context/what-survives-compaction What survives compaction in Claude Code's context window? https://latestn.com/tool/claude-code/memory-and-context/when-context-fills-up When does Claude Code's context window fill up and trigger compaction? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:04:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/models/add-gateway-models/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/models/add-gateway-models POST: https://latestn.com/dispute/tool/claude-code/models/add-gateway-models with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/models/add-gateway-models?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add gateway models to the Claude Code model picker? Revision 1, last verified 2026-11-20T12:21:43Z. https://latestn.com/tool/claude-code/models/add-gateway-models (accessed 2026-11-21T09:54:18Z). @misc{LatestN_tool_claude_code_models_add_gateway_models_r1, title = {How do I add gateway models to the Claude Code model picker?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/models/add-gateway-models}}, note = {Revision 1; digest sha256:ca6181ec37bc99ea; last verified 2026-11-20T12:21:43Z; accessed 2026-11-21T09:54:18Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/models/add-gateway-models