{"id":213,"date":"2026-03-21T22:47:22","date_gmt":"2026-03-21T14:47:22","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-claude-max-api-proxy\/"},"modified":"2026-03-21T23:08:53","modified_gmt":"2026-03-21T15:08:53","slug":"providers-claude-max-api-proxy","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-claude-max-api-proxy\/","title":{"rendered":"Claude Max API \u4ee3\u7406"},"content":{"rendered":"<h1>Claude Max API \u4ee3\u7406<\/h1>\n<p><strong>claude-max-api-proxy<\/strong> \u662f\u4e00\u4e2a\u793e\u533a\u5de5\u5177\uff0c\u5c06\u4f60\u7684 Claude Max\/Pro \u8ba2\u9605\u66b4\u9732\u4e3a OpenAI \u517c\u5bb9\u7684 API \u7aef\u70b9\u3002\u8fd9\u4f7f\u4f60\u53ef\u4ee5\u5c06\u8ba2\u9605\u4e0e\u4efb\u4f55\u652f\u6301 OpenAI API \u683c\u5f0f\u7684\u5de5\u5177\u914d\u5408\u4f7f\u7528\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u4f7f\u7528\u5b83\uff1f<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u5f0f<\/th>\n<th>\u8d39\u7528<\/th>\n<th>\u9002\u7528\u573a\u666f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Anthropic API<\/td>\n<td>\u6309 token \u8ba1\u8d39\uff08Opus \u7ea6 $15\/M \u8f93\u5165\uff0c$75\/M \u8f93\u51fa\uff09<\/td>\n<td>\u751f\u4ea7\u5e94\u7528\u3001\u9ad8\u6d41\u91cf\u573a\u666f<\/td>\n<\/tr>\n<tr>\n<td>Claude Max \u8ba2\u9605<\/td>\n<td>\u6bcf\u6708\u56fa\u5b9a $200<\/td>\n<td>\u4e2a\u4eba\u4f7f\u7528\u3001\u5f00\u53d1\u3001\u65e0\u9650\u7528\u91cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u4f60\u6709 Claude Max \u8ba2\u9605\u5e76\u5e0c\u671b\u4e0e OpenAI \u517c\u5bb9\u5de5\u5177\u914d\u5408\u4f7f\u7528\uff0c\u8fd9\u4e2a\u4ee3\u7406\u53ef\u4ee5\u5e2e\u4f60\u8282\u7701\u5927\u91cf\u8d39\u7528\u3002<\/p>\n<h2>\u5de5\u4f5c\u539f\u7406<\/h2>\n<pre><code>\u4f60\u7684\u5e94\u7528 \u2192 claude-max-api-proxy \u2192 Claude Code CLI \u2192 Anthropic\uff08\u901a\u8fc7\u8ba2\u9605\uff09\n     \uff08OpenAI \u683c\u5f0f\uff09              \uff08\u8f6c\u6362\u683c\u5f0f\uff09           \uff08\u4f7f\u7528\u4f60\u7684\u767b\u5f55\u51ed\u636e\uff09\n<\/code><\/pre>\n<p>\u8be5\u4ee3\u7406\uff1a<\/p>\n<ol>\n<li>\u5728 <code>http:\/\/localhost:3456\/v1\/chat\/completions<\/code> \u63a5\u53d7 OpenAI \u683c\u5f0f\u7684\u8bf7\u6c42<\/li>\n<li>\u5c06\u5176\u8f6c\u6362\u4e3a Claude Code CLI \u547d\u4ee4<\/li>\n<li>\u4ee5 OpenAI \u683c\u5f0f\u8fd4\u56de\u54cd\u5e94\uff08\u652f\u6301\u6d41\u5f0f\u4f20\u8f93\uff09<\/li>\n<\/ol>\n<h2>\u5b89\u88c5<\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<\/p>\n<h1>\u9700\u8981 Node.js 20+ \u548c Claude Code CLI<\/h1>\n<p>npm install -g claude-max-api-proxy<\/p>\n<h1>\u9a8c\u8bc1 Claude CLI \u5df2\u8ba4\u8bc1<\/h1>\n<p>claude &#8211;version<\/p>\n<pre><code>\n## \u4f7f\u7528\u65b9\u6cd5\n\n### \u542f\u52a8\u670d\u52a1\u5668\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nclaude-max-api\n# \u670d\u52a1\u5668\u8fd0\u884c\u5728 http:\/\/localhost:3456\n<\/code><\/pre>\n<h3>\u6d4b\u8bd5<\/h3>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<\/p>\n<h1>\u5065\u5eb7\u68c0\u67e5<\/h1>\n<p>curl http:\/\/localhost:3456\/health<\/p>\n<h1>\u5217\u51fa\u6a21\u578b<\/h1>\n<p>curl http:\/\/localhost:3456\/v1\/models<\/p>\n<h1>\u804a\u5929\u8865\u5168<\/h1>\n<p>curl http:\/\/localhost:3456\/v1\/chat\/completions<br \/>\n  -H &#8220;Content-Type: application\/json&#8221;<br \/>\n  -d &#8216;{<br \/>\n    &#8220;model&#8221;: &#8220;claude-opus-4&#8221;,<br \/>\n    &#8220;messages&#8221;: [{&#8220;role&#8221;: &#8220;user&#8221;, &#8220;content&#8221;: &#8220;Hello!&#8221;}]<br \/>\n  }&#8217;<\/p>\n<pre><code>\n### \u4e0e OpenClaw \u914d\u5408\u4f7f\u7528\n\n\u4f60\u53ef\u4ee5\u5c06 OpenClaw \u6307\u5411\u8be5\u4ee3\u7406\u4f5c\u4e3a\u81ea\u5b9a\u4e49 OpenAI \u517c\u5bb9\u7aef\u70b9\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  env: {\n    OPENAI_API_KEY: &quot;not-needed&quot;,\n    OPENAI_BASE_URL: &quot;http:\/\/localhost:3456\/v1&quot;,\n  },\n  agents: {\n    defaults: {\n      model: { primary: &quot;openai\/claude-opus-4&quot; },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u53ef\u7528\u6a21\u578b<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u6a21\u578b ID<\/th>\n<th>\u5bf9\u5e94\u6a21\u578b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>claude-opus-4<\/code><\/td>\n<td>Claude Opus 4<\/td>\n<\/tr>\n<tr>\n<td><code>claude-sonnet-4<\/code><\/td>\n<td>Claude Sonnet 4<\/td>\n<\/tr>\n<tr>\n<td><code>claude-haiku-4<\/code><\/td>\n<td>Claude Haiku 4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>macOS \u81ea\u52a8\u542f\u52a8<\/h2>\n<p>\u521b\u5efa LaunchAgent \u4ee5\u81ea\u52a8\u8fd0\u884c\u4ee3\u7406\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\ncat &gt; ~\/Library\/LaunchAgents\/com.claude-max-api.plist &lt;&lt; &#8216;EOF&#8217;<\/p>\n<p>  Label<br \/>\n  com.claude-max-api<br \/>\n  RunAtLoad<\/p>\n<p>  KeepAlive<\/p>\n<p>  ProgramArguments<\/p>\n<p>    \/usr\/local\/bin\/node<br \/>\n    \/usr\/local\/lib\/node_modules\/claude-max-api-proxy\/dist\/server\/standalone.js<\/p>\n<p>  EnvironmentVariables<\/p>\n<p>    PATH<br \/>\n    \/usr\/local\/bin:\/opt\/homebrew\/bin:~\/.local\/bin:\/usr\/bin:\/bin<\/p>\n<p>EOF<\/p>\n<p>launchctl bootstrap gui\/$(id -u) ~\/Library\/LaunchAgents\/com.claude-max-api.plist<br \/>\n&#8220;`<\/p>\n<h2>\u94fe\u63a5<\/h2>\n<ul>\n<li><strong>npm:<\/strong> <a href=\"https:\/\/www.npmjs.com\/package\/claude-max-api-proxy\">https:\/\/www.npmjs.com\/package\/claude-max-api-proxy<\/a><\/li>\n<li><strong>GitHub:<\/strong> <a href=\"https:\/\/github.com\/atalovesyou\/claude-max-api-proxy\">https:\/\/github.com\/atalovesyou\/claude-max-api-proxy<\/a><\/li>\n<li><strong>Issues:<\/strong> <a href=\"https:\/\/github.com\/atalovesyou\/claude-max-api-proxy\/issues\">https:\/\/github.com\/atalovesyou\/claude-max-api-proxy\/issues<\/a><\/li>\n<\/ul>\n<h2>\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li>\u8fd9\u662f\u4e00\u4e2a<strong>\u793e\u533a\u5de5\u5177<\/strong>\uff0c\u5e76\u975e\u7531 Anthropic \u6216 OpenClaw \u5b98\u65b9\u652f\u6301<\/li>\n<li>\u9700\u8981\u6709\u6548\u7684 Claude Max\/Pro \u8ba2\u9605\u5e76\u5df2\u8ba4\u8bc1 Claude Code CLI<\/li>\n<li>\u4ee3\u7406\u5728\u672c\u5730\u8fd0\u884c\uff0c\u4e0d\u4f1a\u5c06\u6570\u636e\u53d1\u9001\u5230\u4efb\u4f55\u7b2c\u4e09\u65b9\u670d\u52a1\u5668<\/li>\n<li>\u5b8c\u5168\u652f\u6301\u6d41\u5f0f\u54cd\u5e94<\/li>\n<\/ul>\n<h2>\u53e6\u8bf7\u53c2\u9605<\/h2>\n<ul>\n<li><a href=\"\/providers\/anthropic\">Anthropic \u63d0\u4f9b\u5546<\/a> &#8211; OpenClaw \u4e0e Claude \u7684\u539f\u751f\u96c6\u6210\uff0c\u4f7f\u7528 setup-token \u6216 API \u5bc6\u94a5<\/li>\n<li><a href=\"\/providers\/openai\">OpenAI \u63d0\u4f9b\u5546<\/a> &#8211; \u9002\u7528\u4e8e OpenAI\/Codex \u8ba2\u9605<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Claude Max API \u4ee3\u7406 claude-max-api-proxy \u662f\u4e00\u4e2a\u793e\u533a\u5de5\u5177\uff0c\u5c06\u4f60\u7684 Clau [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions\/508"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}