The key was provisioned as an OAuth token, not an API key. Read it from Consul into ANTHROPIC_AUTH_TOKEN (the SDK uses it as a Bearer credential) and add the required anthropic-beta: oauth-2025-04-20 header on the messages calls. Credential guards now accept a key or a token. The job no longer sets ANTHROPIC_API_KEY, since even an empty value would shadow the token.
42 KiB
42 KiB