Commit graph

3 commits

Author SHA1 Message Date
hannesrudolph
4dd1ae6ca4 fix: calculate cost for Claude Code provider when CLI doesn't provide it
- Use cost_usd from CLI response when available
- Fall back to calculating cost based on token usage and model pricing
- Ensures consistent cost reporting across all providers
2025-06-18 20:43:05 -06:00
Hannes Rudolph
6baac9147f
Update src/api/providers/claude-code.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-18 20:21:52 -06:00
hannesrudolph
0393752e2d feat: add Claude Code provider for local CLI integration
- Add new provider that executes local claude CLI tool
- Support streaming responses from CLI JSON output
- Add configuration UI for setting CLI path
- Include all necessary type definitions and models
- Add English translations for new provider

This allows users to use Claude models through a locally installed
command-line tool instead of API endpoints.
2025-06-18 20:20:13 -06:00