You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no explicit pricing entry for Opus 4.8 (claude-opus-4-8) in the pricing tables, even though it's the current top Opus model. The explicit table lists claude-opus-4-7, -4-6, and -4-5, but not -4-8.
Current behavior
Cost for claude-opus-4-8is still calculated — but only because it falls through to the generic opus substring fallback, which returns the 4.7 rate:
cli.py:41-42 → if "opus" in m: return PRICING["claude-opus-4-7"]
dashboard.py:543 → if (m.includes('opus')) return PRICING['claude-opus-4-7'];
Opus 4.8 has the same API pricing as 4.7 ($5 / $25 input/output, $0.50 cache read, $6.25 cache write per MTok), so the numbers happen to be correct today.
Why it's still worth fixing
Silent mis-costing risk — the fallback hard-codes 4.7. If 4.8 is ever priced differently, costs will be wrong with no signal.
Inconsistency — 4-7/4-6/4-5 are explicit entries; the newest/most-used model isn't.
Stale fallback default — the opus catch-all should point at the latest model (4.8), not a previous one.
Summary
There's no explicit pricing entry for Opus 4.8 (
claude-opus-4-8) in the pricing tables, even though it's the current top Opus model. The explicit table listsclaude-opus-4-7,-4-6, and-4-5, but not-4-8.Current behavior
Cost for
claude-opus-4-8is still calculated — but only because it falls through to the genericopussubstring fallback, which returns the 4.7 rate:cli.py:41-42→if "opus" in m: return PRICING["claude-opus-4-7"]dashboard.py:543→if (m.includes('opus')) return PRICING['claude-opus-4-7'];Opus 4.8 has the same API pricing as 4.7 ($5 / $25 input/output, $0.50 cache read, $6.25 cache write per MTok), so the numbers happen to be correct today.
Why it's still worth fixing
opuscatch-all should point at the latest model (4.8), not a previous one.cli.pyanddashboard.pyneed the entry.Proposed fix
Add an explicit
claude-opus-4-8entry to both pricing tables (same rates as 4.7) and bump theopusfallback default toclaude-opus-4-8: