Skip to content

claude.ai connectors are disabled - Claude Code

Quick fix

Unset ANTHROPIC_API_KEY to restore claude.ai login and organization connector loading.

Error output
⚠ claude.ai connectors are disabled because ANTHROPIC_API_KEY or another auth source is set and takes precedence over your claude.ai login · Unset it to load your organization's connectors

If `ANTHROPIC_API_KEY` or another auth source is present, Claude Code authenticates with that API key first and disables claude.ai login-based connectors. This usually happens after using cc-switch to change providers while the previous environment variable remains set.

  1. Unset the `ANTHROPIC_API_KEY` environment variable in the current terminal session.

    Terminal
    unset ANTHROPIC_API_KEY
  2. Check the cc-switch Provider configuration and make sure `ANTHROPIC_API_KEY` is not injected for the profile that uses claude.ai login.

ToolClaude Code
VersionUnknown
PlatformsmacOS

This page is distilled from 1 real issues

How can I avoid environment variable conflicts when using cc-switch?
Manage the `env` field in the cc-switch Provider configuration precisely, for example in `~/.claude/settings.local.json`, so `ANTHROPIC_API_KEY` does not remain after switching profiles.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.