Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Claude Code error

Claude Code: API Error: 400 ... This organization has been disabled

Error message
API Error: 400 ... This organization has been disabled.

Status: WorkaroundLast verified 3 documented fixes2 sources

What it means

Claude Code is using a stale ANTHROPIC_API_KEY from a disabled Console organization. Environment variables take precedence over /login, so the key is used even when you have a working subscription. Current versions show Your ANTHROPIC_API_KEY belongs to a disabled organization · Unset the environment variable to use your subscription instead.

Causes

  • An old API key from a previous employer or project still exported in your shell profile or loaded from a .env file
  • In -p mode, the key is always used when present

How to fix it

  1. Fix 1.

    Unset ANTHROPIC_API_KEY and relaunch claude (PowerShell: Remove-Item Env:ANTHROPIC_API_KEY).

    Terminal
    unset ANTHROPIC_API_KEY
    claude
  2. Fix 2.

    Remove export ANTHROPIC_API_KEY=... lines from ~/.zshrc, ~/.bashrc, or ~/.profile (on Windows, check $PROFILE and User environment variables), then run /status to confirm the active method.

  3. Fix 3.

    If the message says Update or unset, you have no saved login: unset the key and run /login, or replace it with a key from an active Console organization.

    Slash command
    /login

More Claude Code errors

All 18 Claude Code errors

FAQ

What does "API Error: 400 ... This organization has been disabled" mean in Claude Code?

Claude Code is using a stale ANTHROPIC_API_KEY from a disabled Console organization. Environment variables take precedence over /login, so the key is used even when you have a working subscription. Current versions show Your ANTHROPIC_API_KEY belongs to a disabled organization · Unset the environment variable to use your subscription instead.

How do I fix "API Error: 400 ... This organization has been disabled"?

There are 3 documented fixes. Start with the first: Unset ANTHROPIC_API_KEY and relaunch claude (PowerShell: Remove-Item Env:ANTHROPIC_API_KEY).

Is this Claude Code error fixed?

Status: Workaround. No release removes the cause. The documented fixes work around it.

Sources

Last verified against 2 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.