Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Feb 5, 2026

Adds support for Claude Opus 4.6, Anthropic's upgraded smartest model with:

  • Model ID: claude-opus-4-6
  • 1M token context window (beta feature - first for Opus-class models)
  • Pricing: $5/$25 per million tokens (input/output)
  • Key improvements: Better coding, planning, agentic tasks, larger codebase operations, code review/debugging
  • State-of-the-art performance on Terminal-Bench 2.0, Humanity's Last Exam, GDPval-AA, and BrowseComp

Changes

Anthropic Provider

  1. packages/types/src/providers/anthropic.ts - Added model definition with:

    • 32K max output tokens
    • 1M context window (beta)
    • Vision support
    • Prompt caching support
    • Reasoning budget support
    • Proper cache pricing (1.25x input for writes, 0.1x for reads)
  2. src/api/providers/anthropic.ts - Added claude-opus-4-6 to both switch case lists for prompt caching support

OpenRouter Provider

  1. packages/types/src/providers/openrouter.ts - Added anthropic/claude-opus-4.6 to:
    • OPEN_ROUTER_PROMPT_CACHING_MODELS
    • OPEN_ROUTER_REASONING_BUDGET_MODELS

Vercel AI Gateway Provider

  1. packages/types/src/providers/vercel-ai-gateway.ts - Added anthropic/claude-opus-4.6 to:
    • VERCEL_AI_GATEWAY_PROMPT_CACHING_MODELS
    • VERCEL_AI_GATEWAY_VISION_AND_TOOLS_MODELS

Notes on Bedrock and Vertex

Bedrock and Vertex providers use date-suffixed model IDs (e.g., anthropic.claude-opus-4-5-20251101-v1:0). The model can be added to these providers once it becomes available on those platforms with their specific naming conventions.


View task on Roo Code Cloud


Important

Add support for Claude Opus 4.6 model with 1M context window, prompt caching, and reasoning budget in anthropic.ts, openrouter.ts, vercel-ai-gateway.ts, and anthropic.ts.

  • Model Support:
    • Add claude-opus-4-6 model to anthropic.ts with 32K max tokens, 1M context window, vision support, prompt caching, and reasoning budget.
    • Pricing: $5/$25 per million tokens (input/output), cache pricing: 1.25x input for writes, 0.1x for reads.
  • Integration:
    • Add claude-opus-4-6 to prompt caching and reasoning budget models in openrouter.ts and vercel-ai-gateway.ts.
    • Update AnthropicHandler in anthropic.ts to include claude-opus-4-6 in model handling logic.

This description was created by Ellipsis for ac1eff1. You can customize this summary. It will automatically update as commits are pushed.

@roomote
Copy link
Contributor Author

roomote bot commented Feb 5, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The PR correctly adds Claude Opus 4.6 model support to OpenRouter and Vercel AI Gateway providers with proper prompt caching, reasoning budget, and vision/tools configuration. The implementation follows established patterns in the codebase.

Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@PeterDaveHello
Copy link
Contributor

#11222 could be more complete than this one?

@daniel-lxs daniel-lxs closed this Feb 5, 2026
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Feb 5, 2026
@daniel-lxs daniel-lxs deleted the feature/add-claude-opus-4-6 branch February 5, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants