feat: detect CLAUDE_CODE_OAUTH_TOKEN as Anthropic API key fallback#274
Closed
bussyjd wants to merge 1 commit intofeat/model-setup-credential-detectionfrom
Closed
feat: detect CLAUDE_CODE_OAUTH_TOKEN as Anthropic API key fallback#274bussyjd wants to merge 1 commit intofeat/model-setup-credential-detectionfrom
bussyjd wants to merge 1 commit intofeat/model-setup-credential-detectionfrom
Conversation
obolup.sh check_agent_model_api_key() now checks CLAUDE_CODE_OAUTH_TOKEN when ANTHROPIC_API_KEY is missing, so developers with Claude Code subscriptions skip the interactive prompt. Also documents the LLM auto-configuration flow and OpenClaw version management in CLAUDE.md. Closes #272 (Unit 3)
This was referenced Mar 19, 2026
Merged
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
obolup.shcheck_agent_model_api_key()now checksCLAUDE_CODE_OAUTH_TOKENas a fallback whenANTHROPIC_API_KEYis missing, so developers with Claude Code subscriptions skip the interactive API key promptautoConfigureLLM+check_agent_model_api_key) in CLAUDE.mdCloses #272 (Unit 3)
Test plan
go test ./internal/openclaw/passesCLAUDE_CODE_OAUTH_TOKEN=test-tokentest printsClaude Code subscription detectedANTHROPIC_API_KEY=sk-testtest printsANTHROPIC_API_KEY detected