Skip to content

fix: make OpenClaw config check informational instead of a failure#27

Open
VibeSparkingAI wants to merge 1 commit intozacdcook:masterfrom
VibeSparkingAI:fix/optional-openclaw-config-check
Open

fix: make OpenClaw config check informational instead of a failure#27
VibeSparkingAI wants to merge 1 commit intozacdcook:masterfrom
VibeSparkingAI:fix/optional-openclaw-config-check

Conversation

@VibeSparkingAI
Copy link
Copy Markdown

@VibeSparkingAI VibeSparkingAI commented Apr 9, 2026

Summary

  • Changes troubleshoot.js step 9 (OpenClaw configuration check) from [FAIL] to [INFO]
  • Anthropic is not always the primary/default provider — some users intentionally use the official API directly and create a new provider and model with openclaw-billing-proxy
  • The step now provides guidance on how to route through the proxy without penalizing valid configurations

Test plan

  • Run node troubleshoot.js without proxy baseUrl configured — should show [INFO] instead of [FAIL]
  • Run with proxy baseUrl configured — should still show [PASS]
  • Verify pass/fail summary count is unaffected by this step

Logs

Before

9. Checking OpenClaw configuration...

  [FAIL] No baseUrl found in OpenClaw config -- OpenClaw is using the default Anthropic API directly
  [INFO] Add this to /Users/blogbin/.openclaw/openclaw.json:
  [INFO]   "models": { "providers": { "anthropic": { "baseUrl": "http://127.0.0.1:18801" } } }
  [INFO] Then restart the OpenClaw gateway.

---------------------------------
  Results: 9 passed, 1 failed
---------------------------------

  Fix the FAIL items above and run this script again.

After

9. Checking OpenClaw configuration (optional)...

  [INFO] No baseUrl found in OpenClaw config -- using the default Anthropic API directly
  [INFO] To route through proxy, add to /Users/blogbin/.openclaw/openclaw.json:
  [INFO]   "models": { "providers": { "anthropic": { "baseUrl": "http://127.0.0.1:18801" } } }

---------------------------------
  Results: 9 passed, 0 failed
---------------------------------

  Everything looks good! If OpenClaw requests still fail,
  check the proxy console for 400 errors and add sanitization
  patterns to config.json for any trigger terms in your content.

Anthropic is not always the primary provider, and some users
intentionally use the official API directly. Step 9 should not
report FAIL for a valid configuration choice.
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