{"id":1767,"date":"2026-07-27T17:35:45","date_gmt":"2026-07-27T09:35:45","guid":{"rendered":"https:\/\/www.imaseo.com\/blog\/?p=1767"},"modified":"2026-06-02T16:54:15","modified_gmt":"2026-06-02T08:54:15","slug":"codex-model-switch-open-source-tool","status":"publish","type":"post","link":"https:\/\/www.imaseo.com\/blog\/ai-tools\/codex-model-switch-open-source-tool","title":{"rendered":"Codex \u6362\u6a21\u578b\u592a\u9ebb\u70e6\uff1f\u54ea\u4e2a\u5f00\u6e90\u684c\u9762\u5de5\u5177\u80fd\u4e00\u952e\u5207\u6362\uff1f"},"content":{"rendered":"<p>Codex \u6362\u6a21\u578b\u592a\u9ebb\u70e6\uff1f\u54ea\u4e2a\u5f00\u6e90\u684c\u9762\u5de5\u5177\u80fd\u4e00\u952e\u5207\u6362\uff1f<\/p>\n<p>\u5f88\u591a\u5f00\u53d1\u8005\u5728\u4f7f\u7528 Codex \u65f6\u90fd\u4f1a\u9047\u5230\u540c\u4e00\u4e2a\u75db\u70b9\uff1a\u60f3\u5207\u6362\u4e0d\u540c\u6a21\u578b\u6216\u63a5\u5165\u56fd\u4ea7\u5927\u6a21\u578b\uff0c\u5374\u8981\u53cd\u590d\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u3001\u8c03\u6574 Base URL\uff0c\u751a\u81f3\u8fd8\u8981\u5904\u7406\u534f\u8bae\u517c\u5bb9\u95ee\u9898\uff0c\u64cd\u4f5c\u7e41\u7410\u4e14\u5bb9\u6613\u51fa\u9519\u3002\u5c24\u5176\u5f53\u4f60\u65e2\u60f3\u7528 OpenAI \u7684 Responses API\uff0c\u53c8\u60f3\u63a5\u5165\u667a\u8c31 GLM\u3001DeepSeek \u7b49\u56fd\u5185\u6a21\u578b\u65f6\uff0c\u4f20\u7edf\u5de5\u5177\u5f80\u5f80\u529b\u4e0d\u4ece\u5fc3\u3002<\/p>\n<h3>CC Switch \u4e3a\u4ec0\u4e48\u4e0d\u591f\u7528\uff1f<\/h3>\n<p>CC Switch \u662f\u4e00\u6b3e\u70ed\u95e8\u7684\u6a21\u578b\u5207\u6362\u5de5\u5177\uff0c\u4e3b\u8981\u9762\u5411 Claude Code \u7528\u6237\u3002\u5b83\u80fd\u5feb\u901f\u4fee\u6539 API Key\u3001Base URL \u548c\u7cfb\u7edf\u63d0\u793a\u8bcd\uff0c\u4f46\u5bf9 Codex \u652f\u6301\u6709\u9650\u3002Codex \u5f3a\u5236\u4f7f\u7528 OpenAI \u7684 Responses API\uff08POST \/v1\/responses\uff09\uff0c\u800c\u56fd\u5185\u6a21\u578b\u5927\u591a\u53ea\u517c\u5bb9 Chat Completions \u534f\u8bae\uff08POST \/v4\/chat\/completions\uff09\u3002\u76f4\u63a5\u628a Codex \u7684 Base URL \u6307\u5411 GLM\uff0c\u4f1a\u8fd4\u56de 404 \u9519\u8bef\u3002<\/p>\n<p>\u8fd9\u5c31\u610f\u5473\u7740\uff0c\u4f60\u9700\u8981\u4e00\u4e2a\u65e2\u80fd\u4e00\u952e\u5207\u6362\u6a21\u578b\uff0c\u53c8\u80fd\u5904\u7406\u534f\u8bae\u8f6c\u6362\u7684\u684c\u9762\u5de5\u5177\u3002<\/p>\n<h3>\u63a8\u8350\u5f00\u6e90\u684c\u9762\u5de5\u5177\uff1aLite Switch<\/h3>\n<p>Lite Switch \u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u800c\u751f\u7684\u5f00\u6e90\u684c\u9762\u5e94\u7528\u3002\u5b83\u4e0d\u4ec5\u652f\u6301 Codex\uff0c\u8fd8\u80fd\u65e0\u7f1d\u63a5\u5165\u56fd\u4ea7\u6a21\u578b\uff0c\u771f\u6b63\u5b9e\u73b0\u201c\u4e00\u952e\u5207\u6362\u201d\u3002<\/p>\n<h4>1. \u4e00\u952e\u5207\u6362\u6a21\u578b\u4e0e Provider<\/h4>\n<p>\u5728 Lite Switch \u7684\u4e3b\u754c\u9762\uff0c\u4f60\u53ef\u4ee5\u540c\u65f6\u7ba1\u7406\u591a\u4e2a Provider\uff08OpenAI\u3001GLM\u3001DeepSeek \u7b49\uff09\uff0c\u70b9\u51fb\u5373\u53ef\u5207\u6362\uff0c\u65e0\u9700\u624b\u52a8\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u3002\u5207\u6362\u540e\uff0cCodex \u4f1a\u81ea\u52a8\u4f7f\u7528\u65b0\u7684\u6a21\u578b\u548c\u534f\u8bae\uff0c\u7701\u53bb\u7e41\u7410\u6b65\u9aa4\u3002<\/p>\n<h4>2. \u534f\u8bae\u81ea\u52a8\u8f6c\u6362<\/h4>\n<p>Lite Switch \u5185\u7f6e\u534f\u8bae\u8f6c\u6362\u5c42\uff0c\u80fd\u5c06 Codex \u7684 Responses API \u8bf7\u6c42\u8f6c\u6362\u4e3a\u56fd\u5185\u6a21\u578b\u652f\u6301\u7684 Chat Completions \u683c\u5f0f\u3002\u8fd9\u6837\uff0c\u5373\u4f7f GLM \u4e0d\u652f\u6301 \/v1\/responses\uff0c\u4f60\u4e5f\u80fd\u76f4\u63a5\u5728 Codex \u4e2d\u8c03\u7528\u3002<\/p>\n<h4>3. \u7cfb\u7edf\u6258\u76d8\u5feb\u6377\u64cd\u4f5c<\/h4>\n<p>\u7a97\u53e3\u6700\u5c0f\u5316\u540e\uff0c\u53f3\u952e\u6258\u76d8\u56fe\u6807\u5373\u53ef\u5207\u6362\u6a21\u578b\uff0c\u4e0d\u7528\u5207\u56de\u4e3b\u754c\u9762\u3002\u9002\u5408\u9700\u8981\u9891\u7e41\u5207\u6362\u6a21\u578b\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<h4>4. \u7528\u91cf\u8ffd\u8e2a<\/h4>\n<p>\u57fa\u4e8e SQLite \u672c\u5730\u8bb0\u5f55\uff0c\u4eea\u8868\u76d8\u5b9e\u65f6\u663e\u793a\u4eca\u65e5 Token \u6d88\u8017\u3001\u8d39\u7528\u3001\u7f13\u5b58\u547d\u4e2d\u7387\uff0c\u4ee5\u53ca\u6309\u5c0f\u65f6\u805a\u5408\u7684\u8d8b\u52bf\u56fe\u3002\u6240\u6709\u6570\u636e\u7eaf\u672c\u5730\u5b58\u50a8\uff0c\u65e0\u9690\u79c1\u6cc4\u9732\u98ce\u9669\u3002<\/p>\n<h4>5. \u524d\u7aef\u65e5\u5fd7\u9762\u677f<\/h4>\n<p>\u6240\u6709\u5185\u90e8\u65e5\u5fd7\u76f4\u63a5\u63a8\u9001\u5230\u754c\u9762\u4e0a\u7684 LogViewer \u9762\u677f\uff0c\u6392\u67e5\u95ee\u9898\u65e0\u9700\u7ffb\u770b\u7ec8\u7aef\uff0c\u64cd\u4f5c\u66f4\u76f4\u89c2\u3002<\/p>\n<h3>\u5feb\u901f\u4e0a\u624b\u6559\u7a0b<\/h3>\n<ol>\n<li>\u4e0b\u8f7d Lite Switch \u5f00\u6e90\u9879\u76ee\u5e76\u5b89\u88c5\u3002<\/li>\n<li>\u5728\u8bbe\u7f6e\u4e2d\u6dfb\u52a0 GLM\uff08\u6216\u5176\u4ed6\u56fd\u4ea7\u6a21\u578b\uff09\u7684 API Key \u548c Base URL\u3002<\/li>\n<li>\u9009\u62e9 Codex \u4f5c\u4e3a\u76ee\u6807\u5de5\u5177\uff0c\u542f\u7528\u201c\u534f\u8bae\u8f6c\u6362\u201d\u9009\u9879\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u4e00\u952e\u5207\u6362\u201d\uff0c\u5373\u53ef\u5728 Codex \u4e2d\u4f7f\u7528\u56fd\u4ea7\u6a21\u578b\u3002<\/li>\n<\/ol>\n<h3>\u5b9e\u9645\u4f7f\u7528\u5efa\u8bae<\/h3>\n<ul>\n<li>\u5982\u679c\u4f60\u4e3b\u8981\u7528 Claude Code\uff0cCC Switch \u5df2\u8db3\u591f\uff1b\u4f46\u5982\u679c\u9700\u8981\u540c\u65f6\u652f\u6301 Codex\uff0cLite Switch \u662f\u66f4\u4f18\u9009\u62e9\u3002<\/li>\n<li>\u56fd\u4ea7\u6a21\u578b\u867d\u7136\u4ef7\u683c\u4f4e\u3001\u901f\u5ea6\u5feb\uff0c\u4f46\u534f\u8bae\u4e0d\u517c\u5bb9\u662f\u6700\u5927\u969c\u788d\uff0cLite Switch \u7684\u8f6c\u6362\u5c42\u80fd\u6709\u6548\u89e3\u51b3\u3002<\/li>\n<li>\u5efa\u8bae\u5148\u7528\u201c\u8ba1\u5212\u6a21\u5f0f\u201d\u6d4b\u8bd5\u6a21\u578b\u6548\u679c\uff0c\u518d\u6b63\u5f0f\u6295\u5165\u9879\u76ee\u3002<\/li>\n<\/ul>\n<p>Lite Switch \u8ba9 Codex \u4e0d\u518d\u53d7\u9650\u4e8e\u5355\u4e00\u6a21\u578b\uff0c\u771f\u6b63\u5b9e\u73b0\u7075\u6d3b\u5207\u6362\u3002\u5982\u679c\u4f60\u6b63\u4e3a\u6362\u6a21\u578b\u70e6\u607c\uff0c\u4e0d\u59a8\u8bd5\u8bd5\u8fd9\u4e2a\u5f00\u6e90\u684c\u9762\u5de5\u5177\uff0c\u4f53\u9a8c\u4e00\u952e\u5207\u6362\u7684\u4fbf\u6377\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codex \u6362\u6a21\u578b\u592a\u9ebb\u70e6\uff1f\u54ea\u4e2a\u5f00\u6e90\u684c\u9762\u5de5\u5177\u80fd\u4e00\u952e\u5207\u6362\uff1f \u5f88\u591a\u5f00\u53d1\u8005\u5728\u4f7f\u7528 Codex \u65f6\u90fd\u4f1a\u9047\u5230\u540c\u4e00\u4e2a\u75db\u70b9\uff1a\u60f3\u5207\u6362\u4e0d\u540c\u6a21\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1767","post","type-post","status-publish","format-standard","hentry","category-ai-tools"],"_links":{"self":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/comments?post=1767"}],"version-history":[{"count":1,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1767\/revisions"}],"predecessor-version":[{"id":1768,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1767\/revisions\/1768"}],"wp:attachment":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/media?parent=1767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/categories?post=1767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/tags?post=1767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}