Omniscio

OmniscioGuidesOrganization disabled API key authentication

Claude Code: your organization has disabled API key authentication

Last checked against Anthropic's documentation on November 23, 2026. By the Omniscio team. Updated .

What is the exact message?

The recovery hint after the separator varies by where the key came from, and Anthropic lists five forms:

Your organization has disabled API key authentication · Run /login to sign in with your claude.ai account
Your organization has disabled API key authentication · Unset ANTHROPIC_API_KEY to use your claude.ai account instead
Your organization has disabled API key authentication · Unset ANTHROPIC_API_KEY and run /login to sign in with your claude.ai account
Your organization has disabled API key authentication · Unset the apiKeyHelper setting and run /login to sign in with your claude.ai account
Your organization has disabled API key authentication · Sign in again with your claude.ai account

The hint tells you what that particular session is holding: a key in the environment, a key from an apiKeyHelper setting, or neither. The last form appears in a session the Claude Desktop app runs, such as the Code tab or Cowork, where you sign in again from the app. Anthropic's entry for this message starts at Claude Code v2.1.169.

What does it mean?

Your Console organization's admin has turned off API key authentication, so the API rejects the key Claude Code is sending. The organization no longer accepts that kind of credential.

This is a setting on the organization, not on your machine, so no change in your terminal makes the API accept the key again.

The complication is precedence. Environment variables and apiKeyHelper take precedence over /login, so running /login alone does not help while either is still supplying a key. That is why two of the five hint forms name an unset as well as a sign-in.

How do I fix it?

Pick the branch your message matches, then check the result:

  1. In the Claude Desktop app (the Code tab or Cowork)? Sign in again from the app. That is the whole fix there, because the message's last form names no credential: the app signs you in itself.
  2. In a terminal, with a message that names ANTHROPIC_API_KEY? Unset it in the current shell, meaning the terminal session you are in, and remove it from your shell profile or .env file. Then relaunch claude.
  3. In a terminal, with a message that names the apiKeyHelper setting? Remove that setting from your settings.json. The format is on the settings file page.
  4. In a terminal, with a message that names no credential? Go straight to the next step.
  5. If the hint tells you to sign in, run /login to sign in with your claude.ai account. Then run /status to confirm the active credential is your subscription rather than an API key.
  6. If you need API key authentication for automation, ask your organization admin to re-enable it in the Console.

An apiKeyHelper script that keeps failing has its own message and its own fix, covered on apiKeyHelper script failing.

How do I know it is fixed?

  • The message no longer appears, because the request no longer carries an API key.
  • /status names your subscription as the active credential, not an API key.

Where these answers come from

Common questions

Is my API key invalid?

The message is about your organization's setting, not about the key's value. The API rejects the key because the organization no longer accepts API key authentication; signing in with your claude.ai account, or an admin re-enabling it, is what changes that.

Can I use a key for automation while I still sign in by hand?

Not while the organization refuses key authentication. Ask an admin to re-enable it in the Console for the scripts, and until then use your claude.ai login in the terminal.

Why does /login not fix it on its own?

Because a key in the environment or from apiKeyHelper takes precedence over your login. While one is still present, the request keeps carrying it.