CLI /login and /usage only see default (Max) org when account has multiple orgs

Resolved 💬 3 comments Opened Apr 15, 2026 by marcoantoniofassa Closed Apr 19, 2026

Summary

My Anthropic account (claude@contele.com.br) belongs to two organizations:

  • Contele — Team plan, I'm the primary owner
  • Pessoal — Max plan (auto-created personal org)

In the Claude desktop app I can switch between them freely. In Claude Code CLI (2.1.109), /login doesn't offer the Team org — it silently authenticates against the Max org only, and /usage / /stats bill against Max even when Contele (Team) is set as the active org on the desktop app.

Steps to reproduce

  1. Be a member of 2+ orgs on the same account (one Max, one Team)
  2. On the desktop app, switch active org to the Team one
  3. In CLI: /logout, then /login, complete OAuth in browser
  4. /status still reports Login method: Claude Max account and Organization: {email}'s Organization
  5. No UI or command to switch orgs

Tried the full logout/login cycle twice. Same result.

Expected

CLI should either:

  • Prompt for org selection after OAuth when the account has multiple orgs, or
  • Respect the active-org selection the user made in the desktop app, or
  • Expose a /switch-org command

...matching desktop app behavior.

Evidence

OAuth profile endpoint returns only the Max org:

curl -H "Authorization: Bearer <claudeAiOauth.accessToken>" \
     -H "anthropic-beta: oauth-2025-04-20" \
     https://api.anthropic.com/api/oauth/profile

Response (abridged):

{
  "account": { "email": "claude@contele.com.br", "has_claude_max": true },
  "organization": {
    "uuid": "<max-org-uuid>",
    "organization_type": "claude_max",
    "name": "claude@contele.com.br's Organization",
    "rate_limit_tier": "default_claude_max_20x"
  },
  "application": { "name": "Claude Code", "slug": "claude-code" }
}

No mention of the Team org, which exists and is visible/active on claude.ai.

Organizations list endpoint rejects the same token:

curl -H "Authorization: Bearer <same-token>" \
     -H "anthropic-beta: oauth-2025-04-20" \
     https://api.anthropic.com/api/organizations

Returns:

{
  "type": "error",
  "error": {
    "type": "permission_error",
    "message": "Invalid authorization",
    "details": { "error_code": "account_session_invalid" }
  }
}

Suggests the OAuth token issued to Claude Code lacks the scope needed to enumerate the user's orgs — so the CLI likely can't offer an org picker even in principle.

Environment

  • Claude Code: 2.1.109
  • macOS 15.4 (Darwin 25.4.0)
  • Shell: zsh
  • ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN: both unset (pure OAuth / subscription)

Related anomalies seen in desktop app logs (possibly separate bugs, sharing in case useful)

  1. Recurring 503 on the environments endpoint, every 10–20 min since 05:44 BRT on 2026-04-15:

``
GET /v1/environment_providers/private/organizations/<uuid>/environments
→ 503 "upstream connect error or disconnect/reset before headers. reset reason: overflow"
``

  1. sessions-bridge in an infinite poll/backoff loop in ~/Library/Logs/Claude/main.log:

``
[error] [sessions-bridge] Poll error, backing off: This operation was aborted
[info] [sessions-bridge] Backing off for 1000ms
``
Happens continuously; occasionally escalates to 2000ms/4000ms then resets.

Impact

Can't attribute Claude Code usage to my company's Team plan. Forced to burn Max quota on company work, while the Team seat I paid for sits idle from the CLI's perspective.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗