[Bug] Anthropic API Error 400: Claude Code credential used with unauthorized model
Resolved 💬 3 comments Opened Nov 8, 2025 by ARuzgar Closed Jan 12, 2026
Bug Description
when im using opus it gives API Error 400 even though i use claude code via vscode
My request : fix those critical issues please
Answer :
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This credential is only authorized for use with Claude Code and cannot be used for other API requests."},"request_id":"req_011CUuhDvGAK56Ngr9dfH74V"}
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.0.36
- Feedback ID:
Errors
[{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:14:17.487Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CUuchohU4RVPsHmM36f6P\"}\n at generate (/$bunfs/root/claude:382:26195)\n at makeRequest (/$bunfs/root/claude:661:5356)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:15:27.490Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CUucrfKw2b9Hq777BXH3X\"}\n at generate (/$bunfs/root/claude:382:26195)\n at makeRequest (/$bunfs/root/claude:661:5356)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:17:27.629Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:17:43.083Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:17:44.678Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:17:54.877Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:21:10.697Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:21:56.128Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:22:30.913Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:24:04.059Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-08T02:24:20.034Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at oJ (/$bunfs/root/claude:1003:4395)\n at <anonymous> (/$bunfs/root/claude:1003:4117)\n at map (native:1:11)\n at CI (/$bunfs/root/claude:1003:4109)\n at fQB (/$bunfs/root/claude:1687:6605)\n at B7 (/$bunfs/root/claude:101:19663)\n at T2 (/$bunfs/root/claude:103:42806)\n at rF (/$bunfs/root/claude:103:38344)\n at c1 (/$bunfs/root/claude:103:38272)\n at ZJ (/$bunfs/root/claude:103:38126)","timestamp":"2025-11-08T02:24:53.571Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at O (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTick
Note: Error logs were truncated.
<img width="1700" height="319" alt="Image" src="https://github.com/user-attachments/assets/b2d1c9b0-ef30-4cbd-a86f-fd514cd80784" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗