[Bug] Anthropic API Credential Restriction After Subscription
Status Closed — duplicate
Maintainer reply None cached
Activity 3 comments · opened Oct 9, 2025 · closed Oct 13, 2025
Bug Description
I've started using claude code with the API billing, without subscription. Now I've subscribed, and also added money to my api billing,but I keep getting the error 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_011CTxR5aNnYGRh8XjS5y6tG"}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.0.13
- Feedback ID:
Errors
[{"error":"Error\n at LC (/$bunfs/root/claude:27:1142)\n at <anonymous> (/$bunfs/root/claude:32:9845)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at execSync (node:child_process:275:109)\n at Z (/$bunfs/root/claude:1253:8833)\n at PgY (/$bunfs/root/claude:1253:9011)\n at request (/$bunfs/root/claude:34:2146)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at execSync (node:child_process:275:109)\n at Z (/$bunfs/root/claude:1253:8833)\n at PgY (/$bunfs/root/claude:1253:9011)\n at SgY (/$bunfs/root/claude:1253:9541)\n at SgY (/$bunfs/root/claude:1253:9664)\n at W (/$bunfs/root/claude:11:15050)","timestamp":"2025-10-09T22:29:36.316Z"},{"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_011CTxR4Xtgfb1oRGK7Hbkgx\"}\n at generate (/$bunfs/root/claude:382:21386)\n at makeRequest (/$bunfs/root/claude:527:5345)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-09T22:30:06.302Z"},{"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_011CTxR5aNnYGRh8XjS5y6tG\"}\n at generate (/$bunfs/root/claude:382:21386)\n at makeRequest (/$bunfs/root/claude:527:5345)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-09T22:30:20.499Z"},{"error":"Error\n at LC (/$bunfs/root/claude:27:1142)\n at <anonymous> (/$bunfs/root/claude:32:9845)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:34:2146)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-09T22:31:51.247Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗