fix(score): strip ANTHROPIC_API_KEY from CLI subprocess env #3
Reference in New Issue
Block a user
Delete Branch "fix/cli-oauth-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.