[BUG] WebSearch, Token Counting API unavailable on bedrock-connected billing accounts
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Several Claude API features that work with direct Anthropic API billing are not available when using AWS Bedrock-connected accounts.
- WebSearch tool
- Token Counting API
Evidence -
Web Search("lazy execution programming concept")
⎿ Did 0 searches in 769ms
⏺️ Web Search("lazy execution lazy evaluation programming")
⎿ Did 0 searches in 854ms
⏺️ The web search is returning errors. Here's what I know about lazy execution:
What Should Happen?
Expected Behavior
These features should either work on Bedrock, or Claude Code should gracefully
handle their absence with clear messaging (e.g., "WebSearch is not available on
your API provider — falling back to WebFetch").
Currently there is no documentation or in-app indication that these features are
Anthropic-direct-only.
Actual Behavior
Features silently fail or produce errors without indicating the root cause is the
Bedrock API provider.
Error Messages/Logs
Steps to Reproduce
- Run Claude on bedrock billed account
- Prompt to search for anything - "Search for lazy execution"
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.71 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗