{"id":216,"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-github-copilot\/"},"modified":"2026-03-21T23:08:55","modified_gmt":"2026-03-21T15:08:55","slug":"providers-github-copilot","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-github-copilot\/","title":{"rendered":"GitHub Copilot"},"content":{"rendered":"<h1>GitHub Copilot<\/h1>\n<h2>\u4ec0\u4e48\u662f GitHub Copilot\uff1f<\/h2>\n<p>GitHub Copilot \u662f GitHub \u7684 AI \u7f16\u7a0b\u52a9\u624b\u3002\u5b83\u4e3a\u4f60\u7684 GitHub \u8d26\u6237\u548c\u8ba2\u9605\u8ba1\u5212\u63d0\u4f9b Copilot \u6a21\u578b\u7684\u8bbf\u95ee\u6743\u9650\u3002OpenClaw \u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u5c06 Copilot \u7528\u4f5c\u6a21\u578b\u63d0\u4f9b\u5546\u3002<\/p>\n<h2>\u5728 OpenClaw \u4e2d\u4f7f\u7528 Copilot \u7684\u4e24\u79cd\u65b9\u5f0f<\/h2>\n<h3>1\uff09\u5185\u7f6e GitHub Copilot \u63d0\u4f9b\u5546\uff08<code>github-copilot<\/code>\uff09<\/h3>\n<p>\u4f7f\u7528\u539f\u751f\u8bbe\u5907\u767b\u5f55\u6d41\u7a0b\u83b7\u53d6 GitHub \u4ee4\u724c\uff0c\u7136\u540e\u5728 OpenClaw \u8fd0\u884c\u65f6\u5c06\u5176\u5151\u6362\u4e3a Copilot API \u4ee4\u724c\u3002\u8fd9\u662f<strong>\u9ed8\u8ba4<\/strong>\u4e14\u6700\u7b80\u5355\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981 VS Code\u3002<\/p>\n<h3>2\uff09Copilot Proxy \u63d2\u4ef6\uff08<code>copilot-proxy<\/code>\uff09<\/h3>\n<p>\u4f7f\u7528 <strong>Copilot Proxy<\/strong> VS Code \u6269\u5c55\u4f5c\u4e3a\u672c\u5730\u6865\u63a5\u3002OpenClaw \u4e0e\u4ee3\u7406\u7684 <code>\/v1<\/code> \u7aef\u70b9\u901a\u4fe1\uff0c\u5e76\u4f7f\u7528\u4f60\u5728\u5176\u4e2d\u914d\u7f6e\u7684\u6a21\u578b\u5217\u8868\u3002\u5f53\u4f60\u5df2\u7ecf\u5728 VS Code \u4e2d\u8fd0\u884c Copilot Proxy \u6216\u9700\u8981\u901a\u8fc7\u5b83\u8fdb\u884c\u8def\u7531\u65f6\uff0c\u9009\u62e9\u6b64\u65b9\u5f0f\u3002\u4f60\u5fc5\u987b\u542f\u7528\u8be5\u63d2\u4ef6\u5e76\u4fdd\u6301 VS Code \u6269\u5c55\u8fd0\u884c\u3002<\/p>\n<p>\u4f7f\u7528 GitHub Copilot \u4f5c\u4e3a\u6a21\u578b\u63d0\u4f9b\u5546\uff08<code>github-copilot<\/code>\uff09\u3002\u767b\u5f55\u547d\u4ee4\u8fd0\u884c GitHub \u8bbe\u5907\u6d41\u7a0b\uff0c\u4fdd\u5b58\u8ba4\u8bc1\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u66f4\u65b0\u4f60\u7684\u914d\u7f6e\u4ee5\u4f7f\u7528\u8be5\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h2>CLI \u8bbe\u7f6e<\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw models auth login-github-copilot<\/p>\n<pre><code>\n\u7cfb\u7edf\u4f1a\u63d0\u793a\u4f60\u8bbf\u95ee\u4e00\u4e2a URL \u5e76\u8f93\u5165\u4e00\u6b21\u6027\u4ee3\u7801\u3002\u8bf7\u4fdd\u6301\u7ec8\u7aef\u6253\u5f00\u76f4\u5230\u6d41\u7a0b\u5b8c\u6210\u3002\n\n### \u53ef\u9009\u53c2\u6570\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw models auth login-github-copilot --profile-id github-copilot:work\nopenclaw models auth login-github-copilot --yes\n<\/code><\/pre>\n<h2>\u8bbe\u7f6e\u9ed8\u8ba4\u6a21\u578b<\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw models set github-copilot\/gpt-4o<\/p>\n<pre><code>\n### \u914d\u7f6e\u7247\u6bb5\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  agents: { defaults: { model: { primary: &quot;github-copilot\/gpt-4o&quot; } } },\n}\n<\/code><\/pre>\n<h2>\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li>\u9700\u8981\u4ea4\u4e92\u5f0f TTY\uff1b\u8bf7\u76f4\u63a5\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u3002<\/li>\n<li>Copilot \u6a21\u578b\u7684\u53ef\u7528\u6027\u53d6\u51b3\u4e8e\u4f60\u7684\u8ba2\u9605\u8ba1\u5212\uff1b\u5982\u679c\u67d0\u4e2a\u6a21\u578b\u88ab\u62d2\u7edd\uff0c\u8bf7\u5c1d\u8bd5\u5176\u4ed6 ID\uff08\u4f8b\u5982 <code>github-copilot\/gpt-4.1<\/code>\uff09\u3002<\/li>\n<li>\u767b\u5f55\u4f1a\u5c06 GitHub \u4ee4\u724c\u5b58\u50a8\u5728\u8ba4\u8bc1\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5e76\u5728 OpenClaw \u8fd0\u884c\u65f6\u5c06\u5176\u5151\u6362\u4e3a Copilot API \u4ee4\u724c\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>GitHub Copilot \u4ec0\u4e48\u662f GitHub Copilot\uff1f GitHub Copilot \u662f Git [&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-216","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/216","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=216"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/216\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}