openclaw - 💡(How to fix) Fix Feature: openclaw-claude-proxy mode — CLI delegation & community proxy support [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#63316Fetched 2026-04-09 07:55:20
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
subscribed ×3commented ×2mentioned ×2

Research and implement support for routing Claude requests through the official Claude Code CLI binary (--method cli) and optionally via openclaw-claude-proxy, as an alternative to direct OAuth token usage (blocked since April 4 policy change).

Root Cause

Research and implement support for routing Claude requests through the official Claude Code CLI binary (--method cli) and optionally via openclaw-claude-proxy, as an alternative to direct OAuth token usage (blocked since April 4 policy change).

Fix Action

Fix / Workaround

Following Anthropic's April 4 restriction on direct Claude OAuth in OpenClaw, three workarounds exist:

Code Example

claude auth login
openclaw models auth login --provider anthropic --method cli --set-default
# Use claude-cli/claude-sonnet-4-6 model selectors
RAW_BUFFERClick to expand / collapse

Summary

Research and implement support for routing Claude requests through the official Claude Code CLI binary (--method cli) and optionally via openclaw-claude-proxy, as an alternative to direct OAuth token usage (blocked since April 4 policy change).

Background

Following Anthropic's April 4 restriction on direct Claude OAuth in OpenClaw, three workarounds exist:

1. Official CLI Delegation (--method cli) — Primary target

OpenClaw docs describe delegating to the installed claude binary rather than using OAuth tokens directly:

claude auth login
openclaw models auth login --provider anthropic --method cli --set-default
# Use claude-cli/claude-sonnet-4-6 model selectors

Low risk — routes through the official binary Anthropic explicitly supports.

2. Community Proxy (openclaw-claude-proxy) — Secondary target

Single-file, zero-dependency local proxy exposing an OpenAI-compatible endpoint using Claude Max subscription credentials (same OAuth flow as Claude Code).

3. Inverted MCP Bridge

Register OpenClaw as an MCP server inside Claude Code. Not a priority — loses OpenClaw UI.

Tasks

  • Research current state of --method cli delegation in OpenClaw (docs accuracy vs. runtime behavior)
  • Test claude auth login + openclaw models auth login --provider anthropic --method cli on gateway host
  • Verify claude-cli/* model selectors work end-to-end
  • Evaluate openclaw-claude-proxy community project (single-file review, security check)
  • Document working config + fallback path
  • Update openclaw.json provider config if applicable

Risk

MethodOAuth RiskStatus
--method cli delegationLow (official CLI)Likely works
openclaw-claude-proxyMedium (gray area)Reportedly works
Direct OAuthBlocked❌ April 4 policy

Notes

Anthropic has signaled continued tightening — monitor whether CLI delegation also gets blocked. Priority: --method cli first, community proxy as documented fallback.

extent analysis

TL;DR

Implement support for routing Claude requests through the official Claude Code CLI binary using --method cli as the primary solution.

Guidance

  • Research the current state of --method cli delegation in OpenClaw to ensure documentation accuracy aligns with runtime behavior.
  • Test the claude auth login and openclaw models auth login --provider anthropic --method cli commands on the gateway host to verify functionality.
  • Evaluate the openclaw-claude-proxy community project as a potential fallback, considering its security and single-file nature.
  • Document the working configuration and fallback path for future reference and maintenance.

Example

claude auth login
openclaw models auth login --provider anthropic --method cli --set-default

This example demonstrates the primary target solution using the official CLI delegation method.

Notes

The solution prioritizes the official CLI delegation method due to its low OAuth risk and official support. However, monitoring Anthropic's policy changes is crucial, as they may impact the CLI delegation method in the future.

Recommendation

Apply the workaround using the official CLI delegation method (--method cli) as it is the primary target and has a low OAuth risk, with the community proxy as a documented fallback. This approach allows for a more secure and supported solution while maintaining flexibility.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING