total_cost_usd = 0: Claude Code
Quick fix
Add pricing for claude-opus-5-5 to the model_pricing seed data to prevent imported request costs from being recorded as $0.
Symptom
Section titled “Symptom”Opus 5.5 requests are stored with `total_cost_usd = 0` (same failure mode as #7050).When Claude Code uses `claude-opus-5-5`, cc-switch has no record for that model in `seed_model_pricing`. After session logs are imported, pricing cannot be matched, so `total_cost_usd` is stored as 0.
Do not directly reuse the `claude-opus-5` record: the issue notes that their prices differ, especially cache-read pricing. Provide separate pricing seed data for `claude-opus-5-5`.
Add a separate pricing seed record for `claude-opus-5-5` in `seed_model_pricing`: input $4/MTok, output $20/MTok, cache read $0.20/MTok, and cache write $5/MTok.
Re-import Claude Code session logs that use `claude-opus-5-5`, then confirm that this model entry appears in Usage → Pricing.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.