shannon icon indicating copy to clipboard operation
shannon copied to clipboard

Claude Code OAuth token usage after recent policy changes

Open vinnytwice opened this issue 10 months ago • 1 comments

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:

  1. Is using CLAUDE_CODE_OAUTH_TOKEN with Shannon still a supported/compliant authentication method?
  2. If not, are there any plans to adapt Shannon to work as a Claude Code extension (e.g., MCP server with full pentesting capabilities) rather than a standalone agent?
  3. Any other recommended approach for users who would prefer not to use pay-per-token API access?

Many thanks

vinnytwice avatar Jan 14 '26 06:01 vinnytwice

Hi, Thanks for raising this.

  1. Is CLAUDE_CODE_OAUTH_TOKEN still a supported/compliant authentication method? 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.
  2. Any plans to adapt Shannon as a Claude Code extension / MCP server? No plans at the moment, but I've added it to our backlog. Thanks for the suggestion.
  3. Alternatives? Unfortunately not, outside of startup credits that Anthropic offers :)

keygraphVarun avatar Jan 18 '26 07:01 keygraphVarun