Skip to content

Claude provider stays "not authenticated" on macOS despite a working Pro login (capabilities probe yields no result) #41195

Open

Description

@chenlong164

What happened

On macOS, a Claude provider instance backed by a real, working subscription login is reported as "Claude Code is not authenticated. Run claude auth login and try again." — and because auth.status === "unauthenticated" blocks thread creation, Claude is unusable in T3 Code.

This happens both for the default ~/.claude home and for an explicit homePath (e.g. /Users/Admin/.claude-account2). So homePath / CLAUDE_CONFIG_DIR is not the trigger — the account itself is fine.

The decisive evidence: the exact same SDK initialize handshake, run outside T3 with the same binary, same args, same env and same CLAUDE_CONFIG_DIR, succeeds in 333 ms and returns a populated account:

{ "email": "193****@proton.me", "organization": "...", "subscriptionType": "Claude Pro", "apiProvider": "firstParty" }

So the account is signed in and the claudeAuthStatus() verdict would be authenticated — the capability probe simply never produces that result inside T3.

claude auth status for the same config dir:

{ "loggedIn": true, "authMethod": "claude.ai", "apiProvider": "firstParty",
  "email": "193****@proton.me", "subscriptionType": "pro", "planTier": "pro",
  "configDirectory": "/Users/Admin/.claude-account2", "storedClaudeAiLogin": true }

Evidence from server.trace.ndjson

checkClaudeProviderStatus completes and returns unauthenticated, yet inside its span only the --version command shows up. In a failing trace:

span duration
checkClaudeProviderStatus 1265.3 ms
└ runClaudeCommand (claude --version) 245.8 ms
snapshotProbe.spawnAndCollect 20.9 / 245.7 ms

No long-running capabilities-probe session appears anywhere in the span. Other runs are shorter still (330.6 ms, 4508.6 ms) with the same outcome. The verdict is cached as:

{ "status": "error", "auth": { "status": "unauthenticated" },
  "message": "Claude Code is not authenticated. Run `claude auth login` and try again." }

That message is the generic branch of checkClaudeProviderStatus, i.e. the configDir === void 0 arm — meaning the probe result was undefined entirely, not "probe ran and said unauthenticated". That matches probeClaudeCapabilities throwing ClaudeCapabilitiesProbeSdkError({ operation: "initialize" }) and being swallowed into capabilities = undefined.

Steps to reproduce

  1. macOS, T3 Code 0.1.11 (desktop, local server).
  2. Claude Code 2.1.330 installed globally via npm; which claude → ~/.npm-global/bin/claude.
  3. Sign in with a Claude Pro subscription: claude auth login. Confirm claude auth status → loggedIn: true.
  4. In T3, open Settings → Providers. Claude shows "Claude Code is not authenticated".
  5. Point the Claude instance's CLAUDE_CONFIG_DIR / home path at a second signed-in config dir. Same result.
  6. Try to start a Claude thread → blocked ("Provider is not authenticated.").

Control experiment (works)

Reproducing T3's probe options outside T3, with the same args and env, always succeeds:

const env = { ...process.env,
  CLAUDE_CONFIG_DIR: '<config dir>',
  ENABLE_CLAUDEAI_MCP_SERVERS: 'false',
  CLAUDE_CODE_AUTO_CONNECT_IDE: '0',
  CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL: '1' };

const child = spawn('claude', [
  '--output-format','stream-json','--verbose','--input-format','stream-json',
  '--permission-prompt-tool','stdio',
  '--setting-sources','user,project,local',
  '--strict-mcp-config',
], { env, cwd: <workspace>, stdio: ['pipe','pipe','pipe'] });

child.stdin.write(JSON.stringify({
  type: 'control_request', request_id: '1',
  request: { subtype: 'initialize', hooks: null }
}) + '\n');
// → control_response with account in 333 ms

Things already ruled out:

  • Account / token: claude -p works and returns real output through the same proxy.
  • Proxy env: the T3 server process carries an inherited HTTPS_PROXY. Running the control experiment with that exact proxy still succeeds.
  • homePath config: the value is present and not overwritten by T3 in settings.json.
  • CLI version regression: tried Claude Code 2.1.300 and 2.0.77 — account is absent from -p init events in every version, but present in the SDK initialize control response. So -p init output is not a valid proxy for the SDK path.
  • Timeout: the probe timeout is 25 s; the control experiment finishes in 333 ms.
  • Keychain: the config-dir-specific keychain item (Claude Code-credentials-<hash>) holds a valid refresh token; macOS reads keychain rather than .credentials.json, and the CLI resolves it correctly outside T3.

Possibly related

Version

T3 Code 0.1.11 (desktop), server 0.1.11. Claude Code 2.1.330. Claude Agent SDK 0.3.321.

Environment

macOS 26.4.1 (arm64), Node v24.18.0, npm 11.16.0. Claude Code installed with npm i -g @anthropic-ai/claude-code (~/.npm-global/bin/claude → .../bin/claude.exe, a native Mach-O binary with no cli.js). Desktop app, local server, Claude Pro subscription signed in via claude.ai.

Activity

  1. leandroVistra commented on Nov 27, 2026

    @leandroVistra

    Not reproducible here on 0.1.13 (macOS arm64, t3 serve against an empty --base-dir), Claude Code 2.1.318 from the native installer (~/.local/bin/claude), default ~/.claude, Max subscription, no proxy. checkClaudeProviderStatus took about 1 s and the cached status is ready / authenticated with the plan detected, so the capabilities probe returned a result.

    The "not authenticated" fallback in ClaudeProvider.ts is unchanged since 0.1.11, so this only narrows the trigger. It doesn't confirm a fix. Remaining differences from the report: npm-global install, an inherited HTTPS_PROXY, the desktop app, and a Pro plan. Does it still happen for you on 0.1.13?

  2. photonclock commented on Nov 29, 2026

    @photonclock

    Exact same behavior here. Clause v2.1.332, T3 Version 0.1.13 (bc0f04d)
    Noteworthy (but I have no idea if it's related). My last session was a remote session from my iPad to the mac mini indicating claude not authenticated. My laptop remains authenticated. The mac mini showing not authenticated works fine - I'm chatting w claude now. I tried the claude auth login command, got a token, but that had no effect on T3 Code. It still shows a red dot and "Not authenticated".

    Also, this behavior is new for me: only noticed it today. The only reason I noticed it was because T3 indicated Antigravity couldn't be updated because it wasn't logged in. I auth'd Antigravity, then noticed Claude indicated not auth'd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions