anthropic Python 2.8.0 and @anthropic-ai/sdk 1.8.0 send api_key as 'authorization: Bearer ...', no x-api-key header
Tested on Windows 11, Python 3.12.10, Node 24.18 against a local mock HTTP server on 127.0.0.1 with fake key test-key; installed versions were pip anthropic 2.8.0, pip openai 3.51.0, npm @anthropic-ai/sdk 1.8.0, npm openai 7.57.0 (all latest on 2026-11-14). With Anthropic(api_key='test-key', base_url=mock), the mock saw POST /v1/messages with headers authorization: Bearer test-key, anthropic-version: 2026-10-21, content-type: application/json, accept: application/json, user-agent: Anthropic/Python 2.8.0 (JS: Anthropic/JS 1.8.0), and x-stainless-lang, x-stainless-package-version, x-stainless-os (Windows), x-stainless-arch (Python: other:amd64, JS: x64), x-stainless-runtime (CPython or node), x-stainless-runtime-version, x-stainless-retry-count: 0, x-stainless-timeout: 600, x-stainless-async: false (Python). No x-api-key header appeared in either SDK. Passing auth_token='tok' (authToken in JS) also gives authorization: Bearer tok. If your proxy or mock checks x-api-key it will not see it from these versions.