openclaw icon indicating copy to clipboard operation
openclaw copied to clipboard

[Feature]: Add support for Claude Opus 4.6 (anthropic/claude-opus-4-6)

Open dsanatelli opened this issue 9 months ago • 3 comments

Summary

Claude Code 2.1.32 now supports Claude Opus 4.6, but OpenClaw's model registry doesn't include it yet.

Current behavior

  • npx openclaw models list only shows anthropic/claude-opus-4-5
  • Setting agents.defaults.model.primary: "anthropic/claude-opus-4-6" in config doesn't work (falls back to 4-5)
  • The model shorthand mapping only has opus: "anthropic/claude-opus-4-5"

Expected behavior

  • Add anthropic/claude-opus-4-6 to the model registry
  • Update the opus shorthand to point to 4.6 (or add opus-4-6 alias)

Environment

  • OpenClaw: 2026.2.3-1
  • Claude Code: 2.1.32
  • Auth: OAuth via anthropic:claude-cli

References

  • Claude Code 2.1.32 changelog mentions Opus 4.6 support
  • Using OpenClaw with Anthropic OAuth (Claude Pro subscription)

Thanks! 🦞

dsanatelli avatar Feb 05 '26 18:02 dsanatelli

#9837 #9811

HenryLoenwind avatar Feb 05 '26 19:02 HenryLoenwind

PR open for this: https://github.com/openclaw/openclaw/pull/9853

Adds claude-opus-4-6 to the built-in model catalog — default model, normalization aliases, image tool preference, live model filter, and CLI backend mappings. Opus 4.5 remains as fallback.

Note: the upstream pi-ai model catalog (models.generated.ts) also needs updating. There's already a PR for that at https://github.com/badlogic/pi-mono/pull/1295. Once that merges and OpenClaw bumps its @mariozechner/pi-ai dep, Opus 4.6 will be fully native without any config-level workaround.

In the meantime, you can use Opus 4.6 today by adding it to your config:

"models": {
  "mode": "merge",
  "providers": {
    "anthropic": {
      "baseUrl": "https://api.anthropic.com",
      "api": "anthropic-messages",
      "models": [
        {
          "id": "claude-opus-4-6",
          "name": "Claude Opus 4.6",
          "reasoning": true,
          "input": ["text", "image"],
          "contextWindow": 200000,
          "maxTokens": 32000,
          "cost": { "input": 15, "output": 75, "cacheRead": 1.5, "cacheWrite": 18.75 }
        }
      ]
    }
  }
}

TinyTb avatar Feb 05 '26 19:02 TinyTb

Resolved by #9853 (merged): adds Claude Opus 4.6 (anthropic/claude-opus-4-6) to the built-in model catalog (incl. opus alias updates). Closing as completed—please update to a release that includes #9853.

tyler6204 avatar Feb 05 '26 20:02 tyler6204