Answer: Use the `availableModels` setting to restrict which models people can select; it takes an array of model aliases or IDs, and a managed list constrains `/model`, `--model`, and the `model` key in a developer's own files. For example, `"availableModels": ["sonnet", "haiku"]` lets people select only Sonnet and Haiku models. Status: Confirmed Entry: tool/claude-code/models/restrict-available-models Revision: 7 Digest: sha256:21dd7928ce27fde8 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:50Z Last changed: 2026-11-19T12:20:35Z (Example: — → "availableModels": ["sonnet", "haiku"]) Last verified: 2026-11-20T12:25:25Z Next check: 2026-11-21T12:25:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Setting name | availableModels | [1] | 2026-11-20 Type | array of model aliases or IDs | [1] | 2026-11-20 Default | unset, so every model is available | [1] | 2026-11-20 Example | "availableModels": ["sonnet", "haiku"] | [1] | 2026-11-20 Scope | Any file | [1] | 2026-11-20 Sources: [1] Anthropic. "All settings". https://code.claude.com/docs/en/settings-reference.md Role: primary. Accessed: 2026-11-20T12:25:25Z Quote: "### `availableModels`" (Supports: Setting name) Quote: "**Type**: array of model aliases or IDs" (Supports: Type) Quote: "**Default**: unset, so every model is available" (Supports: Default) Quote: ""availableModels": ["sonnet", "haiku"]" (Supports: Example) Quote: "**Scope**: [`Any file`](#scopes)." (Supports: Scope) Published: 2026-11-20T02:53:01Z Snapshot SHA-256: 9799f12057acf903fd64918707eb588e4cdf60a1bf4d4dadff10faed965629f4 (captured 2026-11-20T12:25:26Z) 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]. Cross-check: not-available at 2026-11-20T12:25:25Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:25Z Last attempt: 2026-11-20T12:25:25Z Notes and limitations: Extracted automatically from a single official source (section "`availableModels`"). Related: https://latestn.com/tool/claude-code/models/set-default-model How do I set the default model in Claude Code settings.json? https://latestn.com/tool/claude-code/models/set-model How do I set which model Claude Code uses? https://latestn.com/tool/claude-code/models/set-model-agent-sdk-session How do I set the model for a Claude Code Agent SDK session? https://latestn.com/tool/claude-code/models/pin-model-versions-cloud How do I pin model versions for cloud providers when deploying Claude Code? https://latestn.com/tool/claude-code/models/pin-model-versions-foundry How do I pin Claude model versions when deploying Claude Code on Microsoft Foundry? https://latestn.com/tool/claude-code/models/redirect-request-to-model How do I send a request to a different model from a Claude Code mod hook? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:20:35Z | changed | Example: — → "availableModels": ["sonnet", "haiku"] | [1] 2026-11-19T12:20:35Z | changed | Example value: ["sonnet", "haiku"] → — | [1] 2026-11-18T12:20:22Z | changed | Example value: — → ["sonnet", "haiku"] | [1] 2026-11-18T12:20:22Z | changed | Setting name: — → availableModels | [1] 2026-11-18T12:20:22Z | changed | Example: ["sonnet", "haiku"] → — | [1] 2026-11-18T12:20:22Z | changed | Setting: availableModels → — | [1] 2026-11-17T12:31:23Z | changed | Example: "availableModels": ["sonnet", "haiku"] → ["sonnet", "haiku"] | [1] 2026-11-15T12:25:41Z | changed | Example: — → "availableModels": ["sonnet", "haiku"] | [1] 2026-11-14T12:21:04Z | changed | Scope: — → Any file | [1] 2026-11-14T12:21:04Z | changed | Default: — → unset, so every model is available | [1] 2026-11-14T12:21:04Z | changed | Type: — → array of model aliases or IDs | [1] 2026-11-14T12:21:04Z | changed | Setting: — → availableModels | [1] 2026-11-14T12:21:04Z | changed | example: ["sonnet", "haiku"] → — | [1] 2026-11-14T12:21:04Z | changed | scope: Any file → — | [1] 2026-11-14T12:21:04Z | changed | default: unset, so every model is available → — | [1] 2026-11-14T12:21:04Z | changed | type: array of model aliases or IDs → — | [1] 2026-11-14T12:21:04Z | changed | setting: availableModels → — | [1] 2026-11-13T12:14:31Z | changed | example: — → ["sonnet", "haiku"] | [1] 2026-11-13T12:14:31Z | changed | scope: — → Any file | [1] 2026-11-13T12:14:31Z | changed | default: — → unset, so every model is available | [1] 2026-11-13T12:14:31Z | changed | type: — → array of model aliases or IDs | [1] 2026-11-13T12:14:31Z | changed | setting: — → availableModels | [1] 2026-11-13T12:14:31Z | changed | Scope: Any file → — | [1] 2026-11-13T12:14:31Z | changed | Default: unset, so every model is available → — | [1] 2026-11-13T12:14:31Z | changed | Type: array of model aliases or IDs → — | [1] 2026-11-13T12:14:31Z | changed | Setting: availableModels → — | [1] 2026-11-13T03:05:50Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/models/restrict-available-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/restrict-available-models POST: https://latestn.com/dispute/tool/claude-code/models/restrict-available-models with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/models/restrict-available-models?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I restrict which models are available in Claude Code? Revision 7, last verified 2026-11-20T12:25:25Z. https://latestn.com/tool/claude-code/models/restrict-available-models (accessed 2026-11-21T09:53:47Z). @misc{LatestN_tool_claude_code_models_restrict_available_models_r7, title = {How do I restrict which models are available in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/models/restrict-available-models}}, note = {Revision 7; digest sha256:21dd7928ce27fde8; last verified 2026-11-20T12:25:25Z; accessed 2026-11-21T09:53:47Z} } 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/restrict-available-models