[BUG] RemoteTrigger tool returns 401 despite valid OAuth on Max plan (tengu_ccr_bridge: false)

Resolved 💬 3 comments Opened Mar 30, 2026 by hecrabatbusinessschool Closed Apr 2, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The RemoteTrigger tool in Claude Code CLI returns HTTP 401 (authentication_error) for all actions (list, create, get, etc.), despite being authenticated via OAuth with a valid Max plan subscription.

Auth status confirms OAuth is active:

{
  "loggedIn": true,
  "authMethod": "oauth_token",
  "apiProvider": "firstParty"
}

Root cause: The GrowthBook feature flag tengu_ccr_bridge is set to false server-side for my account, even though I have an active Max plan. The flag gets overwritten to false on every CLI restart, even after manually setting it to true in ~/.claude.json.

Key observations:

  • cachedGrowthBookFeatures.tengu_ccr_bridge: false (should be true for Max plan)
  • hasAvailableSubscription: was null (should be true)
  • The web UI at claude.ai/code/scheduled works perfectly — I can see and create scheduled tasks there
  • Only the CLI RemoteTrigger tool fails with 401
  • The MCP scheduled-tasks tool works fine (but it's local, not cloud-based)
  • Previously briefly switched to API key auth, then back to OAuth — may have caused desync

Claude Code version: 2.1.87 (latest)
OS: macOS Darwin 25.0.0

Related issues: #34528, #29192, #35877

What Should Happen?

The RemoteTrigger tool should authenticate successfully using the OAuth token and return results from the /v1/code/triggers API, just like the web UI at claude.ai/code/scheduled does.

The tengu_ccr_bridge feature flag should be true for all accounts with an active Max plan subscription.

Error Messages/Logs

HTTP 401
{"type":"error","error":{"type":"authentication_error","message":"Authentication failed"},"request_id":"req_011CZYKSbHyFKhsZKQfFbuir"}

Steps to Reproduce

  1. Have an active Max plan subscription on claude.ai
  2. Authenticate Claude Code CLI via OAuth (claude auth login)
  3. Confirm auth: claude auth status shows authMethod: "oauth_token", apiProvider: "firstParty"
  4. Use the RemoteTrigger tool with action: "list" → returns 401
  5. Check ~/.claude.jsoncachedGrowthBookFeatures.tengu_ccr_bridge is false
  6. Manually set tengu_ccr_bridge to true in ~/.claude.json
  7. Restart Claude Code → flag is overwritten back to false by GrowthBook sync
  8. Meanwhile, claude.ai/code/scheduled web UI works perfectly with the same account

Context: User previously briefly enabled API key auth (ANTHROPIC_API_KEY), then switched back to OAuth. The subscription desync may have started at that point (hasAvailableSubscription was null).

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.87 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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