Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.242 ·

Malformed modelPicker and modelPricing settings now warn instead of being silently ignored

Bad modelPicker or modelPricing settings are now dropped with a warning naming the file and path.

Use it now Improvements
JSON All of v2.1.242
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SettingsArea: what it touches
ImprovementsKind: in v2.1.242,
What probably matters to youSection of the release
What

Two new validators drop bad values and say so, naming the settings file and the path within it. A modelPicker that is not an object with an options array is dropped whole, a non-boolean replaceBuiltInOptions is dropped, and individual malformed option rows are dropped while the remaining rows still apply.

Details
  • modelPricing is dropped if it is not an object, if multiplier is not a number in the range (0, 1], or per-model overrides rows are malformed.
  • Keys named constructor or __proto__ in overrides are refused.
  • Validation results are memoised per settings file, so the warnings do not repeat on every read.
  • Runs on settings load; nothing gates it.
Evidence

"multiplier" must be a number in (0, 1]. It was ignored.

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Manage costs effectively touched a line naming modelPricing after this was published. Set `multiplier` below 1 for a flat discount or above 1 for a markup, list each model's four per-token rates under `overrides`, or do both. A markup requires Claude Code v2.1.271 or later. The [`modelPricing` entry](/docs/en/settings-refer… costs see the edit
Confirmed since Anthropic's documentation has since written up modelPicker, on All settings. | Read from the highest-priority source only | Reads the key only from the highest-priority source that carries a policy key, so a lower source's value is ignored even when the highest source sets none | [`apiKeyHelper`](#apikeyhelper), [`… settings-reference see the edit
Confirmed since Anthropic's documentation has since written up modelPricing, on Claude apps gateway configuration. With v2.1.268 or later on the gateway server, the gateway also puts the rates from `pricing` into the [`managed`](#managed) policies it serves, as the [`modelPricing`](/docs/en/settings-reference#modelpricing) managed setting. Developers m… claude-apps-gateway-config see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up modelPricing, on Claude apps gateway configuration.
The name it cites is new in this buildNew in this build: modelPicker

See this entry in the whole of v2.1.242 →

Feedback