Skip to content

Add OAuth token support to Anthropic authentication#339

Merged
xenodium merged 1 commit intoxenodium:mainfrom
chemtov:oauth-anth-support
Feb 25, 2026
Merged

Add OAuth token support to Anthropic authentication#339
xenodium merged 1 commit intoxenodium:mainfrom
chemtov:oauth-anth-support

Conversation

@chemtov
Copy link
Contributor

@chemtov chemtov commented Feb 25, 2026

Adds :oauth as a third authentication option alongside :api-key and
:login in agent-shell-anthropic-make-authentication. The token is
passed to the Claude CLI via CLAUDE_CODE_OAUTH_TOKEN, which is the
env var it expects when authenticating via claude setup-token.

Close: #338

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Adds :oauth as a third authentication option alongside :api-key and
:login in agent-shell-anthropic-make-authentication. The token is
passed to the Claude CLI via CLAUDE_CODE_OAUTH_TOKEN, which is the
env var it expects when authenticating via `claude setup-token`.

Close: xenodium#338

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Owner

@xenodium xenodium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you for the PR!

@xenodium xenodium merged commit f2f7d5f into xenodium:main Feb 25, 2026
@xenodium
Copy link
Owner

Want to update the README.org file too?

@chemtov
Copy link
Contributor Author

chemtov commented Feb 26, 2026

Damn, the commit for the readme.org change arrived too late. I'll send another pr with the readme.org change.

@chemtov
Copy link
Contributor Author

chemtov commented Feb 26, 2026

Pushed the PR there #340

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.

Add native OAuth token support via CLAUDE_CODE_OAUTH_TOKEN

2 participants