id: e8882ff5b3704b009a805a0017f54e83
parent_id: 
item_type: 1
item_id: cb6fb0085b214cd3a185a28f2ece8739
item_updated_time: 1764345639354
title_diff: "[{\"diffs\":[[1,\"AI - Gemini CLI 摆脱终端限制\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":22}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>AI - Gemini CLI 摆脱终端限制</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"45291\\\"></a>\\\r\\\n<h1>AI - Gemini CLI 摆脱终端限制</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"margin:0px;\\\"><div style=\\\"padding:8px 0px;margin:8px auto;max-width:700px;\\\"> <div><span></span></div>\\\n<p></p>\\\n<div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=Mzg4MTA4MDQzMQ==&amp;mid=2247486104&amp;idx=1&amp;sn=9169bf3bd11c3b55f13ddbf69dae20bc&amp;chksm=ce02f9a95d8affc6d1189b4fdece9cbec55d8e070a240122093e4da690d7563798188bf8d68c&amp;mpshare=1&amp;scene=1&amp;srcid=0729VK6Fv4Atex19BW3nPAfT&amp;sharer_shareinfo=11adf13ecc8100020d16e01f53b7e6b9&amp;sharer_shareinfo_first=11adf13ecc8100020d16e01f53b7e6b9#rd\\\"><span>https://mp.weixin.qq.com/s?__biz=Mzg4MTA4MDQzMQ==&amp;mid=224748...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"\\\"><div><div><h1 style=\\\"margin:0\\\"> AI - Gemini CLI 摆脱终端限制</h1><div><span style=\\\"position:relative\\\">原创</span><span><span style=\\\"position:relative\\\">LinXunFeng</span></span><span><a style=\\\"position:relative\\\"> FSA全栈行动 </a></span><span><em></em></span></div><div style=\\\";\\\"><div><span></span></div><blockquote style=\\\"box-sizing: border-box;margin: 1.2em 0px;display: block;font-size: 0.9em;overflow: auto;border-left: 4px solid rgb(221, 221, 221);background: rgba(0, 0, 0, 0.05);color: rgb(119, 119, 119);padding: 10px 1em;quotes: none;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><p style=\\\"box-sizing:border-box;margin:0;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(119,119,119);font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto\\\"><span>欢迎加入：<a href=\\\"https://mp.weixin.qq.com/s?__biz=Mzg4MTA4MDQzMQ==&amp;mid=2247484626&amp;idx=1&amp;sn=ed5ddd6f55acda325006afef15984af7&amp;scene=21#wechat_redirect\\\" style=\\\"box-sizing: border-box;color: rgb(239, 112, 96);text-decoration: none;background-color: initial;outline: none;cursor: pointer;transition: color 0.3s;touch-action: manipulation;overflow-wrap: break-word;font-weight: bold;border-bottom: 1px solid rgb(239, 112, 96);\\\" target=\\\"_blank\\\">FSA全栈行动交流群</a> 👋</span></p></blockquote><h2 style=\\\"box-sizing:border-box;margin:10px auto;color:rgb(0,0,0);font-weight:bold;font-size:22px;height:40px;background-color:rgb(251,251,251);border-bottom:1px solid rgb(246,246,246);overflow:hidden;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-left: -10px;display: inline-block;width: auto;height: 40px;background-color: rgb(33, 33, 34);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 30px;padding-left: 30px;line-height: 40px;font-size: 16px;\\\"><span>一、概述</span></span><span style=\\\"box-sizing: border-box;\\\"></span></h2><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>不久前，谷歌推出了开源的 AI 代理 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Gemini CLI</span></code><span>，它为个人开发者提供了近乎无上限的免费使用 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Gemini 2.5 Pro</span></code><span> 的额度，每分钟 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>60</span></code><span> 次，每日最多可达 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>1,000</span></code><span> 次的模型执行额度，且完全免费！</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Gemini 2.5 Pro</span></code><span> 在编码上的能力，我们可以参考 <span style=\\\"color: rgb(255, 0, 0);text-decoration: underline;\\\">https://web.lmarena.ai/leaderboard</span> 上查看排名。</span></p><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/532c68d2092d48fcae23e3ea813e8e8f\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>而这么牛的模型，只能运行在终端这个小框框里实属可惜，所以本文将介绍如何使其 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>OpenAI-compatible</span></code><span> 化，从而摆脱终端限制。</span></p><blockquote style=\\\"box-sizing: border-box;margin: 1.2em 0px;display: block;font-size: 0.9em;overflow: auto;border-left: 4px solid rgb(221, 221, 221);background: rgba(0, 0, 0, 0.05);color: rgb(119, 119, 119);padding: 10px 1em;quotes: none;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><p style=\\\"box-sizing:border-box;margin:0;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(119,119,119);font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto\\\"><span>注：该方案本人主号已稳定使用一个多月，不过如果你有小号的话还是建议使用小号~</span></p></blockquote><h2 style=\\\"box-sizing:border-box;margin:10px auto;color:rgb(0,0,0);font-weight:bold;font-size:22px;height:40px;background-color:rgb(251,251,251);border-bottom:1px solid rgb(246,246,246);overflow:hidden;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-left: -10px;display: inline-block;width: auto;height: 40px;background-color: rgb(33, 33, 34);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 30px;padding-left: 30px;line-height: 40px;font-size: 16px;\\\"><span>二、安装</span></span><span style=\\\"box-sizing: border-box;\\\"></span></h2><blockquote style=\\\"box-sizing: border-box;margin: 1.2em 0px;display: block;font-size: 0.9em;overflow: auto;border-left: 4px solid rgb(221, 221, 221);background: rgba(0, 0, 0, 0.05);color: rgb(119, 119, 119);padding: 10px 1em;quotes: none;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><p style=\\\"box-sizing:border-box;margin:0;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(119,119,119);font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto\\\"><span>环境前提，需要已经安装 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Node.js</span></code><span>，并且版本 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>≥ 20</span></code></p></blockquote><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>全局安装 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>gemini-cli</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>pnpm install -g @google/gemini-cli</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>注：我自己使用的包管理工具是 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>pnpm</span></code><span>，你可以使用 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Node.js</span></code><span> 自带的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>npm</span></code></p><h2 style=\\\"box-sizing:border-box;margin:10px auto;color:rgb(0,0,0);font-weight:bold;font-size:22px;height:40px;background-color:rgb(251,251,251);border-bottom:1px solid rgb(246,246,246);overflow:hidden;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-left: -10px;display: inline-block;width: auto;height: 40px;background-color: rgb(33, 33, 34);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 30px;padding-left: 30px;line-height: 40px;font-size: 16px;\\\"><span>三、授权认证</span></span><span style=\\\"box-sizing: border-box;\\\"></span></h2><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>启用 API</span></span></h3><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>使用 OAuth 凭据文件认证的方式，先打开如下链接</span></p><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/86b0fc5d7a7b4b49abbb3e9538d117c4\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>点击写着 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>前往 Gemini for Google Cloud</span></code><span> 的蓝色大按钮。</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>在跳转至另一个页面后，点击左上角的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>选择项目</span></code><span> 进行选择。</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>接着查看地址栏里的链接，如下</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span><span style=\\\"color: rgb(255, 0, 0);text-decoration: underline;\\\">https://console.cloud.google.com/marketplace/product/google/cloudaicompanion.googleapis.com?hl=zh-cn&amp;inv=1&amp;invt=abcdef&amp;project=linxunfeng</span></span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>找到 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>project</span></code><span> 参数，即 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>项目 ID</span></code><span>，记下它的值，如这里的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>linxunfeng</span></code><span>。</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>再点击蓝色按钮 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>启用</span></code></p><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/a81091f6d645449ab7b9fc166f10be6e\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>没有项目则自行创建一个</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/a7fff7970ee54f949791fb508dcd6ec8\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;\\\"/></div><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/4ab2d0b543ea42f9a76627aec0eed8a6\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>项目名称</span></code><span> 和 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>项目 ID</span></code><span> 根据你自己的情况去填写</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>如果你之前就启用过，则会显示 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>API已启用</span></code><span>，如图所示</span></p><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/ff7c6f96f875430787b03a752cd59fcb\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>配置</span></span></h3><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>打开终端，新增环境变量 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>GOOGLE_CLOUD_PROJECT</span></code><span>，值为 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>project</span></code><span> 的值，如上 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>linxunfeng</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>export GOOGLE_CLOUD_PROJECT=&quot;linxunfeng&quot;</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>source</span></code><span> 配置文件或重启终端，运行 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>gemini</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;color: rgb(155, 155, 155);line-height: 26px;\\\"><span>#</span></span><span style=\\\"box-sizing: border-box;line-height: 26px;\\\"><span> </span><span style=\\\"box-sizing: border-box;color: rgb(78, 201, 176);line-height: 26px;\\\"><span>source</span></span><span> 你自己的配置文件</span></span><span><br/></span><span>source ~/.zshrc</span><span><br/></span><span><br/></span><span>gemini</span><span><br/></span></div></pre><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/08f56d5922774925a516f4a63f4bb9cf\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>会让你选择主题，这里随意，看你喜欢～</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>接下来是认证方式，选择 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Login with Google</span></code></p><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/d7082b8f29e548708a30aad0bf138492\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>会自动打开浏览器页面，按要求登录授权即可</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>授权成功后的页面会显示如下内容</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/92f3038239bd4bcfa228126657bf3317\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;\\\"/></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>再回到终端，你会发现已经可以正常使用 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>gemini</span></code><span> 了</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>如果你没有执行过上述的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>前置操作</span></code><span>，终端内会遇到如下提示</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>Failed to login. Message: This account requires setting the GOOGLE_CLOUD_PROJECT env var. See https://goo.gle/gemini-cli-auth-docs#workspace-gca</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>如果遇到了按上述的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>前置操作</span></code><span> 操作一遍即可～</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>完成后查看 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>~/.gemini/oauth_creds.json</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>cat ~/.gemini/oauth_creds.json</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>文件内容如下所示</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>{</span><span><br/></span><span>  &quot;access_token&quot;: &quot;lxf&quot;,</span><span><br/></span><span>  &quot;refresh_token&quot;: &quot;lxf&quot;,</span><span><br/></span><span>  &quot;scope&quot;: &quot;lxf&quot;,</span><span><br/></span><span>  &quot;token_type&quot;: &quot;Bearer&quot;,</span><span><br/></span><span>  &quot;id_token&quot;: &quot;lxf&quot;,</span><span><br/></span><span>  &quot;expiry_date&quot;: 1751011026383</span><span><br/></span><span>}</span><span><br/></span></div></pre><h2 style=\\\"box-sizing:border-box;margin:10px auto;color:rgb(0,0,0);font-weight:bold;font-size:22px;height:40px;background-color:rgb(251,251,251);border-bottom:1px solid rgb(246,246,246);overflow:hidden;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-left: -10px;display: inline-block;width: auto;height: 40px;background-color: rgb(33, 33, 34);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 30px;padding-left: 30px;line-height: 40px;font-size: 16px;\\\"><span>四、OpenAI-compatible</span></span><span style=\\\"box-sizing: border-box;\\\"></span></h2><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>接下来部署项目 <span style=\\\"color: rgb(255, 0, 0);text-decoration: underline;\\\">https://github.com/GewoonJaap/gemini-cli-openai</span> 至 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Cloudflare</span></code></p><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>项目拉取</span></span></h3><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>git clone https://github.com/GewoonJaap/gemini-cli-openai.git</span><span><br/></span><span><br/></span><span>cd gemini-cli-openai</span><span><br/></span></div></pre><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>安装依赖</span></span></h3><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>安装项目依赖</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>pnpm i</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>全局安装 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>wrangler</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>pnpm install -g wrangler</span><span><br/></span></div></pre><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>创建 </span><code style=\\\"box-sizing: border-box;font-size: 1em;font-family: source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace;\\\"><span>KV</span></code><span> 存储</span></span></h3><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>wrangler kv namespace create &quot;GEMINI_CLI_KV&quot;</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>在执行这行命令时，如果你还没有授权过 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Cloudflare</span></code><span>，会出现如下提示，并会自动打开浏览器，不要慌，按提示登录授权即可。</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>Attempting to login via OAuth...</span><span><br/></span><span>Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth?xxx</span><span><br/></span></div></pre><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>Successfully logged in.</span><span><br/></span><span>Resource location: remote</span><span><br/></span><span>🌀 Creating namespace with title &quot;GEMINI_CLI_KV&quot;</span><span><br/></span><span>✨ Success!</span><span><br/></span><span>Add the following to your configuration file in your kv_namespaces array:</span><span><br/></span><span>[[kv_namespaces]]</span><span><br/></span><span>binding = &quot;GEMINI_CLI_KV&quot;</span><span><br/></span><span>id = &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>将上述最后一行的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>id</span></code><span> 值，替换掉 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>wrangler.toml</span></code><span> 中的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>GEMINI_CLI_KV</span></code><span>，如</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>kv_namespaces = [</span><span><br/></span><span>  { binding = &quot;GEMINI_CLI_KV&quot;, id = &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot; }</span><span><br/></span><span>]</span><span><br/></span></div></pre><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>认证信息</span></span></h3><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>wrangler secret put GCP_SERVICE_ACCOUNT</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>执行后会让你输入，这里就需要用到 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>~/.gemini/oauth_creds.json</span></code><span> 里的数据，不过这里面的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>JSON</span></code><span> 数据是多行的，而命令行只接收单行数据，所以需要我们先将其压缩成一行。</span></p><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>你可以谷歌在线压缩 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>JSON</span></code><span> 的工具去处理，也可以像我一样用 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>jq</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;color: rgb(155, 155, 155);line-height: 26px;\\\"><span>#</span></span><span style=\\\"box-sizing: border-box;line-height: 26px;\\\"><span> 安装 jq</span></span><span><br/></span><span>brew install jq</span><span><br/></span><span style=\\\"box-sizing: border-box;color: rgb(155, 155, 155);line-height: 26px;\\\"><span><br/></span><span>#</span></span><span style=\\\"box-sizing: border-box;line-height: 26px;\\\"><span> 压缩 json</span></span><span><br/></span><span>jq -c . &lt; ~/.gemini/oauth_creds.json &gt; output.json</span><span><br/></span><span style=\\\"box-sizing: border-box;color: rgb(155, 155, 155);line-height: 26px;\\\"><span>#</span></span><span style=\\\"box-sizing: border-box;line-height: 26px;\\\"><span> 或者</span></span><span><br/></span><span>cat ~/.gemini/oauth_creds.json | jq -c . &gt; output.json</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>将 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>output.json</span></code><span> 内已经压缩好的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>JSON</span></code><span> 复制后粘贴即可～</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>✔ Enter a secret value: … ***************************** </span><span><br/></span><span>*****************************</span><span><br/></span><span>...</span><span><br/></span><span>🌀 Creating the secret for the Worker &quot;gemini-cli-worker&quot; </span><span><br/></span><span>✔ There doesn't seem to be a Worker called &quot;gemini-cli-worker&quot;. Do you want to create a new Worker with that name and add secrets to it? … yes</span><span><br/></span><span>🌀 Creating new Worker &quot;gemini-cli-worker&quot;...</span><span><br/></span><span>✨ Success! Uploaded secret GCP_SERVICE_ACCOUNT</span><span><br/></span></div></pre><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>密钥</span></span></h3><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>访问该服务时所需的密钥，防止别人随意使用你的 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Gemini CLI</span></code></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>wrangler secret put OPENAI_API_KEY</span><span><br/></span></div></pre><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>✔ Enter a secret value: … ********************</span><span><br/></span><span>🌀 Creating the secret for the Worker &quot;gemini-cli-worker&quot; </span><span><br/></span><span>✨ Success! Uploaded secret OPENAI_API_KEY</span><span><br/></span></div></pre><h3 style=\\\"box-sizing:border-box;margin:20px auto 5px;color:rgb(0,0,0);font-weight:bold;font-size:20px;border-top:1px solid rgb(221,221,221);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 2px solid rgb(33, 33, 34);display: inline-block;line-height: 1.1;\\\"><span>部署</span></span></h3><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>pnpm run deploy</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>输出如下内容</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;color: rgb(155, 155, 155);line-height: 26px;\\\"><span>&gt;</span></span><span style=\\\"box-sizing: border-box;line-height: 26px;\\\"><span> gemini-cli-worker@1.0.0 deploy /path/to/gitHub/gemini-cli-openai</span></span><span><br/></span><span style=\\\"box-sizing: border-box;color: rgb(155, 155, 155);line-height: 26px;\\\"><span>&gt;</span></span><span style=\\\"box-sizing: border-box;line-height: 26px;\\\"><span> wrangler deploy</span></span><span><br/></span><span><br/></span><span>Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md</span><span><br/></span><span><br/></span><span> ⛅️ wrangler 4.22.0</span><span><br/></span><span>───────────────────</span><span><br/></span><span>Total Upload: 102.28 KiB / gzip: 24.22 KiB</span><span><br/></span><span>Worker Startup Time: 13 ms</span><span><br/></span><span>Your Worker has access to the following bindings:</span><span><br/></span><span>Binding                                                   Resource          </span><span><br/></span><span>env.GEMINI_CLI_KV (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)      KV Namespace      </span><span><br/></span><span><br/></span><span>Uploaded gemini-cli-worker (4.07 sec)</span><span><br/></span><span>Deployed gemini-cli-worker triggers (0.81 sec)</span><span><br/></span><span>  https://gemini-cli-worker.lxf.workers.dev</span><span><br/></span><span>Current Version ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</span><span><br/></span></div></pre><h2 style=\\\"box-sizing:border-box;margin:10px auto;color:rgb(0,0,0);font-weight:bold;font-size:22px;height:40px;background-color:rgb(251,251,251);border-bottom:1px solid rgb(246,246,246);overflow:hidden;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:justify;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span style=\\\"box-sizing: border-box;margin-left: -10px;display: inline-block;width: auto;height: 40px;background-color: rgb(33, 33, 34);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 30px;padding-left: 30px;line-height: 40px;font-size: 16px;\\\"><span>五、使用</span></span><span style=\\\"box-sizing: border-box;\\\"></span></h2><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>如上述部署完成后，会输出类似这种域名链接 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>https://gemini-cli-worker.lxf.workers.dev</span></code><span>，访问后页面显示如下内容说明搭建成功。</span></p><pre style=\\\"box-sizing: border-box;font-size: 16px;font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top: 10px;margin-bottom: 10px;overflow: auto;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;color: rgb(0, 0, 0);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>{</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;name&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;Gemini CLI OpenAI Worker&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;description&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;OpenAI-compatible API for Google Gemini models via OAuth&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;version&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;1.0.0&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;authentication&quot;</span></span><span>:{</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;required&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(86, 156, 214);line-height: 26px;\\\"><span>true</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;type&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;Bearer token in Authorization header&quot;</span></span><span>},</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;endpoints&quot;</span></span><span>:{</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;chat_completions&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;/v1/chat/completions&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;models&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;/v1/models&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;debug&quot;</span></span><span>:{</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;cache&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;/v1/debug/cache&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;token_test&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;/v1/token-test&quot;</span></span><span>,</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;full_test&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;/v1/test&quot;</span></span><span>}},</span><span style=\\\"box-sizing: border-box;color: rgb(156, 220, 254);line-height: 26px;\\\"><span>&quot;documentation&quot;</span></span><span>:</span><span style=\\\"box-sizing: border-box;color: rgb(214, 157, 133);line-height: 26px;\\\"><span>&quot;https://github.com/gewoonjaap/gemini-cli-openai&quot;</span></span><span>}</span><span><br/></span></div></pre><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>我们在链接后面拼上 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>/v1</span></code><span> 就可以使用了</span></p><div style=\\\"box-sizing: border-box;display: block;margin: 10px 0px;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\\\"><span><img src=\\\":/0c15c40649f94c71a3a96f23f14fbecb\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;vertical-align: middle;border-style: none;display: block;margin: 0px auto;width: auto;max-width: 100%;\\\"/></span></div><p style=\\\"box-sizing:border-box;margin:0 0 16px;font-size:15px;padding-top:8px;padding-bottom:8px;line-height:1.75em;color:rgb(0,0,0);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif;text-align:start;white-space:normal;text-size-adjust:auto;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial\\\"><span>如图，这里以 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>Roo Code</span></code><span> 为例，新增一个配置文件，选择 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>OpenAI Compatible</span></code><span>，填写基础 </span><code style=\\\"box-sizing: border-box;font-size: 14px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0px 2px;color: rgb(239, 112, 96);background-color: rgba(27, 31, 35, 0.05);word-break: break-all;\\\"><span>URL</span></code><span> 和密钥，然后点击模型，会自动列出所有支持的模型，选择你需要的模型后保存就可以使用了。</span></p><div><span></span></div></div></div><div><div><div><div style=\\\"display:flex;\\\"><a>阅读原文</a></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":106639}]"
metadata_diff: {"new":{"id":"cb6fb0085b214cd3a185a28f2ece8739","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348816114,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:03:15.904Z
created_time: 2025-11-28T21:03:15.904Z
type_: 13