Skip to content

Add support for Claude Sonnet 4.5 model #43

@krzemienski

Description

@krzemienski

Summary

The ccflare load balancer is missing support for the newly released Claude Sonnet 4.5 model (claude-sonnet-4-5-20250929).

Current State

The following Claude 4 models are currently supported:

  • Claude Opus 4 (claude-opus-4-20250514)
  • Claude Opus 4.1 (claude-opus-4-1-20250805)
  • Claude Sonnet 4 (claude-sonnet-4-20250514)

Requested Feature

Add full support for Claude Sonnet 4.5 including:

  • Model ID definition in CLAUDE_MODEL_IDS
  • Display name and short name mappings
  • Addition to ALLOWED_MODELS for agent usage
  • Pricing configuration
  • CLI shorthand mapping (--set-model sonnet-4.5)

Implementation

This follows the same pattern as the Opus 4.1 implementation (commit 98556ae), requiring updates to:

  • packages/core/src/models.ts
  • packages/types/src/agent.ts
  • packages/core/src/pricing.ts
  • apps/tui/src/main.ts

Model Details

  • Model ID: claude-sonnet-4-5-20250929
  • Display Name: Claude Sonnet 4.5
  • Short Name: claude-sonnet-4.5
  • Pricing: Same as Sonnet 4 ($3 input, $15 output per 1M tokens)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions