Skip to content

feat: detect CLAUDE_CODE_OAUTH_TOKEN as Anthropic API key fallback#274

Closed
bussyjd wants to merge 1 commit intofeat/model-setup-credential-detectionfrom
feat/obolup-multi-credential-detection
Closed

feat: detect CLAUDE_CODE_OAUTH_TOKEN as Anthropic API key fallback#274
bussyjd wants to merge 1 commit intofeat/model-setup-credential-detectionfrom
feat/obolup-multi-credential-detection

Conversation

@bussyjd
Copy link
Collaborator

@bussyjd bussyjd commented Mar 17, 2026

Summary

  • obolup.sh check_agent_model_api_key() now checks CLAUDE_CODE_OAUTH_TOKEN as a fallback when ANTHROPIC_API_KEY is missing, so developers with Claude Code subscriptions skip the interactive API key prompt
  • Documents the LLM auto-configuration flow (autoConfigureLLM + check_agent_model_api_key) in CLAUDE.md
  • Documents OpenClaw version management (3-file pinning pattern) in CLAUDE.md

Closes #272 (Unit 3)

Test plan

  • go test ./internal/openclaw/ passes
  • CLAUDE_CODE_OAUTH_TOKEN=test-token test prints Claude Code subscription detected
  • ANTHROPIC_API_KEY=sk-test test prints ANTHROPIC_API_KEY detected
  • No-token non-interactive test prints warning with both env var names

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)
@bussyjd bussyjd changed the base branch from integration/pr267-reviewed to feat/model-setup-credential-detection March 17, 2026 10:46
@bussyjd bussyjd requested a review from OisinKyne March 17, 2026 10:47
@bussyjd
Copy link
Collaborator Author

bussyjd commented Mar 19, 2026

Superseded by #283 (combined with #273)

@bussyjd bussyjd closed this Mar 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.

1 participant