Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

docs(secrets): Claude Max Plan OAuth authentication#3

Open
2bkolohe wants to merge 1 commit into
paperclipai:mainfrom
2bkolohe:docs/claude-max-plan-oauth-auth
Open

docs(secrets): Claude Max Plan OAuth authentication#3
2bkolohe wants to merge 1 commit into
paperclipai:mainfrom
2bkolohe:docs/claude-max-plan-oauth-auth

Conversation

@2bkolohe
Copy link
Copy Markdown

@2bkolohe 2bkolohe commented Apr 1, 2026

Summary

  • Documents how to use CLAUDE_CODE_OAUTH_TOKEN with the claude_local adapter for Claude Max Plan subscribers
  • Covers the precedence rule: ANTHROPIC_API_KEY overrides CLAUDE_CODE_OAUTH_TOKEN when both are present
  • Adds instructions for rotating sealed secrets via API (the dashboard UI cannot overwrite sealed secrets in place)

Context

Discovered while migrating agents from pay-per-token API keys to a Max Plan subscription. The CLAUDE_CODE_OAUTH_TOKEN environment variable is not currently documented in the secrets or adapter pages, and the sealed secret rotation pattern required API calls that were not obvious from the UI.

Changes

  • api/secrets.md: Added Claude Max Plan Authentication section with token setup, agent config example, precedence warning, and sealed secret rotation guide

Document how to use CLAUDE_CODE_OAUTH_TOKEN with the claude_local adapter
for Max Plan subscribers. Covers secret creation, agent config, token
rotation via API (sealed secrets cannot be updated in the UI), and the
precedence rule when both ANTHROPIC_API_KEY and CLAUDE_CODE_OAUTH_TOKEN
are present.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant