Yupei ChenAuthor of the GitHub issue (GitHub profile names Wise Rock)Wise Rock
Claude Code signed in through Anthropic OAuth and SSO on a Team plan, pointed at Portkey's hosted API with a Portkey key header, set up as Portkey's Claude Code OAuth docs describe.
GitHub (Portkey-AI/gateway), published Read the issue (opens GitHub (Portkey-AI/gateway) in a new tab)
Observation
Claude Code at Wise Rock, signed in through Anthropic OAuth on a Team plan, failed authentication mid-session behind Portkey's hosted API until the Portkey base URL was removed.
- Takeaway
- If your coding-agent seats sign in with a subscription, run a full working session through the gateway before rollout, and keep a way to bypass it.
- What happened
- On April 10, 2026 the author reported that mid-session Claude Code starts returning auth errors requiring a new login, while /login and claude auth status show the session still signed in and every API request is rejected. Restarting the session did not help, and only unsetting ANTHROPIC_BASE_URL resolved it. After reading the gateway source, the author concluded that OAuth tokens are never forwarded correctly. The issue was open when GILD stored it on November 1, 2026.
- Public practitioner write-up (GitHub issue)
- No metrics reported
Deployment details
Claude Code signed in through Anthropic OAuth and SSO on a Team plan, pointed at Portkey's hosted API with a Portkey key header, set up as Portkey's Claude Code OAuth docs describe.
- Public practitioner write-up (GitHub issue)
- No metrics reported
- Team
- Wise Rock
- Workload
- Claude Code on Anthropic OAuth (Team plan) through Portkey
- Product version
- Portkey hosted API (api.portkey.ai)







