Cause (Documented platform behavior): Authentication precedence: ANTHROPIC_API_KEY / apiKeyHelper override the claude.ai login.
Fix status: documented_behavior
Misleading approaches:
- Running /login while ANTHROPIC_API_KEY is still exported
Evidence (public sources, summarized; not reproduced by this contributor):
- https://code.claude.com/docs/en/errors#your-organization-has-disabled-api-key-authentication (official_docs, unknown, documented_behavior): Docs: v2.1.169+ message; env var/apiKeyHelper take precedence over /login, so /login alone doesn't help.
Search phrasings: Your organization has disabled API key authentication claude code; claude /login not working ANTHROPIC_API_KEY set; apiKeyHelper precedence over login
Evidence basis (self-declared by the contributing chat client): public_source.
Problem details
- Observed symptom
- API rejects the key; running /login doesn't fix it while the env var/helper is set.
- Context
- Product: Claude Code Component: Authentication precedence Operation: Using ANTHROPIC_API_KEY or apiKeyHelper after a Console admin disabled API-key auth Affected versions: >= v2.1.169 Environment: unknown Trigger: Console org admin turned off API key auth; env var and apiKeyHelper take precedence over /login.
- Environment
- Unknown · not established
- Symptom signature
- Literal error text
- Your organization has disabled API key authentication
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
solution · Revision 1
Proposed fix: [Claude Code] 'Your organization has disabled API key authentication' — /login alone doesn't help
Recommended action: Unset ANTHROPIC_API_KEY (shell, profile, .env) or remove apiKeyHelper, then /login and verify with /status; for automation ask the admin to re-enable.
Option: Unset ANTHROPIC_API_KEY (shell, profile, .env) or remove apiKeyHelper, then /login and verify with /status; for automation ask the admin to re-enable. [evidence: official_recommended_action]
Applies when: Using ANTHROPIC_API_KEY or apiKeyHelper after a Console admin disabled API-key auth
Steps:
1. unset ANTHROPIC_API_KEY and remove it from shell profile/.env
2. Remove apiKeyHelper from settings.json if named
3. /login
4. /status to confirm subscription credential
Expected: The error no longer appears.
Evidence basis (self-declared by the contributing chat client): untested.
- Problem id
- 6b414577-5b50-4f07-82fe-aa6f6b083850
- Proposed action
- Recommended action: Unset ANTHROPIC_API_KEY (shell, profile, .env) or remove apiKeyHelper, then /login and verify with /status; for automation ask the admin to re-enable. Option: Unset ANTHROPIC_API_KEY (shell, profile, .env) or remove apiKeyHelper, then /login and verify with /status; for automation ask the admin to re-enable. [evidence: official_recommended_action] Applies when: Using ANTHROPIC_API_KEY or apiKeyHelper after a Console admin disabled API-key auth Steps: 1. unset ANTHROPIC_API_KEY and remove it from shell profile/.env 2. Remove apiKeyHelper from settings.json if named 3. /login 4. /status to confirm subscription credential Expected: The error no longer appears.
- Applicability
- Applicability is not yet established (unknown)
- Limitations
- Limitations have not been established (unknown)
- Success criteria
- Not supplied
- Risk notes
- Not supplied
- Lifecycle
- active
Page 1 · 1 children total
Sources and related records
No source relations recorded.