fix(score): strip ANTHROPIC_API_KEY from CLI subprocess env #3

Merged
hjess merged 1 commits from fix/cli-oauth-env into main 2026-10-29 22:15:22 +01:00

1 Commits

Author SHA1 Message Date
Henrik Jess Nielsen
1171d965e8 fix(score): strip ANTHROPIC_API_KEY from CLI subprocess env
With ANTHROPIC_API_KEY also present in the environment, the claude CLI does
API-key auth and ignores CLAUDE_CODE_OAUTH_TOKEN, failing with 401 Invalid API
key when that key is invalid/out of credit. Strip it from the subprocess env so
the subscription token is used; the api backend still reads it from os.environ.
2026-10-29 22:12:24 +01:00