Migrate from OpenClaw to ANTHROPIC_BASE_URL Proxy for Claude Code
OpenClaw, a proxy service used by Claude Code developers, has been blocked by Anthropic. This article provides a 60-second migration guide to switch to using the official ANTHROPIC_BASE_URL environment variable to route requests through a compliant proxy.
Why it matters
This migration is important for Claude Code users to maintain uninterrupted access to the Anthropic API after the blocking of OpenClaw.
Key Points
- 1OpenClaw was a local proxy that allowed pooling requests, removing rate limits, and adding custom middleware for Claude Code
- 2Anthropic has blocked OpenClaw, so developers need to migrate to a new proxy solution
- 3The 60-second migration involves stopping OpenClaw and setting the ANTHROPIC_BASE_URL environment variable to point to a compliant proxy
- 4The ANTHROPIC_BASE_URL approach is the official and supported way to use a proxy with Claude Code
Details
OpenClaw was a local proxy service that sat between Claude Code and the Anthropic API, providing features like request pooling, rate limit removal, and custom middleware. However, Anthropic has now blocked OpenClaw, likely due to security concerns (a CVE was reported for OpenClaw). The article provides a simple 60-second migration guide to switch to using the official ANTHROPIC_BASE_URL environment variable to route Claude Code requests through a compliant proxy service instead. This approach is more secure as it doesn't require running a local privileged server, and it's officially supported by Anthropic. The proxy service can still provide the same benefits as OpenClaw, like uninterrupted sessions by pooling requests to avoid rate limits. Overall, this migration ensures developers can continue using Claude Code without relying on a blocked third-party service.
No comments yet
Be the first to comment