[BUG] Cost increased a lot

Resolved 💬 6 comments Opened May 17, 2025 by sleipner42 Closed May 17, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: v0.2.115
  • Operating System: macOS 15.4.1
  • Terminal: Wezterm

Bug Description

I started using claude code and all went fine. Then suddenly it started to get very expensive. Even a short message like "hi" costs me 0.1 USD. I see it's using a lot of cache write, but i'm not sure if that is whats causing it. Asking it to install a cli tool with brew costed like 0.5 USD.

Steps to Reproduce

  1. <!-- First step -->
  2. <!-- Second step -->
  3. <!-- And so on... -->

Expected Behavior

Less cost for simple commands.

Actual Behavior

Saying Hi cost me 0.1 USD

Additional Context

hi

⏺ Hello! How can I help you with your code today?

/cost

⎿  Total cost: $0.0950
Total duration (API): 4.2s
Total duration (wall): 10s
Total code changes: 0 lines added, 0 lines removed
Token usage by model:
claude-3-7-sonnet: 4 input, 15 output, 0 cache read, 25.3k cache write

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗