[BUG] RemoteTrigger tool returns 401 despite valid OAuth on Max plan (tengu_ccr_bridge: false)
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 betruefor Max plan)hasAvailableSubscription: wasnull(should betrue)- The web UI at
claude.ai/code/scheduledworks perfectly — I can see and create scheduled tasks there - Only the CLI
RemoteTriggertool fails with 401 - The MCP
scheduled-taskstool 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
- Have an active Max plan subscription on claude.ai
- Authenticate Claude Code CLI via OAuth (
claude auth login) - Confirm auth:
claude auth statusshowsauthMethod: "oauth_token",apiProvider: "firstParty" - Use the
RemoteTriggertool withaction: "list"→ returns 401 - Check
~/.claude.json→cachedGrowthBookFeatures.tengu_ccr_bridgeisfalse - Manually set
tengu_ccr_bridgetotruein~/.claude.json - Restart Claude Code → flag is overwritten back to
falseby GrowthBook sync - Meanwhile,
claude.ai/code/scheduledweb 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_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗