[BUG] RemoteTrigger tool returns 401 in Desktop app while UI can create triggers successfully
Resolved 💬 3 comments Opened Apr 5, 2026 by Ruobing-Zhu Closed Apr 8, 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 always returns HTTP 401 "Authentication failed" when called from the Claude Code Desktop app (macOS). However, the Desktop app's built-in UI for creating scheduled triggers works perfectly fine.
The same RemoteTrigger tool works correctly in the CLI.
This suggests the Desktop app is not passing its OAuth token to the RemoteTrigger tool's API calls.
Steps to reproduce:
- Open Claude Code Desktop app (v2.1.92, macOS)
- Ask Claude to create a cloud scheduled trigger (which invokes the RemoteTrigger tool)
- RemoteTrigger returns: HTTP 401 {"type":"error","error":{"type":"authentication_error","message":"Authentication failed"}}
- Meanwhile, creating a trigger via the Desktop app's built-in UI (New remote task dialog) works fine
- Running the same RemoteTrigger tool from CLI also works fine
Additional context:
- Initially the CLI was also misconfigured (showing "API Usage Billing" instead of "Claude Max"), which was fixed by deleting Keychain credentials and re-authenticating
- After fix, CLI RemoteTrigger works, but Desktop app RemoteTrigger still 401
- Restarting the Desktop app and re-logging in did not resolve the issue
- macOS, Claude Code v2.1.92, Claude Max subscription
What Should Happen?
The RemoteTrigger tool should use the same OAuth credentials as the Desktop app's built-in UI, and successfully create/list/update cloud scheduled triggers without returning 401.
Error Messages/Logs
HTTP 401
{"type":"error","error":{"type":"authentication_error","message":"Authentication failed"},"request_id":"req_011CZkLNQEWbJA8vDdPEos5o"}
Steps to Reproduce
- Open Claude Code Desktop app (v2.1.92, macOS)
- Ensure you are logged in with a Claude Max subscription
- Ask Claude: "帮我创建一个云端 scheduled trigger"
- Claude invokes RemoteTrigger tool with action: "list" or "create"
- Tool returns HTTP 401 Authentication failed
- Meanwhile, click the "+" button in the Desktop app's Scheduled section to create a trigger via the built-in UI — this works fine
- Open CLI (terminal), run "claude", ask the same question — RemoteTrigger tool works fine in CLI
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.92
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 ↗