Skip to content

fix(opencode): lower Claude Sonnet 5.5 cache read to $0.10 to match Anthropic - #13175

Merged
fwang merged 1 commit into
devfrom
zen-sonnet-cache
Nov 9, 2026
Merged

fwang merged 1 commit into
devfrom
zen-sonnet-cache

Conversation

@Slickstef11

Copy link
Copy Markdown
Contributor

Summary

OpenCode Zen still prices Claude Sonnet 5.5 cache reads at $0.20/MTok. Anthropic halved them to $0.10/MTok on 2026-10-07, and providers/anthropic/models/claude-sonnet-5-5.toml was updated the same day in #9035, but the Zen entry kept the launch price. Zen passes provider prices through at cost, so this sets Zen's cache-read price to $0.10.

Changes

  • providers/opencode/models/claude-sonnet-5-5.toml: [cost.text.input] cache.read 0.2 → 0.1, plus a header comment citing the source. Input, output and cache write are unchanged.

Sources

Validation

bun validate passes. bun run v1:check reports one v1 change, the intended price fix:

Changed v1 fields (count, change, examples):
     1  api cost.cache_read: 0.2 -> 0.1   [opencode/claude-sonnet-5-5]

As a sourced price fix inside the v1 schema, this needs maintainer approval.

Notes

  • I compared every Claude model in providers/opencode with its providers/anthropic price in the live api.json. Sonnet 5.5 is the only one that differs.
  • The Console pricing page in anomalyco/opencode (services/site/src/docs/content/console/models.mdx) also lists $0.20 and needs a matching update.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 9, 2026
@fwang
fwang merged commit 6a7d958 into dev Nov 9, 2026
2 checks passed
@fwang
fwang deleted the zen-sonnet-cache branch November 9, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants