Skip to content

feat: support Anthropic OAuth setup-tokens (sk-ant-oat)#51

Closed
Marenz wants to merge 1 commit intospacedriveapp:mainfrom
Marenz:feat/oauth-setup-tokens
Closed

feat: support Anthropic OAuth setup-tokens (sk-ant-oat)#51
Marenz wants to merge 1 commit intospacedriveapp:mainfrom
Marenz:feat/oauth-setup-tokens

Conversation

@Marenz
Copy link
Copy Markdown
Collaborator

@Marenz Marenz commented Feb 19, 2026

Adds support for Anthropic OAuth setup-tokens (sk-ant-oat...) as an alternative to regular API keys.

When the configured key starts with sk-ant-oat, the request switches from x-api-key header to Authorization: Bearer with the appropriate beta flags. This lets users authenticate with OAuth tokens from tools like Claude Code without needing a separate API key.

Detect OAuth tokens and switch to Authorization: Bearer header with
Claude Code beta headers instead of x-api-key, matching how the
Claude Code CLI authenticates against api.anthropic.com.
@egenvall
Copy link
Copy Markdown
Contributor

Overlaps with #32

@Marenz
Copy link
Copy Markdown
Collaborator Author

Marenz commented Feb 19, 2026

Closing in favor of #32 which covers this and much more (prompt caching, tool normalization, adaptive thinking, frontend UI).

@Marenz Marenz closed this Feb 19, 2026
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.

2 participants