[Bug] Anthropic API Error: Permission Denied (403) on Login

Status Closed — not planned
Reported on v2.1.116
Maintainer reply None cached
Activity 8 comments · opened Apr 21, 2026 · closed May 27, 2026

Bug Description
Please run /login · API Error: 403 {"type":"error","error":{"type":"permission_error","message":"Permission denied"},"request_id":"req_011CaH53rCYtDAVnwhLQvkuc"}

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.116
  • Feedback ID: db061787-bd29-417e-8297-bafc60eb8c92

Errors

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at Kfq (/$bunfs/root/src/entrypoints/cli.js:253:283309)\n    at async wUq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n    at async sI6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n    at async _7_ (/$bunfs/root/src/entrypoints/cli.js:2728:2136)\n    at async GMH (/$bunfs/root/src/entrypoints/cli.js:2753:5746)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2777:3409)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:13:51.058Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4QYfa4v3jXKVw9mj25\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54148)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:17:18.074Z"},{"error":"Error: {\"type\":\"error\",\"error\":{\"details\":null,\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4djvMbzpcP2Pxnm5pD\"}\n    at T (/$bunfs/root/src/entrypoints/cli.js:14:1328)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:20:18.563Z"},{"error":"Error: {\"type\":\"error\",\"error\":{\"details\":null,\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4dhtpCu262be6qCENC\"}\n    at T (/$bunfs/root/src/entrypoints/cli.js:14:1328)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:20:22.792Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4eqF7DbeSdeXukLnkv\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54148)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:20:31.660Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:676:946)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:766:16)\n    at #handleOnExit (node:child_process:520:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:20:47.627Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at T (/$bunfs/root/src/entrypoints/cli.js:679:242)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:679:456)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:676:1017)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:766:16)\n    at #handleOnExit (node:child_process:520:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:20:47.632Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4hNwAESwhBJMpTYFp3\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54148)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:21:07.154Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4rnP42adrK5Dfs2Fq2\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54148)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:23:14.126Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"Permission denied\"},\"request_id\":\"req_011CaH4uKyeEUDedq6DsDrnV\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54148)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T14:23:48.555Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\…

Note: Content was truncated.

View original on GitHub ↗

8 Comments

niefufeng · 5 months ago

I’ve already logged in, and I also tried reinstalling Claude Code. This error occurs very frequently—so often that I can’t even complete a single conversation.

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/49572
  2. https://github.com/anthropics/claude-code/issues/5167
  3. https://github.com/anthropics/claude-code/issues/38414

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

chanmaoganda · 5 months ago

ghostty fails with 403, but iterm works normally

niefufeng · 5 months ago
ghostty fails with 403, but iterm works normally

I tried it in iTerm2 as well, and got the same result.

niefufeng · 5 months ago

<img width="1724" height="290" alt="Image" src="https://github.com/user-attachments/assets/304d8702-be87-43f5-b10f-24dfea66ff81" />

github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

niefufeng · 4 months ago

问题并没有解决!

github-actions[bot] · 2 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.