[BUG] Getting Please run /login · API Error: 403 on skill load when using with LiteLLM
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?
Skill(logs-reader)
⎿ Successfully loaded skill
⎿ Please run /login · API Error: 403 <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
Setup: Latest Claude code 2.1.112 with LiteLLM + Bedrock for inference
When invoking a skill getting above error.
It works if we add /debug before invoking the skill.
Somehow looks like ANTHROPIC_BASE_URL is not getting propagated when skill execution is happening in non-debug mode.
What Should Happen?
The skill must run normally without error
Error Messages/Logs
Successfully loaded skill
⎿ Please run /login · API Error: 403 <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
Steps to Reproduce
Setup LiteLLM + Bedrock proxy and point claude code to it
Try loading and executing a skill.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.112
Platform
Other
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗