Omniscio

OmniscioGuidesModel not found

Model not found: the name Claude Code could not confirm

Last checked against Anthropic's documentation on November 23, 2026. By the Omniscio team. Updated .

What is the exact message?

Model 'claude-opus-9' not found

The name in quotes is the one Claude Code tried and could not confirm. On providers with provider-specific model IDs, Anthropic documents that the message may add a Try '...' instead suggestion that names your provider's ID for a fallback model.

What does it mean?

You switched to a model by name, and Claude Code could not confirm that a model with that name exists. When the name is not a model alias or another spelling Claude Code accepts locally, Anthropic documents that Claude Code verifies it with a minimal API request, and this error is usually your API endpoint's answer.

With /model <name>, a name that cannot be a model ID at all — one containing spaces, for example — gets the same message.

How do I fix it?

  1. Run /model with no argument and pick from the models available to your account, or use a model alias such as sonnet, which resolves to a maintained default.
  2. If you typed a full ID, check it against your provider's model catalog. Anthropic notes that a newly launched model can be available on the Anthropic API before your provider or region offers it.
  3. In the Agent SDK, handle the failure. Anthropic documents that setModel() fails with this message and the session keeps running on its previous model. In the TypeScript SDK, call supportedModels() to list the models you can switch to.
  4. On versions before v2.1.265, update Claude Code. On those versions /model also rejected the opusplan[1m] alias spelling with this error; the alternative is to set the model in settings or with --model instead.

How do I know it is fixed?

  • The next message is answered by the model you picked, and the error does not come back on that session.
  • /model with no argument lists the model among the ones available to your account.
  • If the same name keeps failing after you picked it from the list, the request is reaching an endpoint that does not offer that model — check which API endpoint your setup points at, such as a custom base URL or a local model server.

Where these answers come from

Common questions

Why does an alias work when the full model name does not?

Claude Code accepts model aliases such as sonnet locally, so the name is not checked with a minimal API request the way a full ID is, and the alias resolves to a maintained default. Anthropic's fix for this error starts with running /model with no argument and picking from the models available to your account, or using an alias.

What is the "Try ... instead" suggestion in the message?

On providers with provider-specific model IDs, Anthropic documents that the message may add a suggestion naming your provider's ID for a fallback model. It is the provider's own ID for a fallback model.

Does the session stop when setModel() fails in the Agent SDK?

No. Anthropic documents that in the Agent SDK setModel() fails with this message and the session keeps running on its previous model. In the TypeScript SDK, call supportedModels() to list the models you can switch to.

Which Claude Code versions changed this error?

Before v2.1.265, /model also rejected the opusplan[1m] alias spelling with this error. On those versions, update Claude Code, or set the model in settings or with --model instead.