{"slug":"codex-unlimited-blade-works","title":"Codex！无限剑制！","description":"多的不说，仅做记录","coverImage":"https://b.acofork.com/img/codex-unlimited-blade-works-codex.webp","coverWidth":1200,"coverHeight":900,"date":"2026-03-06","tags":["AI"],"pinned":false,"wordCount":169,"html":"<h2 id=\"原理\">原理</h2><div class=\"markdown-code\" data-language=\"mermaid\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"></path><path d=\"M14 2v5a1 1 0 0 0 1 1h5\"></path></svg><span>mermaid</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-mermaid\">flowchart TD\n    A[\"通过“魔法”获得大量 OAuth Token\"]\n\n    subgraph CPA\n        B[\"批量导入 OAuth Token 到 CPA\"]\n        C[\"CPA 创建虚拟 API 端点\"]\n        D[\"生成 API Key\"]\n        E[\"获得 OpenAI 兼容 API\"]\n\n        B --&gt; C --&gt; D --&gt; E\n    end\n\n    F[\"接入 Claude Code / Codex\"]\n\n    A --&gt; B\n    E --&gt; F</code></pre></div><h2 id=\"实操\">实操</h2><p>首先，获得“魔法”，获得大量 OAuth Token</p>\n<p><img src=\"https://b.acofork.com/img/codex-unlimited-blade-works-codex-unlimited-blade-works.webp\" alt=\"\" width=\"1041\" height=\"583\" loading=\"eager\" decoding=\"async\" /></p>\n<p>安装 <a href=\"https://github.com/router-for-me/CLIProxyAPI\" target=\"_blank\" rel=\"noopener noreferrer\">router-for-me/CLIProxyAPI: Wrap Gemini CLI, Antigravity, ChatGPT Codex, Claude Code, Qwen Code, iFlow as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 2.5 Pro, GPT 5, Claude, Qwen model through API</a>。前往 <code>/management.html</code> </p>\n<p>上传认证文件</p>\n<p><img src=\"https://b.acofork.com/img/codex-unlimited-blade-works-codex-unlimited-blade-works-1.webp\" alt=\"\" width=\"2173\" height=\"1071\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>添加 API Key</p>\n<p><img src=\"https://b.acofork.com/img/codex-unlimited-blade-works-codex-unlimited-blade-works-2.webp\" alt=\"\" width=\"2039\" height=\"268\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>查看可用模型</p>\n<p><img src=\"https://b.acofork.com/img/codex-unlimited-blade-works-codex-unlimited-blade-works-4.webp\" alt=\"\" width=\"2172\" height=\"528\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>导入 Claude Code</p>\n<p><img src=\"https://b.acofork.com/img/codex-unlimited-blade-works-codex-unlimited-blade-works-3.webp\" alt=\"\" width=\"1440\" height=\"1249\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>用</p>\n<p><img src=\"https://b.acofork.com/img/codex-unlimited-blade-works-codex-unlimited-blade-works-5.webp\" alt=\"\" width=\"582\" height=\"1368\" loading=\"lazy\" decoding=\"async\" /></p>\n","toc":[{"id":"原理","text":"原理","depth":2},{"id":"实操","text":"实操","depth":2}]}