mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-03 18:34:03 +00:00
Fixes #85124. Anthropic standard API keys no longer resolve as provider usage auth for `openclaw status --usage`, so valid inference keys are not sent to Anthropic's OAuth usage endpoint and surfaced as misleading invalid bearer-token errors. The provider usage-auth SDK result now has an explicit handled/no-token shape so provider hooks can suppress generic fallback without widening the OAuth helper contract. Docs, Plugin SDK API baseline, and extension package-boundary cache inputs were updated with the new contract. Thanks @zhangguiping-xydt. Proof: - node scripts/run-vitest.mjs src/infra/provider-usage.auth.normalizes-keys.test.ts src/infra/provider-usage.auth.plugin.test.ts extensions/anthropic/index.test.ts - pnpm plugin-sdk:api:check - pnpm plugin-sdk:check-exports - git diff --check origin/main...HEAD - pnpm docs:list - pnpm run test:extensions:package-boundary:compile - autoreview clean: no accepted/actionable findings - PR CI rollup green: 131 success, 22 skipped, 1 neutral, 0 failures Co-authored-by: 张贵萍0668001030 <zhang.guiping@xydigit.com>