我构建了一个本地代理,使Claude Code/OpenClaw可以使用您的Pro/Max订阅——无需API密钥

📄 中文摘要

使用Claude Opus 4.6和Sonnet 4.6进行编码任务时,发现Claude不支持OAuth,导致需要API密钥才能通过第三方工具使用Claude模型,而在重负载的任务中,Opus 4.6会迅速消耗API积分。与此同时,Claude Pro/Max订阅却未被充分利用。为了解决这个问题,开发了一个轻量级的本地代理claude-proxy,它可以拦截OpenClaw的API调用,并将其路由到Claude CLI,从而在现有订阅下实现无限使用。

📄 English Summary

I built a local proxy so Claude Code/OpenClaw can use your Pro/Max subscription — no API key needed

While using Claude Opus 4.6 and Sonnet 4.6 for coding tasks, it was found that Claude does not support OAuth, requiring an API key to use Claude models through third-party tools. This is problematic as running Opus 4.6 on heavy tasks quickly depletes API credits. Meanwhile, the Claude Pro/Max subscription remains underutilized. To address this issue, a lightweight local proxy called claude-proxy has been developed. It intercepts OpenClaw's API calls and routes them to the Claude CLI, allowing for unlimited usage under the existing subscription.

Powered by Cloudflare Workers + Payload CMS + Claude 3.5

数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等