xonecas.io
64875
Mc

mini-coder / commit ace4e6c

fix: use x-api-key header for OAuth token in Anthropic inference

The Anthropic API accepts OAuth access tokens via x-api-key, not
Authorization: Bearer. Pass the token as apiKey instead of authToken.

xonecas2026-03-16 ace4e6cb6cb4f9f5d5a1de19bac69325a37743e1 parent d2f5365

1 file changed

src/llm-api/providers.ts+1−1
@@ -188,7 +188,7 @@ async function resolveAnthropicModel(modelId: string): Promise<LanguageModel> {
188188 token,
189189 provider: createAnthropic({
190190 fetch: fetchWithLogging,
191- authToken: token,
191+ apiKey: token,
192192 }),
193193 };
194194 }