Skip to content

Billing error with Extra Usage disabled #4

@askalf

Description

@askalf

Bug Report

Reported by: @belangertrading

Environment:

  • Claude Max subscription with Extra Usage off
  • Session usage: 0% current session, 68% weekly limit
  • Version: v2.3.0

Problem

After updating to v2.3.0, requests return "API provider returned a billing error" despite having available usage budget and Extra Usage disabled.

Root Cause

Dario's default anthropic-beta header included context-management-2025-06-27 and prompt-caching-scope-2026-01-05 — beta flags that may require Extra Usage on Max subscriptions. When Extra Usage is disabled, the Anthropic API rejects requests that use these features.

Fix

v2.3.1 (released) removes these potentially billable betas from defaults. Only essential betas are now included:

  • oauth-2025-04-20 — required for OAuth auth
  • interleaved-thinking-2025-05-14 — standard thinking
  • claude-code-20250219 — session identity

Client-provided betas still pass through with filtering for known billable prefixes.

Resolution

Update to v2.3.1:

npm install -g @askalf/dario@latest

cc @belangertrading — this should fix the billing error you reported. Let us know if it persists after updating.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions