Skip to content

feat: support Anthropic OAuth session tokens (Claude Code) #1308#1315

Open
jhawpetoss6-collab wants to merge 1 commit intoagent0ai:mainfrom
jhawpetoss6-collab:strike/claude-oauth-auth
Open

feat: support Anthropic OAuth session tokens (Claude Code) #1308#1315
jhawpetoss6-collab wants to merge 1 commit intoagent0ai:mainfrom
jhawpetoss6-collab:strike/claude-oauth-auth

Conversation

@jhawpetoss6-collab
Copy link
Copy Markdown

This PR adds support for Anthropic OAuth session tokens (used by Claude Code and browser extensions) to Agent Zero.

Changes:

  • Added anthropic_oauth provider to model_providers.yaml.
  • Updated models.py to handle session tokens by injecting the Authorization: Bearer <token> header.
  • Updated get_api_key to check for ANTHROPIC_SESSION_TOKEN environment variable.

This allows users to leverage their existing Claude Pro/Max subscriptions directly within Agent Zero without needing separate API keys.

/claim #1308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant