{"id":330,"date":"2025-12-28T20:52:41","date_gmt":"2025-12-28T12:52:41","guid":{"rendered":"https:\/\/blog.jj.mr\/?p=330"},"modified":"2025-12-28T20:52:41","modified_gmt":"2025-12-28T12:52:41","slug":"%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91cursor-pro-%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e5%9e%8b-anthropic-%e4%bb%a3%e7%90%86%ef%bc%8c-agent-%e5%8f%af%e7%94%a8-opus4-5%ef%bc%8c-sonnet4-5%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/blog.jj.mr\/index.php\/2025\/12\/28\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91cursor-pro-%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e5%9e%8b-anthropic-%e4%bb%a3%e7%90%86%ef%bc%8c-agent-%e5%8f%af%e7%94%a8-opus4-5%ef%bc%8c-sonnet4-5%ef%bc%8c\/","title":{"rendered":"\u3010\u8f6c\u8f7d\u3011Cursor Pro \u81ea\u5b9a\u4e49\u6a21\u578b Anthropic \u4ee3\u7406\uff0c Agent \u53ef\u7528 Opus4.5\uff0c Sonnet4.5\uff0c \u5e26\u7f13\u5b58"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\" style=\"\n  margin:0 0 10px 0;\n  padding:7px 10px;\n  background:#f6f7f9;\n  border-left:3px solid #94a3b8;\n  border-radius:6px;\n  font-size:13.5px;\n  color:#475569;\n  line-height:1.7;\n\">\n  \u672c\u6587\u4e3a\u8f6c\u8f7d\u5185\u5bb9\uff0c\u4fdd\u7559\u539f\u5e16\u89c2\u70b9\u4e0e\u7ed3\u6784\uff1b\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u6211\u5904\u7406\u3002\n<\/p>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\"><p style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u9996\u5148\u9700\u8981\u652f\u6301\u4efb\u610f\u5730\u65b9\u4f7f\u7528\u7684Anthropic API\uff0c \u76ee\u524d\u63a8\u8350\u7ad9\u5185OpenClaudeCode\uff0c \u7a33\u5b9a\u91cf\u5927<\/p><p style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u73b0\u5728\u8fd8\u6709\u514d\u8d39\u4f7f\u7528\uff1a<\/p><a href=\"https:\/\/linux.do\/t\/topic\/1299515\" data-clicks=\"99\" aria-label=\"\u3010OpenClaudeCode\u3011\u53cc\u5341\u4e8c\u514d\u8d39\u65e5\uff01\uff01\uff01 - \u798f\u5229\u7f8a\u6bdb - LINUX DO \u94fe\u63a5\u5df2\u70b9\u51fb 99 \u6b21\">\u3010OpenClaudeCode\u3011\u53cc\u5341\u4e8c\u514d\u8d39\u65e5\uff01\uff01\uff01 &#8211; \u798f\u5229\u7f8a\u6bdb &#8211; LINUX DO<\/a>\n\n\u4e0b\u9762\u662f\u6b63\u6587\uff1a<\/p>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u9700\u8981\u7684\u6750\u6599\uff1a<\/p>\n<ol dir=\"auto\" style=\"margin: 0px 0px 14px 20px; line-height: 1.8; font-size: 16px;\">\n<li style=\"margin: 4px 0px;\">Anthropic\u683c\u5f0fAPI key\uff0c\u63a8\u8350\u7ad9\u5185 OpenClaudeCode<\/li>\n<li style=\"margin: 4px 0px;\">\u80fd\u8fd0\u884cDocker\u7684\u5bb9\u5668\u5e73\u53f0\uff0c\u63a8\u8350\u7ad9\u5185 Leaflow<\/li>\n<\/ol>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u4ee3\u7801\u4ed3\u5e93\uff1a\n\n<a href=\"https:\/\/github.com\/NickJerome\/openai-claude-proxy\" rel=\"noopener nofollow ugc\" data-clicks=\"45\" aria-label=\"NickJerome\/openai-claude-proxy \u94fe\u63a5\u5df2\u70b9\u51fb 45 \u6b21\">NickJerome\/openai-claude-proxy<\/a>\n\n\u53ef\u4ee5\u76f4\u63a5\u5c31\u7528 Package \u91cc\u7684docker\u955c\u50cf\u76f4\u63a5\u90e8\u7f72<\/p>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\"><p style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u5173\u952e\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/p><p style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">ANTHROPIC_BASE_URL\uff1a<\/p><a href=\"https:\/\/www.openclaudecode.cn\" rel=\"noopener nofollow ugc\" data-clicks=\"4\" aria-label=\"https:\/\/www.openclaudecode.cn \u94fe\u63a5\u5df2\u70b9\u51fb 4 \u6b21\">https:\/\/www.openclaudecode.cn<\/a>\n\nMODEL_MAPPING\uff1aGLM-4.6:claude-opus-4-5-20251101,MiniMax-M2:claude-sonnet-4-5-20250929<\/p>\n<blockquote dir=\"auto\">\n<p style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u5b9e\u8d28\u662f\u5c06 OpenAI \u683c\u5f0f\u8f6c\u4e3a Anthropic \u683c\u5f0f\uff0c \u5e76\u5728\u6d88\u606f\u7ed3\u675f\u5904\u6253\u4e0a cache_control\uff0c\u5c06tools \u653e\u5230\u6b63\u786e\u7684\u4f4d\u7f6e<\/p>\n<\/blockquote>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">NewAPI \u4e5f\u80fd\u5c06 OpenAI \u8f6c\u4e3a Anthropic \u683c\u5f0f\uff0c \u4f46\u662f\u9047\u5230 \u201ccontent\u201c: \u201ctext..\u201c \u8fd9\u6837\u7684\u5c31\u65e0\u6cd5\u5904\u7406\u4e86<\/p>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u90e8\u7f72\u540e\u5728Cursor\u4e2d\u81ea\u5b9a\u4e49\u6a21\u578b\u6dfb\u52a0 GLM-4.6\uff0cMiniMax-M2\uff0c\u4e00\u4e2a\u662f  Opus4.5\uff0c \u4e00\u4e2a\u662fSonnet4.5 \uff0c\u4e3a\u4ec0\u4e48\u662f\u8fd9\u4e48\u8bbe\u7f6e\uff0c\u56e0\u4e3a\u53eb\u522b\u7684 Cursor \u4e0d\u4f1a\u4f20\u9012tools\u76f8\u5173\u4fe1\u606f\uff0c \u5bfc\u81f4\u53ea\u80fdChat\uff0c \u975e\u5e38\u9006\u5929<\/p>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u7136\u540e enable apiKey\uff0c openai\u5730\u5740\u586b\u4f60\u90e8\u7f72\u7684\u90a3\u4e2a\u5730\u5740\uff0c\u540e\u9762\u5e26\/v1\uff0capiKey\u5c31\u662f OpenClaudeCode\u7684key\uff0c \u5177\u4f53\u7528\u91cf\u53ef\u4ee5\u5728\u6e90\u7ad9\u81ea\u5df1\u770b\uff0c\u8fd9\u4e2a\u53ea\u662f\u4e2a\u8f6c\u53d1\uff0c\u4ed3\u5e93\u5f00\u6e900\u6bd2<\/p>\n<p dir=\"auto\" style=\"margin: 0px 0px 14px; line-height: 1.8; font-size: 16px;\">\u6700\u540e\u611f\u8c22\u8bba\u575b\u4f6c\u53cb\u7684\u6709\u5173Anthropic\u7684\u7f13\u5b58\u89e3\u7b54\uff0c\u4ee5\u53ca \u897f\u98ce\u4f6c <a class=\"mention\" href=\"\/u\/mcuxifeng\">@McuXifeng<\/a> \u548cN\u4f6c <a class=\"mention\" href=\"\/u\/neuroplexus\">@Neuroplexus<\/a> \u7684\u53cc\u5341\u4e8c\u6d3b\u52a8\u514d\u8d39Key\u8ba9\u6211\u80fd\u5145\u5206\u6d4b\u8bd5 <figure style=\"margin: 16px auto; text-align: center;\"><img decoding=\"async\" src=\"https:\/\/blog.jj.mr\/wp-content\/uploads\/2025\/12\/grinning_face.png\" title=\":grinning_face:\" class=\"emoji\" alt=\":grinning_face:\" loading=\"lazy\" width=\"20\" height=\"20\" style=\"aspect-ratio: 20 \/ 20; max-width: 100%; height: auto; border-radius: 6px;\"><\/figure><\/p><div style=\"margin-top:18px;\">\n  <hr style=\"border:0;height:1px;background:#e2e8f0;margin:16px 0;\">\n\n  <div style=\"\n    padding:12px 14px;\n    background:#f8fafc;\n    border:1px dashed #d0d7de;\n    border-radius:12px;\n    font-size:14px;\n    color:#334155;\n    line-height:1.8;\n  \">\n    <div style=\"margin:0 0 8px 0;font-weight:700;color:#0f172a;font-size:15px;\">\n      \ud83d\udccc \u8f6c\u8f7d\u4fe1\u606f\n    <\/div>\n\n    <div style=\"margin:0 0 6px 0;\">\n      <span style=\"color:#64748b;display:inline;font-weight:600;\">\u6765\u6e90\uff1a<\/span>\n      <a href=\"https:\/\/linux.do\/t\/topic\/1302536\" target=\"_blank\" rel=\"nofollow noopener\"\n         style=\"display:inline;color:#2563eb;text-decoration:underline;word-break:break-all;\">\n        https:\/\/linux.do\/t\/topic\/1302536\n      <\/a>\n    <\/div>\n\n    \n\n    <div style=\"margin:0;\">\n      <span style=\"color:#64748b;display:inline;font-weight:600;\">\u8f6c\u8f7d\u65f6\u95f4\uff1a<\/span>\n      <span style=\"display:inline;\">2025\/12\/28 20:52:40<\/span>\n    <\/div>\n  <\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e3a\u8f6c\u8f7d\u5185\u5bb9\uff0c\u4fdd\u7559\u539f\u5e16\u89c2\u70b9\u4e0e\u7ed3\u6784\uff1b\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u6211\u5904\u7406\u3002 \u9996\u5148\u9700\u8981\u652f\u6301\u4efb\u610f\u5730\u65b9\u4f7f\u7528\u7684Anthropic AP &hellip; <a href=\"https:\/\/blog.jj.mr\/index.php\/2025\/12\/28\/%e3%80%90%e8%bd%ac%e8%bd%bd%e3%80%91cursor-pro-%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e5%9e%8b-anthropic-%e4%bb%a3%e7%90%86%ef%bc%8c-agent-%e5%8f%af%e7%94%a8-opus4-5%ef%bc%8c-sonnet4-5%ef%bc%8c\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u3010\u8f6c\u8f7d\u3011Cursor Pro \u81ea\u5b9a\u4e49\u6a21\u578b Anthropic \u4ee3\u7406\uff0c Agent \u53ef\u7528 Opus4.5\uff0c Sonnet4.5\uff0c \u5e26\u7f13\u5b58<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-7"],"_links":{"self":[{"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":1,"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/posts\/330\/revisions\/331"}],"wp:attachment":[{"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jj.mr\/index.php\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}