---
title: "Claude Code model picker — set /model for a team · Selan"
description: "What decides which models Claude Code's /model picker shows, how to add one yourself, how a team sets the list for everyone, and what a gateway changes."
url: https://selan.ai/guides/claude-code-model-picker
updated: 2026-11-17T09:53:44+02:00
---

Guide · Claude Code models

# How do you choose which models Claude Code's /model picker shows?

For one model, set `ANTHROPIC_CUSTOM_MODEL_OPTION`. For a whole list, write a `modelPicker` lineup in your settings. For a team, deliver that lineup and an `availableModels` allowlist in managed settings, because the picker only shows models and the allowlist is what stops one. Through a gateway such as Selan, an owner sets the list once, centrally.

## What decides which models /model shows?

Claude Code builds the picker from up to five sources:

| Source | What it adds or removes | Who sets it |
| --- | --- | --- |
| The built-in lineup | The aliases and Anthropic's current models | Claude Code |
| `ANTHROPIC_CUSTOM_MODEL_OPTION` | One extra row, after the built-in ones | Whoever starts `claude` |
| `modelPicker` | Rows in your order, under your labels, after the built-in lineup or instead of it | User or managed settings |
| Gateway model discovery | The models a gateway's `/v1/models` returns | The gateway, once discovery is on |
| `availableModels` | Removes every model outside the list | Managed settings, for an organization |

On a Claude Enterprise plan, an admin can also disable models in the claude.ai admin console, for the whole organization or per role. A disabled model is hidden from the picker and cannot be run.

## How do you add a model to /model yourself?

Set three variables before you launch `claude`. Only the first is required:

```bash
export ANTHROPIC_CUSTOM_MODEL_OPTION="my-gateway/claude-opus-5-5"
export ANTHROPIC_CUSTOM_MODEL_OPTION_NAME="Opus via Gateway"
export ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION="Routed through the internal gateway"
```

Claude Code does not check that id, so any string your endpoint accepts works. It adds one row only.

For several rows, write a `modelPicker` lineup in `~/.claude/settings.json`. It needs Claude Code v2.1.242 or later. Each row's `model` takes anything `--model` takes, and its `label` is what the picker shows:

```json
{
  "modelPicker": {
    "options": [
      { "model": "claude-opus-5-5", "label": "Opus (production)" },
      { "model": "claude-sonnet-5-5", "label": "Sonnet", "description": "Day-to-day work" }
    ],
    "replaceBuiltInOptions": true
  }
}
```

With `replaceBuiltInOptions` on, the picker shows only these rows, **Default** and the model the session is already on. Claude Code ignores `modelPicker` in project and local settings, so a repository you clone cannot relabel your picker.

**Good to know:** a label changes what the picker shows, not which model Claude Code runs.

## How does a team set the picker for every developer?

Put the lineup and an allowlist in managed settings. The `modelPicker` lineup decides what each developer sees. The `availableModels` list decides what they can run:

```json
{
  "availableModels": ["sonnet", "haiku"],
  "enforceAvailableModels": true
}
```

-   **`availableModels` applies everywhere a model is named:** `/model`, `--model`, `ANTHROPIC_MODEL`, subagents, skills and the advisor.
-   **`enforceAvailableModels` covers the Default row.** Without it, Default can still resolve to a model outside the list. It needs v2.1.175 or later.
-   **A custom row must be on the list too.** Otherwise Claude Code filters it from the picker and refuses it.

How the file reaches each laptop matters. Server-managed settings from the claude.ai admin console reach only sessions that sign in to your organization. A fleet on API keys, an `apiKeyHelper`, Bedrock, Google Cloud or Microsoft Foundry needs MDM or a managed settings file on every machine.

The Claude Console has no control for restricting models. An Enterprise admin's organization default model reaches only sessions on the Anthropic API; behind a gateway, Anthropic points to the `model` key in managed settings instead.

The picker is the menu and the allowlist is the fence. A team needs both.

## What changes when Claude Code runs behind a gateway?

Claude Code can fill the picker from the gateway's own list. A developer, or managed settings, sets `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1`, and Claude Code asks the gateway's `/v1/models` at startup.

-   **Discovery is off by default.** Anthropic keeps it off so a gateway on one shared key does not show every model that key can reach to every user.
-   **Only ids containing `claude` or `anthropic` are kept.** Any other id is dropped from the picker.
-   **The allowlist still applies.** Discovery adds only models `availableModels` allows, and a lineup with `replaceBuiltInOptions` hides discovered rows.
-   **The context window is Anthropic's figure.** Claude Code gives a model it recognizes its Anthropic API window and cannot see a lower limit behind the gateway. `CLAUDE_CODE_AUTO_COMPACT_WINDOW` lowers it.

## How does Selan set the picker for a team?

Selan is a hosted gateway that runs Claude Code and Codex on the accounts your company already pays for. An owner sets the picker in two places in the control app:

-   **Settings → Models** has one switch per model at each connected provider. Off makes a model unreachable, even named with `--model`.
-   **Settings → Model pickers** has one tab per client: Claude Code, Claude Desktop and Codex. A model in a tab's list is in that client's model menu.

A developer types `/model` and sees the company's list, Claude models first. Claude Code's built-in rows are gone, so nothing in the list runs a model nobody switched on. The list is read at startup, so a model switched on mid-session appears at the next launch.

A model switched off while a developer had it selected answers `model_not_allowed`. A model nobody curated can still be named with `--model` and a provider in front, such as `openrouter:`, on a provider the company connected; see [run any model](https://selan.ai/docs#any-model). An owner can also cap the reasoning effort each model maker's models run at; see [Claude Code's effort level](https://selan.ai/guides/claude-code-effort-level).

How the picker behaves is in [the docs on the picker](https://selan.ai/docs#picker), and what each provider serves is in [models and providers](https://selan.ai/docs/providers). Running GPT, Gemini or Kimi beside Claude is on [running any model on your own accounts](https://selan.ai/solutions/models).

[Start for free](https://auth.selan.ai/r)

Free for up to three seats, and the Free plan needs no card.

## When are Anthropic's own settings the better answer?

When every developer signs in to one Claude Enterprise organization and runs only Claude. The admin console restricts models per role and sets a default, and server-managed settings deliver the allowlist with no file to push.

A gateway earns its place once a team runs models from more than one provider, or signs in without an Anthropic account on every laptop. [Which Claude Code gateway a team needs](https://selan.ai/guides/claude-code-gateway) compares the kinds.

### The short version

-   One extra row: `ANTHROPIC_CUSTOM_MODEL_OPTION`. A whole list: a `modelPicker` lineup, v2.1.242 or later.
-   The picker only shows models; `availableModels` in managed settings is what stops one, with `enforceAvailableModels` for the Default row.
-   Fleets on API keys, Bedrock, Google Cloud or Foundry need the managed settings file on every machine.
-   Gateway discovery is off by default and keeps only ids containing `claude` or `anthropic`.
-   Through Selan, an owner switches models on and sets each client's picker once, and a model switched off is unreachable.

What Claude Code's picker shows, and how its settings and managed settings apply, is as Anthropic's model configuration page, settings reference and LLM gateway protocol page (code.claude.com/docs/en/model-config, /settings-reference and /llm-gateway-protocol) stated it on 14 November 2026. It changes with nearly every release: check the date before relying on it. What Selan does is as its gateway, control app and docs stated it on that date.
