Skip to content

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.

Error output
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`.

  1. 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.

  2. Re-import Claude Code session logs that use `claude-opus-5-5`, then confirm that this model entry appears in Usage → Pricing.

ToolClaude Code
Version受影响:3.20.3 - 3.20.4
PlatformsmacOS

(No FAQ yet)

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.