Bug type
Regression (worked before, now fails)
Summary
T
ext
Environment
- OpenClaw version: 2026.3.2
- Platform: Windows 11 + WSL2 Ubuntu
- Provider: Anthropic
- Model tested in OpenClaw: anthropic/claude-sonnet-4-6
- Auth method: ANTHROPIC_API_KEY via environment variable
Problem
OpenClaw consistently fails before reply with:
All models failed (1): anthropic/claude-sonnet-4-6: Provider anthropic has billing issue (skipping all models) (billing)
However, Anthropic billing is active and direct API calls succeed.
What I verified
- Anthropic Console has active credit balance ($50).
- Claude Workbench usage is consuming tokens successfully.
- Anthropic Models API works with the same API key.
- Anthropic Messages API works with the same API key and model.
Direct API reproduction (works)
curl https://api.anthropic.com/v1/messages \
-H "content-type: application/json" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-sonnet-4-6",
"max_tokens": 64,
"messages": [
{"role": "user", "content": "Reply with only OK."}
]
}'
Response:
{"model":"claude-sonnet-4-6", ... "content":[{"type":"text","text":"OK."}], ...}
Models API reproduction (works)
curl https://api.anthropic.com/v1/models \
--header "x-api-key: $ANTHROPIC_API_KEY" \
--header "anthropic-version: 2023-06-01"
Returned models include:
- claude-sonnet-4-6
- claude-opus-4-6
- claude-opus-4-5-20251101
- claude-haiku-4-5-20251001
- claude-sonnet-4-5-20250929
- claude-opus-4-1-20250805
- claude-opus-4-20250514
- claude-sonnet-4-20250514
OpenClaw config
Only Anthropic was left enabled during final testing.
"agents": {
"defaults": {
"model": {
"primary": "anthropic/claude-sonnet-4-6"
},
"models": {
"anthropic/claude-sonnet-4-6": {}
}
}
}
Notes
- I also cleared old Anthropic auth state locally and restarted the gateway.
- I removed OpenAI fallback during testing to isolate the issue.
openclaw update did not change version (before: 2026.3.2, after: 2026.3.2).
Expected behavior
OpenClaw should successfully use Anthropic with this API key, or surface the raw provider error if the request actually failed.
Actual behavior
OpenClaw classifies Anthropic as a billing issue and skips the provider, even though direct Anthropic API calls succeed with the same key.
Possible cause
This looks like an Anthropic error classification / cooldown / billing misclassification issue in OpenClaw rather than an actual provider billing failure.
Happy to provide more logs if there is a recommended debug flag to expose the raw Anthropic error payload before OpenClaw maps it to billing.
Steps to reproduce
- Set up OpenClaw 2026.3.2 on Windows 11 + WSL2 Ubuntu.
- Configure Anthropic as the only provider with:
- primary model: anthropic/claude-sonnet-4-6
- ANTHROPIC_API_KEY set via environment variable
- Start the gateway with:
openclaw gateway run
- Open the OpenClaw Dashboard and send a simple message such as:
test
- Observe that OpenClaw fails with:
Provider anthropic has billing issue (skipping all models) (billing)
- Using the same ANTHROPIC_API_KEY, call Anthropic directly:
- GET /v1/models
- POST /v1/messages
- Observe that both direct Anthropic API calls succeed, including a successful response from claude-sonnet-4-6.
Expected behavior
OpenClaw should successfully use Anthropic with this API key, or surface the raw provider error if the request actually failed.
Actual behavior
OpenClaw classifies Anthropic as a billing issue and skips the provider, even though direct Anthropic API calls succeed with the same key.
OpenClaw version
2026.3.2
Operating system
Windows 11 + WSL2 Ubuntu
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Bug type
Regression (worked before, now fails)
Summary
T
ext
Environment
Problem
OpenClaw consistently fails before reply with:
All models failed (1): anthropic/claude-sonnet-4-6: Provider anthropic has billing issue (skipping all models) (billing)
However, Anthropic billing is active and direct API calls succeed.
What I verified
Direct API reproduction (works)
Response:
{"model":"claude-sonnet-4-6", ... "content":[{"type":"text","text":"OK."}], ...}Models API reproduction (works)
Returned models include:
OpenClaw config
Only Anthropic was left enabled during final testing.
Notes
openclaw updatedid not change version (before: 2026.3.2, after: 2026.3.2).Expected behavior
OpenClaw should successfully use Anthropic with this API key, or surface the raw provider error if the request actually failed.
Actual behavior
OpenClaw classifies Anthropic as a billing issue and skips the provider, even though direct Anthropic API calls succeed with the same key.
Possible cause
This looks like an Anthropic error classification / cooldown / billing misclassification issue in OpenClaw rather than an actual provider billing failure.
Happy to provide more logs if there is a recommended debug flag to expose the raw Anthropic error payload before OpenClaw maps it to
billing.Steps to reproduce
openclaw gateway run
test
Provider anthropic has billing issue (skipping all models) (billing)
Expected behavior
OpenClaw should successfully use Anthropic with this API key, or surface the raw provider error if the request actually failed.
Actual behavior
OpenClaw classifies Anthropic as a billing issue and skips the provider, even though direct Anthropic API calls succeed with the same key.
OpenClaw version
2026.3.2
Operating system
Windows 11 + WSL2 Ubuntu
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response