diff --git a/ccproxy/plugins/claude_api/adapter.py b/ccproxy/plugins/claude_api/adapter.py index b73d88e2..94a68b25 100644 --- a/ccproxy/plugins/claude_api/adapter.py +++ b/ccproxy/plugins/claude_api/adapter.py @@ -85,6 +85,11 @@ async def prepare_provider_request( # Always set Authorization from OAuth-managed access token filtered_headers["authorization"] = f"Bearer {token_value}" + # PATCH: Add Computer Use beta headers for Anthropic API + # These are required for browser automation tools to work + filtered_headers["anthropic-version"] = "2023-06-01" + filtered_headers["anthropic-beta"] = "computer-use-2025-01-24" + # Add CLI headers if available, but never allow overriding auth cli_headers = self._collect_cli_headers() if cli_headers: