Setup: OpenClaw 2026.4.5 on Ubuntu/WSL2, running 10 agents. Claude CLI is logged in with a Max 20x subscription (wassim@horizonbrandsgroup.com). claude auth status shows loggedIn: true, authMethod: claude.ai, subscriptionType: max.
What I did:
- Read the OAuth token from
~/.claude/.credentials.json(sk-ant-oat01-* access token + refresh token) - Created an
anthropic:cli-oauthauth profile withtype: "oauth"in each agent'sauth-profiles.json - Set auth order to prefer cli-oauth first via
openclaw models auth order set openclaw models status --probeshowed the profile asokand even displayed subscription quota:5h 100% left · Week 100% left
What happened at runtime:
When the gateway actually tried to use the OAuth token for an API request, Anthropic returned a 400 error:
"Third-party apps now draw from your extra usage, not your plan limits. We've added a $200 credit to get you started. Claim it at claude.ai/settings/usage and keep going."
The gateway then failed over to the API key profile (which worked fine).
Question: Is there any way to use a Claude Max subscription with OpenClaw after the April 4 policy change? The docs say "Claude CLI reuse is sanctioned" but Anthropic's API is explicitly rejecting the OAuth token from third-party apps. Has anyone found a workaround, or is API key + prompt caching the only viable path now?
OpenClaw version: 2026.4.5 (3e72c03)