mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 09:35:55 +03:00
[GH-ISSUE #48] Claude Code OAuth token usage after recent policy changes #13
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vinnytwice on GitHub (Jan 14, 2026).
Original GitHub issue: https://github.com/KeygraphHQ/shannon/issues/48
Hi,
First of all, thanks for this great tool! I was planning to use Shannon to test my applications before deployment.
I noticed that Shannon supports both Anthropic API key and Claude Code OAuth token authentication. I was initially excited about the OAuth option since I have a Claude Pro subscription with unused Sonnet capacity.
However, I recently became aware of Anthropic's enforcement regarding OAuth token usage being restricted to Claude Code itself. This raises some concerns about whether using the OAuth token with Shannon is still compliant with Anthropic's terms of service.
Could you please clarify:
CLAUDE_CODE_OAUTH_TOKENwith Shannon still a supported/compliant authentication method?Many thanks
@keygraphVarun commented on GitHub (Jan 18, 2026):
Hi,
Thanks for raising this.
Our primary recommended method is the Anthropic API key (ANTHROPIC_API_KEY). We'll make this more explicit in the README. Our hosted version strictly supports the Anthropic API key only, and that's been the case even before this change.
We do still accept CLAUDE_CODE_OAUTH_TOKEN since the Claude Agent SDK (which Shannon is built on) accepts it via environment variable, and it still seems to be working. Based on our understanding, using OAuth tokens for your own Agent SDK apps running in your own environment (local, CI, internal tooling) is permitted. The restriction applies to third-party apps that distribute or proxy Claude.ai login to other users. Since Shannon is self-hosted and run by individuals for their own private testing, this use case should be fine. That said, we'll remove the option if/when Anthropic blocks or deprecates it.
Of course, we're not in a position to provide guidance on ToS compliance. We'd encourage you to review Anthropic's terms directly and make your own judgment based on your specific use case.
No plans at the moment, but I've added it to our backlog. Thanks for the suggestion.
Unfortunately not, outside of startup credits that Anthropic offers :)