Skip to content

Conversation

@krzemienski
Copy link

Summary

Adds support for the newly released Claude Sonnet 4.5 model (claude-sonnet-4-5-20250929).

Closes #43

Changes

  • ✅ Add SONNET_4_5 model ID to CLAUDE_MODEL_IDS
  • ✅ Add display name ("Claude Sonnet 4.5") and short name ("claude-sonnet-4.5") mappings
  • ✅ Add SONNET_4_5 to ALLOWED_MODELS for agent usage
  • ✅ Add pricing configuration ($3 input, $15 output per 1M tokens, matching Sonnet 4)
  • ✅ Add "sonnet-4.5" CLI shorthand mapping for --set-model command

Implementation Pattern

Follows the same implementation pattern as Opus 4.1 (commit 98556ae):

  • packages/core/src/models.ts - Model ID, display name, and short name
  • packages/types/src/agent.ts - Added to ALLOWED_MODELS array
  • packages/core/src/pricing.ts - Pricing configuration
  • apps/tui/src/main.ts - CLI shorthand mapping

Testing

  • ✅ All quality checks passed: bun run lint && bun run typecheck && bun run format
  • ✅ No syntax errors or type errors
  • ✅ Pricing matches official Anthropic pricing

Model Details

  • Model ID: claude-sonnet-4-5-20250929
  • Display Name: Claude Sonnet 4.5
  • Short Name: claude-sonnet-4.5
  • CLI Usage: ccflare --set-model sonnet-4.5
  • Pricing: Input $3/M tokens, Output $15/M tokens (same as Sonnet 4)

VQA Developer and others added 3 commits September 29, 2025 20:02
- Add SONNET_4_5 model ID to CLAUDE_MODEL_IDS
- Add display name and short name mappings
- Add SONNET_4_5 to ALLOWED_MODELS for agent usage
- Add pricing configuration ($3 input, $15 output per 1M tokens)
- Add "sonnet-4.5" CLI shorthand mapping

Follows the same implementation pattern as Opus 4.1 (commit 98556ae)
- Add indigo and cyan colors to COLORS palette
- Update MODEL_COLORS in all chart components with Claude 4 models
- Add colors for: claude-opus-4.1, claude-sonnet-4, claude-sonnet-4.5
- Ensures consistent chart styling for all supported models

This completes the UI integration for Claude Sonnet 4.5 support
@bitcoin4cashqc
Copy link

is this the reason why ccflare usage is different than the one I see in claude.

@krzemienski
Copy link
Author

is this the reason why ccflare usage is different than the one I see in claude.

Probably - also now with haiku being introduced and if you are using the agent override model proxy it could be doing it

@bitcoin4cashqc
Copy link

This work better for me https://github.com/tombii/better-ccflare

Usage is fetched from Anthropic directly.

@cantalupo555
Copy link

Isso funciona melhor para mim https://github.com/tombii/better-ccflare

O uso é obtido diretamente da Anthropic.

@bitcoin4cashqc Thanks

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.

Add support for Claude Sonnet 4.5 model

3 participants