<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Notion 博客</title>
        <link>http://cbyer.eu.org/</link>
        <description>一个NotionNext搭建的博客</description>
        <lastBuildDate>Wed, 09 Sep 2026 02:17:31 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en-US</language>
        <copyright>All rights reserved 2026, BaiRusi</copyright>
        <item>
            <title><![CDATA[baseurl、apikey在codex桌面程序或者VS Code之codex插件中的使用示例 (支持win、Mac)]]></title>
            <link>http://cbyer.eu.org/technology/codex桌面程序或者VS Code之codex插件配置</link>
            <guid>http://cbyer.eu.org/technology/codex桌面程序或者VS Code之codex插件配置</guid>
            <pubDate>Wed, 06 May 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[codex桌面程序或者VS Code之codex插件配置]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-35850190abfa8052b7d6e634ff90a6e1"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-38650190abfa80fb820bcd3b63710a95" data-id="38650190abfa80fb820bcd3b63710a95"><span><div id="38650190abfa80fb820bcd3b63710a95" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38650190abfa80fb820bcd3b63710a95" title="一、安装codex 客户端"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、安装codex 客户端</span></span></h2><div class="notion-text notion-block-38650190abfa80df9023e0711fbba475">使用安装程序（有网络条件的自行下载，者从此<span class="notion-blue"><span class="notion-red_background"><b><a class="notion-link" href="https://fsyllknhotmail-my.sharepoint.com/:u:/g/personal/cxg_210313_xyz/IQDtrkRpbUyuT429GIVWVwTEAVelSNFpE3pm0cT1LI9lxkg?e=l2wPpo" target="_blank" rel="noopener noreferrer">链接</a></b></span></span>处下载）在线安装</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa80f48634dd4f09648ed8" data-id="35850190abfa80f48634dd4f09648ed8"><span><div id="35850190abfa80f48634dd4f09648ed8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80f48634dd4f09648ed8" title="二、账号注册和Codex配置使用基础教程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、账号注册和Codex配置使用基础教程</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa80149f07f4f931b3adb7" data-id="35850190abfa80149f07f4f931b3adb7"><span><div id="35850190abfa80149f07f4f931b3adb7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80149f07f4f931b3adb7" title="1、访问 https://sub.zbfe.cf/register 注册账号"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、访问 <a class="notion-link" href="https://sub.zbfe.cf/register" target="_blank" rel="noopener noreferrer">https://sub.zbfe.cf/register</a> 注册账号</span></span></h3><div class="notion-text notion-block-38650190abfa80b09e50f4f2ed1a1336">任意邮箱即可（真实邮箱或者虚拟邮箱均可，<span class="notion-red"><b>提醒：密码不要与邮箱密码或常用密码重复！！！</b></span>）</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa8052b58bf66ca88d1cf1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/291c9c2d-90a8-4b44-9c58-52355b9c7ab5/image.png?table=block&amp;id=38650190-abfa-8052-b58b-f66ca88d1cf1&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=jtH5qwwt9NZ-PtJb4ruWMk73wCMSpzWqU_o54zMzGD8&amp;t=38650190-abfa-8052-b58b-f66ca88d1cf1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa80a1ae71d9638fed18c0" data-id="35850190abfa80a1ae71d9638fed18c0"><span><div id="35850190abfa80a1ae71d9638fed18c0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80a1ae71d9638fed18c0" title="2、兑换（凭兑换码兑换）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、兑换（凭兑换码兑换）</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa80d09156c181b0042fe1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/b3e6337f-062e-4c49-b168-1b6c7e5dd6ae/image.png?table=block&amp;id=38650190-abfa-80d0-9156-c181b0042fe1&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=okBDY2yWLck0iNcK6NS4vRkMTWzk18EZbHfaGupX4mc&amp;t=38650190-abfa-80d0-9156-c181b0042fe1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa80f3b276e06fca77bc05" data-id="35850190abfa80f3b276e06fca77bc05"><span><div id="35850190abfa80f3b276e06fca77bc05" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80f3b276e06fca77bc05" title="3、创建api密钥——注意选订阅！！！"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3、创建api密钥——注意选订阅！！！</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa803aa9cce78b064391f1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/066249b2-f674-429f-a880-95b8327e814f/image.png?table=block&amp;id=38650190-abfa-803a-a9cc-e78b064391f1&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=2eQWIWhI9HRT3lZn7g6Q-XjmGboUf_l-rGy0Y6t_Jqo&amp;t=38650190-abfa-803a-a9cc-e78b064391f1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-35850190abfa80dba605dbc8848803c8">注意：这里选择分组的时候，只能选az2-class-trial（其他无效、不可用，想试试的可以试试），选择后点创建</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa8089b02edd19c29d6875"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:534.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/2f62e7c0-824c-4a6c-92ac-f46e0e6a7a99/image.png?table=block&amp;id=38650190-abfa-8089-b02e-dd19c29d6875&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=om4vKVx_6wnkL8nSLB5UVJxalwozxQDuVHQWOlOiWzg&amp;t=38650190-abfa-8089-b02e-dd19c29d6875" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa809e9e16d74ea954f787" data-id="35850190abfa809e9e16d74ea954f787"><span><div id="35850190abfa809e9e16d74ea954f787" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa809e9e16d74ea954f787" title="4、创建api密钥后，点击使用密钥"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4、创建api密钥后，点击使用密钥</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa80269943e7b3df9ff730"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/a568984f-c25a-498c-8773-f69c3df10d2c/image.png?table=block&amp;id=38650190-abfa-8026-9943-e7b3df9ff730&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=EugAcLFSfcojndbXh4ui_DAr_fHS9mwcZI5jvpZUBTs&amp;t=38650190-abfa-8026-9943-e7b3df9ff730" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-35850190abfa80adac4ecd9d3acb2673">把上面的“使用密钥”方框那里点开，有config.toml文件和auth.json（密钥文件）两个文件的配置。</div><div class="notion-text notion-block-38650190abfa8003b1a2c11bdeff52dd">其中，<span class="notion-blue"><b>config.toml</b></span>文件推荐可以直接使用下面的模板（本次仅仅提供体验模型DeepSeek-V4-Pro，暂不支持其他模型）：</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa807b9585dd2054fae8f2" data-id="35850190abfa807b9585dd2054fae8f2"><span><div id="35850190abfa807b9585dd2054fae8f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa807b9585dd2054fae8f2" title="auth.json（没有的话，要自己右键创建一个txt文本，复制内容进去后，把txt改成json后缀即可）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-blue">auth.json</span>（没有的话，要自己右键创建一个txt文本，复制内容进去后，把txt改成json后缀即可）</span></span></h4><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-38650190abfa80918d48c51d9a578537" data-id="38650190abfa80918d48c51d9a578537"><span><div id="38650190abfa80918d48c51d9a578537" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38650190abfa80918d48c51d9a578537" title="三、设置PC上的配置，让客户端或者插件生效，以win为例（先把文件扩展名和隐藏文件显示勾选），在文件管理器地址栏中输入 %userprofile%\.codex，直接跳转到目录中："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、设置PC上的配置，让客户端或者插件生效，以win为例（先把文件扩展名和隐藏文件显示勾选），在文件管理器地址栏中输入 <code class="notion-inline-code">%userprofile%\.codex，直接跳转到目录中：</code></span></span></h2><div class="notion-text notion-block-38650190abfa80c6b94ecb9f2998c9fc">win11系统：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa80f388fcc1362b0a1d21"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/a185d143-7e71-4432-8e6e-978aa99971d7/image.png?table=block&amp;id=38650190-abfa-80f3-88fc-c1362b0a1d21&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=J1J6e3UDyGNppWCqaWKMm83CM48KeW9ExIL1Rnmjz1Y&amp;t=38650190-abfa-80f3-88fc-c1362b0a1d21" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38650190abfa80f6aa0bd60347b3a59b">win10系统：
</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa800383aace6b339a38f2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/9088fe27-e815-42cf-887d-704d96a17faf/image.png?table=block&amp;id=38650190-abfa-8003-83aa-ce6b339a38f2&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=gDTep5KkUobtqFuJ2tuVlnKLcC27yjFVRcRoMRJfs2E&amp;t=38650190-abfa-8003-83aa-ce6b339a38f2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38650190abfa80bdb601d2a85f6d1575">【无论是win或mac的vscode中的codex插件还是codex客户端，都是同样的本机用户目录中的这个目录，mac的需要设置显示隐藏文件夹，如果没有那两个文件，就创建】。<span class="notion-blue"><b>手动查询方法</b></span>——win系统目录是C:\Users\换成你的电脑名\.codex，参考截图自己找一下</div><div class="notion-row notion-block-35850190abfa80039dd0c9540b549ec7"><div class="notion-column notion-block-35850190abfa80ada821c6481592984b" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35850190abfa8060a139c9d51a2db045"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:386.953125px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/02effaac-fbb0-4c3c-8605-36c1485599ff/image.png?table=block&amp;id=35850190-abfa-8060-a139-c9d51a2db045&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=5iS1AV8xptDK7782VG7WbQ3KTNZ6-k-ATo2Frizq8ng&amp;t=35850190-abfa-8060-a139-c9d51a2db045" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-38650190abfa803096e6fbce0c9fbde5"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-35850190abfa8090b666d970a19730c6" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35850190abfa801c881dd7b1d85c2ad1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:378.484375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/1fa56727-14b8-4139-b38e-82c243b604b1/image.png?table=block&amp;id=35850190-abfa-801c-881d-d7b1d85c2ad1&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=XB7umgIEDST5Y3Lze4X_19jr759mPXblyrk6IdRGsOw&amp;t=35850190-abfa-801c-881d-d7b1d85c2ad1" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div></div><div class="notion-row notion-block-35850190abfa800999cff9f1fc83f801"><div class="notion-column notion-block-35850190abfa80148b89d949cbccc42b" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35850190abfa80a28017f1f686814b6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:378.484375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/664c8a59-6ea9-4b03-9d25-f79005a1fdf5/image.png?table=block&amp;id=35850190-abfa-80a2-8017-f1f686814b6b&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=9v4Au1U9RCMA1p5WySDAELrghAstPuDiBOTF8Fi_MiM&amp;t=35850190-abfa-80a2-8017-f1f686814b6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-35850190abfa80e18614da05aeed4268"> </div></div><div class="notion-spacer"></div><div class="notion-column notion-block-35850190abfa80d9b223d8e935205141" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35850190abfa8001b1cfe59ca5ad72da"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:433.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/9bc9b3f1-bc7f-4d13-9831-d3582eb02934/image.png?table=block&amp;id=35850190-abfa-8001-b1cf-e59ca5ad72da&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=6sVUqWuAEq92CVCxZW7ZpIrDptrLJ3xF23M33NXTPRg&amp;t=35850190-abfa-8001-b1cf-e59ca5ad72da" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div></div><div class="notion-text notion-block-38650190abfa8042ab7afadde07ae39c">配置完成后，记得<span class="notion-red"><b>彻底退出</b></span>客户端，重新打开让新配置生效</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa809eb45ccf66e36d4b23" data-id="35850190abfa809eb45ccf66e36d4b23"><span><div id="35850190abfa809eb45ccf66e36d4b23" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa809eb45ccf66e36d4b23" title="四、codex客户端模型显示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、codex客户端模型显示</span></span></h2><div class="notion-text notion-block-35850190abfa80509c78d630d101ff17">模型会显示自定义，不要换模型，思考程度可以换</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38650190abfa8011b0a9d0524c4c6775"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/f581ad2b-0fd5-4d8f-a170-effb6b799cd2/image.png?table=block&amp;id=38650190-abfa-8011-b0a9-d0524c4c6775&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=zgP_4k6L_jJua7QpzjwKsAvtabU5VhMew5aiJ5D5NYI&amp;t=38650190-abfa-8011-b0a9-d0524c4c6775" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-362ce62646804d19ae393c50ff8f56a8" data-id="362ce62646804d19ae393c50ff8f56a8"><span><div id="362ce62646804d19ae393c50ff8f56a8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#362ce62646804d19ae393c50ff8f56a8" title="可能遇到的问题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">可能遇到的问题</span></span></h4><ul class="notion-list notion-list-disc notion-block-35850190abfa80d6abecd9903cd373a9"><li>提示开启沙箱——点一下set up设置沙箱（强制要求）</li><ul class="notion-list notion-list-disc notion-block-35850190abfa80d6abecd9903cd373a9"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35850190abfa8079a98cd109a8d2d290"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:434.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/2ce68111-c56f-4f08-b167-5c7fdd05c96a/image.png?table=block&amp;id=35850190-abfa-8079-a98c-d109a8d2d290&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=aiVfrM4ciRSFSM7MzWv1Ks2uu3yCJQsUu8edniNWEAY&amp;t=35850190-abfa-8079-a98c-d109a8d2d290" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-0ea09d3a2bed4bcea8d0e7b2ffe9ba5d"><li>vscode的codex插件，如果遇到提示没有选择文件夹路径，就先选一个项目目录</li><ul class="notion-list notion-list-disc notion-block-0ea09d3a2bed4bcea8d0e7b2ffe9ba5d"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35850190abfa804aaa03e43b66ded24f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/6cf71738-1c66-4698-867c-51f3e425162f/image.png?table=block&amp;id=35850190-abfa-804a-aa03-e43b66ded24f&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=MRHz54uxSbXsOeMp-l3baelGHCs27z6EgGUxEjWX2ck&amp;t=35850190-abfa-804a-aa03-e43b66ded24f" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><div class="notion-text notion-block-35850190abfa8012b211cff5e54acfc3">macos参考这个 <a class="notion-link" href="https://611996.xyz/codex_tutorial.html" target="_blank" rel="noopener noreferrer">Codex 使用教程 - 极速安装指南</a></div><hr class="notion-hr notion-block-5036d30a63f94253af31ed5696a26283"/><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa80bb93b3c54d3473db83" data-id="35850190abfa80bb93b3c54d3473db83"><span><div id="35850190abfa80bb93b3c54d3473db83" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80bb93b3c54d3473db83" title="五、其他"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、其他</span></span></h2><div class="notion-text notion-block-38650190abfa8088a579c80beb93e3c4">win系统需要提前安装nodejs</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa80cb8ab8edcd3e5fb2a8" data-id="35850190abfa80cb8ab8edcd3e5fb2a8"><span><div id="35850190abfa80cb8ab8edcd3e5fb2a8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80cb8ab8edcd3e5fb2a8" title="1、安装 Node.js 环境"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、安装 Node.js 环境</span></span></h3><div class="notion-text notion-block-35850190abfa805a929ce9ce10e2be30">Codex 需要 Node.js 环境才能运行。建议安装 LTS (长期支持) 版本。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa803f810fca7baeaa1fee" data-id="35850190abfa803f810fca7baeaa1fee"><span><div id="35850190abfa803f810fca7baeaa1fee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa803f810fca7baeaa1fee" title="官网下载（推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>官网下载（推荐）</b></span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-35850190abfa80159ec5d9398cefc9b6" style="list-style-type:decimal"><li>访问<a class="notion-link" href="https://nodejs.org/" target="_blank" rel="noopener noreferrer">nodejs.org</a></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-35850190abfa80c99c55ff099b3f9f65" style="list-style-type:decimal"><li>点击<b>&quot;LTS&quot;</b>版本进行下载</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-35850190abfa803281e6e39cb6b7e449" style="list-style-type:decimal"><li>运行<code class="notion-inline-code">.msi</code>文件按默认引导安装</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa80b4a783d9c5e2a2582b" data-id="35850190abfa80b4a783d9c5e2a2582b"><span><div id="35850190abfa80b4a783d9c5e2a2582b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80b4a783d9c5e2a2582b" title="命令行安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>命令行安装</b></span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa800f8486c5ebc407f0a6" data-id="35850190abfa800f8486c5ebc407f0a6"><span><div id="35850190abfa800f8486c5ebc407f0a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa800f8486c5ebc407f0a6" title="Windows 注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Windows 注意事项</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-35850190abfa8081b2b5e2b4a403ae46"><li>建议使用 PowerShell 而不是 CMD</li></ul><ul class="notion-list notion-list-disc notion-block-35850190abfa80c9b5e7e8a7f0f3075c"><li>如果遇到权限问题，尝试以管理员身份运行</li></ul><ul class="notion-list notion-list-disc notion-block-35850190abfa8069bf1ef0a01950bdfd"><li>某些杀毒软件可能会误报，需要添加白名单</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa809a876bf641360ac13c" data-id="35850190abfa809a876bf641360ac13c"><span><div id="35850190abfa809a876bf641360ac13c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa809a876bf641360ac13c" title="验证安装是否成功"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>验证安装是否成功</b></span></span></h4><div class="notion-text notion-block-35850190abfa806e890edfb4ab3f6252">安装完成后，打开 PowerShell 或 CMD，输入以下命令：</div><div class="notion-text notion-block-35850190abfa80689e04f856b6a0f74b"><b>如果显示版本号，说明安装成功了！</b></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa80a8b1b7d8e96fcb7154" data-id="35850190abfa80a8b1b7d8e96fcb7154"><span><div id="35850190abfa80a8b1b7d8e96fcb7154" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80a8b1b7d8e96fcb7154" title="2、安装 Codex"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、安装 Codex</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa80ae8fbcee784aa8a9f3" data-id="35850190abfa80ae8fbcee784aa8a9f3"><span><div id="35850190abfa80ae8fbcee784aa8a9f3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80ae8fbcee784aa8a9f3" title="安装 Codex"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>安装 Codex</b></span></span></h4><div class="notion-text notion-block-35850190abfa80e3904fe4d41d35b837">打开 PowerShell 或 CMD，运行以下命令：</div><div class="notion-text notion-block-35850190abfa804bb20ddf77a490e211">这个命令会从 npm 官方仓库下载并安装最新版本的 Codex。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa802086a8f1cc3116932f" data-id="35850190abfa802086a8f1cc3116932f"><span><div id="35850190abfa802086a8f1cc3116932f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa802086a8f1cc3116932f" title="提示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>提示</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-35850190abfa805583fbe85fe25b874a"><li>建议使用 PowerShell 而不是 CMD，功能更强大</li></ul><ul class="notion-list notion-list-disc notion-block-35850190abfa808b82cfc89aea609ee0"><li>如果遇到权限问题，以管理员身份运行 PowerShell</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35850190abfa8044ad3bdfb4f1c20622" data-id="35850190abfa8044ad3bdfb4f1c20622"><span><div id="35850190abfa8044ad3bdfb4f1c20622" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa8044ad3bdfb4f1c20622" title="验证 Codex 安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>验证 Codex 安装</b></span></span></h4><div class="notion-text notion-block-35850190abfa806baa36c79f88fe514e">安装完成后，输入以下命令检查是否安装成功：</div><div class="notion-text notion-block-35850190abfa80deae05fbae2077e3be"><b>如果显示版本号，恭喜你！Codex 已经成功安装了。</b></div><div class="notion-text notion-block-35850190abfa8054839bcb1818fb47e7">修改 <code class="notion-inline-code">C:/用户/&lt;用户名&gt;/.codex/config.toml</code> 和 <code class="notion-inline-code">C:/用户/&lt;用户名&gt;/.codex/auth.json</code> 文件。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35850190abfa80039d77cd7072512135" data-id="35850190abfa80039d77cd7072512135"><span><div id="35850190abfa80039d77cd7072512135" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80039d77cd7072512135" title="如需在 VSCode 中使用 Codex，上述步骤完成后，再在扩展中安装 Codex 插件即可。（上面的步骤不能跳过）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">如需在 VSCode 中使用 Codex，上述步骤完成后，再在扩展中安装 Codex 插件即可。（上面的步骤不能跳过）</span></span></h3><div class="notion-blank notion-block-35850190abfa808c8feec26cdb494434"> </div><hr class="notion-hr notion-block-577dc5789d3f403ea4a1a3a1fc2186b2"/><div class="notion-text notion-block-35850190abfa8048b3dbda1466ec7974"><b>1、安装 Node.js 环境</b></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa80ddbcfee45d3806bde0" data-id="35850190abfa80ddbcfee45d3806bde0"><span><div id="35850190abfa80ddbcfee45d3806bde0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80ddbcfee45d3806bde0" title="使用 Homebrew 安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用 Homebrew 安装</span></span></h2><div class="notion-text notion-block-35850190abfa80b68642ed0f70cd72d0"><em>或者访问 </em><em><a class="notion-link" href="https://nodejs.org/" target="_blank" rel="noopener noreferrer">nodejs.org</a></em><em> 下载 .pkg 安装包。</em></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-35850190abfa808aab7ddebff0de178d" data-id="35850190abfa808aab7ddebff0de178d"><span><div id="35850190abfa808aab7ddebff0de178d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa808aab7ddebff0de178d" title="验证安装是否成功"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>验证安装是否成功</b></span></span></h4><div class="notion-text notion-block-35850190abfa80fc976ec6af9f2e84e3">安装完成后，打开 Terminal，输入以下命令：</div><div class="notion-text notion-block-35850190abfa8035b1b4dcf19b25bd2f">复制</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa80bb8621e71a7af127e1" data-id="35850190abfa80bb8621e71a7af127e1"><span><div id="35850190abfa80bb8621e71a7af127e1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80bb8621e71a7af127e1" title="检查 Node.js 版本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">检查 Node.js 版本</span></span></h2><div class="notion-text notion-block-35850190abfa80f9ac00f9236240feed">node --version</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa8089984ccc42d196fe08" data-id="35850190abfa8089984ccc42d196fe08"><span><div id="35850190abfa8089984ccc42d196fe08" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa8089984ccc42d196fe08" title="检查 npm 版本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">检查 npm 版本</span></span></h2><div class="notion-text notion-block-35850190abfa80118316ef270e6a900a">npm --version</div><div class="notion-text notion-block-35850190abfa803196ddf0994c15b414"><b>如果显示版本号，说明安装成功了！</b></div><div class="notion-text notion-block-35850190abfa8029a17ff77c18287d58"><b>2
安装 Codex</b></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-35850190abfa803cb819e2f8d35e5f20" data-id="35850190abfa803cb819e2f8d35e5f20"><span><div id="35850190abfa803cb819e2f8d35e5f20" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa803cb819e2f8d35e5f20" title="安装 Codex"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>安装 Codex</b></span></span></h4><div class="notion-text notion-block-35850190abfa8034b59adc7f0e39f989">打开终端，运行以下命令：</div><div class="notion-text notion-block-35850190abfa80a3b2b8d577da8712fa">复制</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa80369139ce32baaebe30" data-id="35850190abfa80369139ce32baaebe30"><span><div id="35850190abfa80369139ce32baaebe30" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa80369139ce32baaebe30" title="使用 sudo 全局安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用 sudo 全局安装</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa800781cdc0ee35908e8c" data-id="35850190abfa800781cdc0ee35908e8c"><span><div id="35850190abfa800781cdc0ee35908e8c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa800781cdc0ee35908e8c" title="国内镜像（下载慢可用）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">国内镜像（下载慢可用）</span></span></h2><div class="notion-text notion-block-35850190abfa80eda57ce11f260a1613">在 macOS 上，全局安装通常需要管理员权限（sudo）。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-35850190abfa805fb177f0b675ede159" data-id="35850190abfa805fb177f0b675ede159"><span><div id="35850190abfa805fb177f0b675ede159" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa805fb177f0b675ede159" title="提示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>提示</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-35850190abfa80e88945c3fd1d8f08df"><li>如果提示 Enter password，请输入你的 Mac 登录密码（输入时不会显示字符）</li></ul><ul class="notion-list notion-list-disc notion-block-35850190abfa80a68c6bf46e5a913f94"><li>建议在安装完成后运行验证命令确保路径已生效</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-35850190abfa8057a0faccf09e7815c3" data-id="35850190abfa8057a0faccf09e7815c3"><span><div id="35850190abfa8057a0faccf09e7815c3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa8057a0faccf09e7815c3" title="验证 Codex 安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>验证 Codex 安装</b></span></span></h4><div class="notion-text notion-block-35850190abfa801bb612eb3fef0b5787">安装完成后，输入以下命令检查是否安装成功：</div><div class="notion-text notion-block-35850190abfa80f392d8ee475e62cb57"><b>如果显示版本号，恭喜你！Codex 已经成功安装了。</b></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35850190abfa803fafedc1623ef1bbb9" data-id="35850190abfa803fafedc1623ef1bbb9"><span><div id="35850190abfa803fafedc1623ef1bbb9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35850190abfa803fafedc1623ef1bbb9" title="启动 Codex"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">启动 Codex</span></span></h2><div class="notion-text notion-block-35850190abfa8031a435caabd810433a">如需在 VSCode 中使用 Codex，上述步骤完成后，再在扩展中安装 Codex 插件即可。（上面的步骤不能跳过）</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[codex 的api在vscode中的使用示例]]></title>
            <link>http://cbyer.eu.org/technology/codex在vscode中的使用示例</link>
            <guid>http://cbyer.eu.org/technology/codex在vscode中的使用示例</guid>
            <pubDate>Mon, 02 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[codex在vscode中的使用示例]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1d750190abfa81c0a074f3230482e9c6"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-30950190abfa8005bad1c1e10726c2dd" data-id="30950190abfa8005bad1c1e10726c2dd"><span><div id="30950190abfa8005bad1c1e10726c2dd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30950190abfa8005bad1c1e10726c2dd" title="codex使用教程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">codex使用教程</span></span></h2><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-30950190abfa801bb0ebc40604a01d7a" data-id="30950190abfa801bb0ebc40604a01d7a"><span><div id="30950190abfa801bb0ebc40604a01d7a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30950190abfa801bb0ebc40604a01d7a" title="1、访问https://sub.aimizy.com/register注册账号"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、访问<a class="notion-link" href="https://sub.aimizy.com/register" target="_blank" rel="noopener noreferrer">https://sub.aimizy.com/register</a>注册账号</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-30950190abfa801eb5cbd6acbf929c99"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/cacc8dbf-3048-43c4-a3dd-9b504073d5f1/image.png?table=block&amp;id=30950190-abfa-801e-b5cb-d6acbf929c99&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=fs2uYa-3sSdMexKyqaYd4P-jQMjTv5aoiplsJ8jyz6w&amp;t=30950190-abfa-801e-b5cb-d6acbf929c99" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-30950190abfa80419eb2d3401a2b58e5" data-id="30950190abfa80419eb2d3401a2b58e5"><span><div id="30950190abfa80419eb2d3401a2b58e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30950190abfa80419eb2d3401a2b58e5" title="2、兑换"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、兑换</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-30950190abfa80e7856af62d11780b1f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/6ef84865-b513-415b-876c-d82e6bafb0f5/image.png?table=block&amp;id=30950190-abfa-80e7-856a-f62d11780b1f&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=xkoXww2U3KzV7leM35XHbsnZpFfpXgoqsy2LxUlJNSs&amp;t=30950190-abfa-80e7-856a-f62d11780b1f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-30950190abfa805bbf14f94eedca92c9" data-id="30950190abfa805bbf14f94eedca92c9"><span><div id="30950190abfa805bbf14f94eedca92c9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30950190abfa805bbf14f94eedca92c9" title="3、创建api密钥——注意选订阅！！！"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3、创建api密钥——注意选订阅！！！</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-30950190abfa8001928df7ddf80f18ba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/0142ac96-7d86-430e-93b8-97164c6d05c9/image.png?table=block&amp;id=30950190-abfa-8001-928d-f7ddf80f18ba&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=HBQdaHmc4yF03Qn8Z0nD06avtGg8eZ05xeEcSTYESFI&amp;t=30950190-abfa-8001-928d-f7ddf80f18ba" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-30950190abfa80d6887dcc151711ff40"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:507.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/8ec1f39f-6bd1-4358-91ba-5404002ed2c9/image.png?table=block&amp;id=30950190-abfa-80d6-887d-cc151711ff40&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=dU8jBFJ_a7QwMEuj81zXkFSaOZQzt4xZZApOxzwIimI&amp;t=30950190-abfa-80d6-887d-cc151711ff40" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-32850190abfa80658dfec64fa6268273">这里是重点！！！多少英雄在此翻车，如果你有余额就选余额</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-33650190abfa8081bfc5c694c6742728"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:371.96875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/6b2c52ee-3b34-420d-a00f-ab0061b9699f/image.png?table=block&amp;id=33650190-abfa-8081-bfc5-c694c6742728&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=EQHOIFY6vV9HMEGQzmbC1a10UmbjSmK-H9pzQEfBTzY&amp;t=33650190-abfa-8081-bfc5-c694c6742728" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-30950190abfa80769658f9ceeb7dd243" data-id="30950190abfa80769658f9ceeb7dd243"><span><div id="30950190abfa80769658f9ceeb7dd243" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30950190abfa80769658f9ceeb7dd243" title="4、vscode为例（需使用codex插件）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4、vscode为例（需使用codex插件）</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-32850190abfa80efaae9e6ba22bca70b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/e44607ac-2cfa-4790-873d-9b8c32850306/image.png?table=block&amp;id=32850190-abfa-80ef-aae9-e6ba22bca70b&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=B_MkYJXdiNeUW0dRpoq5vUjpBH5m6DTyJ15EjSH_Un0&amp;t=32850190-abfa-80ef-aae9-e6ba22bca70b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-32850190abfa800e81b4ed89b6985a29"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/6cfc49af-7bb9-4ce8-a8bc-e54e634f8a8c/image.png?table=block&amp;id=32850190-abfa-800e-81b4-ed89b6985a29&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=3mPzi1BV_rE0Cw18JQ4BppGtw2D0f4dpo2tfh1DuZQ4&amp;t=32850190-abfa-800e-81b4-ed89b6985a29" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-32850190abfa806a982cff2475824b5a">以win为例，路径如下，自己找一下</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-30950190abfa80f4b1bdf130d7f09629"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:433.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/9bc9b3f1-bc7f-4d13-9831-d3582eb02934/image.png?table=block&amp;id=30950190-abfa-80f4-b1bd-f130d7f09629&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=zr43VLyn1vVbwBV6GrVFA3OgC1GysEx0118uPtEZ-4E&amp;t=30950190-abfa-80f4-b1bd-f130d7f09629" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-32850190abfa80b5b988d501cca112b4">config.toml</div><div class="notion-text notion-block-30950190abfa80999748fde6dae90641">auth.json（需要自己创建）</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-30950190abfa80acae84e8ff41e7b0d0" data-id="30950190abfa80acae84e8ff41e7b0d0"><span><div id="30950190abfa80acae84e8ff41e7b0d0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#30950190abfa80acae84e8ff41e7b0d0" title="5、模型显示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5、模型显示</span></span></h4><div class="notion-text notion-block-30950190abfa805aac01c3c504a8d9a0">vscode的模型会显示自定义，鼠标放上去就是gpt-5.4。如果选其他的模型，要改回gpt-5.4就得在配置文件里改了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-30950190abfa8026995aca9c29eebf6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:141.96875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/67392baa-e623-4b88-92e2-4661581312e8/image.png?table=block&amp;id=30950190-abfa-8026-995a-ca9c29eebf6b&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=tHenuy375lf74u0O-Zi20KDzWY1j0SRNZu2L1OLeevY&amp;t=30950190-abfa-8026-995a-ca9c29eebf6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-32050190abfa8017888dfcce43fc5a4b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:254.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/1928a097-8ebe-4565-94c9-de9d1eca323f/image.png?table=block&amp;id=32050190-abfa-8017-888d-fcce43fc5a4b&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=1rZJrMXKMSE9IiZo9K7H4YOlE1VtXQCD4wgLSS8ruzc&amp;t=32050190-abfa-8017-888d-fcce43fc5a4b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-32050190abfa80bcbf28c51d02d87f79">可能遇到的问题-点一下set up设置沙箱（强制要求）
</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-32050190abfa80069141f2c2a5b09753"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:434.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/2ce68111-c56f-4f08-b167-5c7fdd05c96a/image.png?table=block&amp;id=32050190-abfa-8006-9141-f2c2a5b09753&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=wJHowAkuDdtgfvcjcfKnPMLkxtwjbwTaLpqwfWIqn2o&amp;t=32050190-abfa-8006-9141-f2c2a5b09753" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-32250190abfa805d9ab4e0587af7baaf">最后，附一个小龙虾的配置，供参考
</div><div class="notion-text notion-block-32250190abfa8060874ff7beabc56ae4">~/.openclaw/openclaw.json这个文件里</div><div class="notion-blank notion-block-33150190abfa80809556ccb8b672357c"> </div><div class="notion-text notion-block-33150190abfa80ef9e86fb17e6f53b53"><b>贴一个友商大佬的教程，参考一下</b>
<a class="notion-link" href="https://611996.xyz/codex_tutorial.html" target="_blank" rel="noopener noreferrer">https://611996.xyz/codex_tutorial.html</a></div><div class="notion-blank notion-block-33150190abfa80229a18d1c50bd63ce4"> </div><div class="notion-blank notion-block-33150190abfa8032a4fbc039c012ebf6"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[群晖7.2-acme部署证书并自动更新]]></title>
            <link>http://cbyer.eu.org/technology/ssl_acme</link>
            <guid>http://cbyer.eu.org/technology/ssl_acme</guid>
            <pubDate>Mon, 01 Jan 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[群晖7.2-acme自动更新并部署证书]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1d750190abfa81129e1beb1f59ddf9ee"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-blank notion-block-1d750190abfa80a38af6e54e2853ae93"> </div><div class="notion-callout notion-gray_background_co notion-block-1d750190abfa802bb234e285aff9be30"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">前言：
折腾一番脚本，最终发现，容器已经具备了<span class="notion-red">“设置一次自动更新并部署证书到群晖”</span>的强大功能，一劳永逸~
可真是：踏破铁鞋无觅处，得来全不费工夫~</div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80e3b961fc78be09a3e7" data-id="1d750190abfa80e3b961fc78be09a3e7"><span><div id="1d750190abfa80e3b961fc78be09a3e7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80e3b961fc78be09a3e7" title="📝 一劳永逸——关于群晖上部署acme.sh项目自动renew证书并生效的记录"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📝 <span class="notion-red">一劳永逸</span>——关于群晖上部署acme.sh项目自动renew证书并生效的记录</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1d750190abfa80558498dfdb5af53334" data-id="1d750190abfa80558498dfdb5af53334"><span><div id="1d750190abfa80558498dfdb5af53334" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80558498dfdb5af53334" title="🤗 上干货-以cloudflare上托管域名为例"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗 <span class="notion-blue"><span class="notion-default_background"><b>上干货-以cloudflare上托管域名为例</b></span></span></span></span></h3><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa808a9a17db38a8cfec48" data-id="1d750190abfa808a9a17db38a8cfec48"><span><div id="1d750190abfa808a9a17db38a8cfec48" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa808a9a17db38a8cfec48" title="一、群晖上跑一个docker-compose容器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、群晖上跑一个docker-compose容器</span></span></h2><ul class="notion-list notion-list-disc notion-block-1d750190abfa8093b6a2df934a719062"><li>复制上述配置，并修改成自己的相关参数，按照下图一路操作，直到容器运行</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa8001a85aeb295f21f74b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/62b27921-05d8-4e15-8f26-2af5180aa9d4/image.png?table=block&amp;id=1d750190-abfa-8001-a85a-eb295f21f74b&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=fjURD-g1WJOWf87wCX7BgN9Mw5AonzXLD0n01eaznxI&amp;t=1d750190-abfa-8001-a85a-eb295f21f74b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80d7baffd5cad7470c1c" data-id="1d750190abfa80d7baffd5cad7470c1c"><span><div id="1d750190abfa80d7baffd5cad7470c1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80d7baffd5cad7470c1c" title="二、进入容器执行生成证书部署到群晖的命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、进入容器执行生成证书部署到群晖的命令</span></span></h2><ul class="notion-list notion-list-disc notion-block-1d750190abfa80ca9433d3c9f5e20a76"><li>当容器运行成功后，只需要简单运行几个生成证书相关的命令就好了</li></ul><ul class="notion-list notion-list-disc notion-block-1d750190abfa8060b552e8801854ed21"><li><span class="notion-red"><b>1、进入容器内</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-1d750190abfa809483e1d73111645fce"><li>2、更新一下acme</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa80f3a19ad088913737e6"><div style="position:relative;display:flex;justify-content:center;align-self:start;width:345.977294921875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/5f0d12c5-6090-48de-8934-2d0e222a5449/image.png?table=block&amp;id=1d750190-abfa-80f3-a19a-d088913737e6&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=b4EZA8Rlwt4gSPBDI9qZNVUPwqYy3DSI87EsinV5hUQ&amp;t=1d750190-abfa-80f3-a19a-d088913737e6" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-1d750190abfa80dea20df169ca466fdc"><li>3、随意注册一个用户（使用自己的邮箱或者随便一个，不注册也行，但可能会有提示)</li></ul><ul class="notion-list notion-list-disc notion-block-1d750190abfa801abd9ade7a60d7d9b0"><li>4、生成证书（可以单独只生成一个证书，也可以一次创建多个证书，命令中-d *.abc.com可以删除，也可以类比添加-d ds918.abc.com</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa807dadddd27200639d54"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/89e1f5aa-5fb1-4dc5-baed-32ecfbbac413/image.png?table=block&amp;id=1d750190-abfa-807d-addd-d27200639d54&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=AWj8sPUV8TMfltdlNBN7gP2s7DVdURqhfYcegCKM2lY&amp;t=1d750190-abfa-807d-addd-d27200639d54" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-1d750190abfa802b8b73f6c42e3e1874"><li>5、部署证书到群晖，成功后会有如下提示</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa8051bbdafbc8d03f5155"><div style="position:relative;display:flex;justify-content:center;align-self:start;width:345.9659118652344px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/488fcf32-e7d1-4dc5-a3c1-102b7a09e0dd/image.png?table=block&amp;id=1d750190-abfa-8051-bbda-fbc8d03f5155&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=T9dAv4PfG_No5_E56Hw1rSVXpCb0blp3Rf1_yN8TBwQ&amp;t=1d750190-abfa-8051-bbda-fbc8d03f5155" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1d750190abfa8075af65c551be5f9a43"> </div><ul class="notion-list notion-list-disc notion-block-1d750190abfa8049a032f18658a8ceb9"><li><span class="notion-red">6、关于自动更新部分</span></li></ul><ul class="notion-list notion-list-disc notion-block-1d750190abfa8029a848e22e0b247daa"><li>到这里去看证书，应该就已经成功部署了。后续就不再需要手动执行命令或者添加定时计划之类的了，因为容器内已经生成了一个定时命令</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa803bb6f9e949bb15cb1d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/34c74002-787d-4aa5-a702-86e6f2200283/image.png?table=block&amp;id=1d750190-abfa-803b-b6f9-e949bb15cb1d&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=3K9g5onAxnrYkTDtMw-9gBo2mP_rXUcIL5aRG-viQYI&amp;t=1d750190-abfa-803b-b6f9-e949bb15cb1d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1d750190abfa80149a17d00354b4133c">上述命令可以手动执行验证，会提示添加<code class="notion-inline-code">--force</code>参数强制执行，如果强制执行，就会重新生成证书，然后自动部署到群晖并生效。</div><div class="notion-text notion-block-1d750190abfa8051b03ed5dbb9d1cc2e">如何验证定时是否生效，可以修改定时时间如图每天15点20执行检查更新，可以在容器内通过<code class="notion-inline-code">crontab -e</code>命令修改成未来5分钟进行测试，如图</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa802c98a8f85ace87affa"><div style="position:relative;display:flex;justify-content:center;align-self:start;width:345.9886474609375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/9f1ae4b3-8680-43e8-aea5-8d35507a6687/image.png?table=block&amp;id=1d750190-abfa-802c-98a8-f85ace87affa&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=gCR4fSFfYqBHfvyBrfJWz6fZAIsur9_fE-MGmbKKH1A&amp;t=1d750190-abfa-802c-98a8-f85ace87affa" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa80aa82bdf34336092f54"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/22f5be58-d15b-4119-a61b-dae83e21ba6a/image.png?table=block&amp;id=1d750190-abfa-80aa-82bd-f34336092f54&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=Ye4zuUBibwAx7vBTCX_gmVsQHOVsIx73ajL40mpnNXw&amp;t=1d750190-abfa-80aa-82bd-f34336092f54" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1d750190abfa8083a9f3c9c8f982a846">进入上述界面后，按insert键，修改时间后，按Esc键，在按shift+:组合键，输入wq，回车保存退出。</div><div class="notion-text notion-block-1d750190abfa802092f6e30d9db83d86">等到时间后3-5分钟，检查容器日志即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1d750190abfa802c818fd6f53e8f7a63"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://file.notion.com/f/f/c7391011-8cb8-4069-801e-2e7319462696/b5671c5e-1112-45a5-8e53-b31ee4431f6d/image.png?table=block&amp;id=1d750190-abfa-802c-818f-d6f53e8f7a63&amp;spaceId=c7391011-8cb8-4069-801e-2e7319462696&amp;expirationTimestamp=1788948000000&amp;signature=x7B3M2R_P7DoiOkMQFKIbeh8ovy0AANefEhz7ercdqg&amp;t=1d750190-abfa-802c-818f-d6f53e8f7a63" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-1d750190abfa80bb932dc68812a6758e"><li>CF域名商的也可以参考<a class="notion-link" href="https://u.sb/acme-sh-ssl/" target="_blank" rel="noopener noreferrer">https://u.sb/acme-sh-ssl/</a>，使用区域API_token（<code class="notion-inline-code">CF_Token，CF_Account_ID，CF_Zone_ID</code>三个参数），替换CF_KEY和CF_Email</li></ul><ul class="notion-list notion-list-disc notion-block-1d750190abfa80b08796f6d2a543d8b5"><li>其他域名商请自行搜索相关教程</li><ul class="notion-list notion-list-disc notion-block-1d750190abfa80b08796f6d2a543d8b5"><div class="notion-blank notion-block-1d750190abfa8000979af0b536780134"> </div></ul></ul></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一键安装tcping的脚本]]></title>
            <link>http://cbyer.eu.org/technology/tcping_one_click</link>
            <guid>http://cbyer.eu.org/technology/tcping_one_click</guid>
            <pubDate>Mon, 01 Jan 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[tcping一键安装，快速使用，支持arm、amd机器]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1d750190abfa81cc9f01c67ccd43ce5c"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80508c5cd09b2bc0fa41" data-id="1d750190abfa80508c5cd09b2bc0fa41"><span><div id="1d750190abfa80508c5cd09b2bc0fa41" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80508c5cd09b2bc0fa41" title="😀一键安装tcping的脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>😀一键安装tcping的脚本</b></span></span></h2><div class="notion-text notion-block-1d750190abfa805fa07af98366c7eb62">或者</div><div class="notion-text notion-block-1d750190abfa80d19926ff8418d65e54">github地址：</div><div class="notion-text notion-block-1d750190abfa8056ba8ad9a567f9a63f"><a class="notion-link" href="https://github.com/fsyllkn/tcping" target="_blank" rel="noopener noreferrer">https://github.com/fsyllkn/tcping</a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80b49bc6ecf2c19e944e" data-id="1d750190abfa80b49bc6ecf2c19e944e"><span><div id="1d750190abfa80b49bc6ecf2c19e944e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80b49bc6ecf2c19e944e" title="📝 手动安装方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📝 手动安装方式</span></span></h2><ul class="notion-list notion-list-disc notion-block-1d750190abfa803d9e0ad169c54ff1cd"></ul><div class="notion-text notion-block-1d750190abfa800c9e02d6efe7725a0a"><b>1.以root账户登陆，先更新系统软件源，防止系统过于精简；</b></div><div class="notion-text notion-block-1d750190abfa80dc9237e6e6669c36c8"><b>1.1 CentOS系统 用这个</b></div><div class="notion-text notion-block-1d750190abfa8032b37bc7be81e43713"><b>1.2Debian/Ubuntu系统 用这个</b></div><div class="notion-text notion-block-1d750190abfa80a68fd0c0045952291d"><b>2、安装依赖：tcptraceroute和bc</b></div><div class="notion-text notion-block-1d750190abfa809281e0c82c11a6221f"><b>2.1CentOS系统 用这个</b></div><div class="notion-text notion-block-1d750190abfa801ba368ec0ebd75ba27"><b>2.2Debian/Ubuntu系统 用这个</b></div><div class="notion-text notion-block-1d750190abfa80edb75be76cfd095967"><b>3、安装TCPING：</b></div><div class="notion-text notion-block-1d750190abfa8034a6bdc5076356aeff"><b>3.1切换进入目录/usr/bin</b></div><div class="notion-text notion-block-1d750190abfa8034ad05d26550b705e9"><b>3.2下载TCP-PING可执行文件，并重命名为tcping</b></div><div class="notion-text notion-block-1d750190abfa807ba95af4feb4c9895e"><b>3.3 赋予tcping执行权限</b></div><div class="notion-text notion-block-1d750190abfa80ab8903c91f95a62046"><b>4.测试TCPING</b></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[甲骨文云、digitalocean家的vps开启ipv6]]></title>
            <link>http://cbyer.eu.org/technology/enable_ipv6</link>
            <guid>http://cbyer.eu.org/technology/enable_ipv6</guid>
            <pubDate>Mon, 01 Jan 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[甲骨文云、digitalocean家的vps开启ipv6]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1d750190abfa818a819ac9e83049a5e4"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80958db6dad8b952f0ac" data-id="1d750190abfa80958db6dad8b952f0ac"><span><div id="1d750190abfa80958db6dad8b952f0ac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80958db6dad8b952f0ac" title="😀 甲骨文云、digitalocean家的vps开启ipv6"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>😀 甲骨文云、digitalocean家的vps开启ipv6</b></span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80ba9365e3c9bf1dcf02" data-id="1d750190abfa80ba9365e3c9bf1dcf02"><span><div id="1d750190abfa80ba9365e3c9bf1dcf02" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80ba9365e3c9bf1dcf02" title="DD后的Debian11、12开机自动开启ipv6"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">DD后的Debian11、12开机自动开启ipv6</span></span></h2><div class="notion-text notion-block-1d750190abfa80e6809dee5eb0a0ed51">1、备份保存一下配置：</div><div class="notion-text notion-block-1d750190abfa803cb4f5d1044bf5d275">2、echo一键导入：</div><div class="notion-text notion-block-1d750190abfa80538882f82ac4ca3a0b">注意 <code class="notion-inline-code">Name=enp0s3</code>，要通过命令 <span class="notion-red"><code class="notion-inline-code">ip a</code></span> 查询一下</div><div class="notion-text notion-block-1d750190abfa808bab93e64247971457">3、系统设置</div><div class="notion-text notion-block-1d750190abfa801a96fff6496cf772ea">重启之前，需要在甲骨文web页面开启ipv6</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1d750190abfa80b2a531d0327030c68d" data-id="1d750190abfa80b2a531d0327030c68d"><span><div id="1d750190abfa80b2a531d0327030c68d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80b2a531d0327030c68d" title="Digital_Ocean开机自动开启ipv6"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><code class="notion-inline-code">Digital_Ocean</code>开机自动开启ipv6</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1d750190abfa80808661e3993c489150" data-id="1d750190abfa80808661e3993c489150"><span><div id="1d750190abfa80808661e3993c489150" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa80808661e3993c489150" title="一、开启IPv6"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>一、开启IPv6</b></span></span></h3><div class="notion-text notion-block-1d750190abfa80eab4bde3efda89da0c">很容易，登录<code class="notion-inline-code">DigitalOcean Contorl Panel</code></div><div class="notion-text notion-block-1d750190abfa80609137f95a39fedee5">选择需要开启IPv6的<code class="notion-inline-code">Droplet</code></div><div class="notion-text notion-block-1d750190abfa80ebb635c59bd1714730">选择<code class="notion-inline-code">Settings</code></div><div class="notion-text notion-block-1d750190abfa80c5a316f047ee29f415">点击<code class="notion-inline-code">Public IPv6 Network</code>下的<code class="notion-inline-code">Enable</code></div><div class="notion-text notion-block-1d750190abfa808aac40c29d26c1a507">等待几秒钟就会出现分配好的IPv6地址等信息，比如我的：</div><div class="notion-text notion-block-1d750190abfa8088b9deecddaed13d83"><b>注意：</b></div><ul class="notion-list notion-list-disc notion-block-1d750190abfa8073a709c2cdde09c6a0"><li>此IPv6地址不需要重启服务器即已生效</li></ul><ul class="notion-list notion-list-disc notion-block-1d750190abfa80a8889af9ba62c2ebd4"><li>像我的IPv6地址这里显示的是 2604:a880:1:20::13:c001/64，而实际使用时是不需要后面的/64的，即我的IPv6地址为 2604:a880:1:20::13:c001</li></ul><div class="notion-text notion-block-1d750190abfa80e395c1e69095cb03b3">此时从本地计算机<code class="notion-inline-code">ping</code>这个 <code class="notion-inline-code">IPv6</code>地址是<code class="notion-inline-code">ping</code>不通的，如：</div><div class="notion-text notion-block-1d750190abfa80fc94dfeb45bedac451">会出现：</div><div class="notion-text notion-block-1d750190abfa806da705deba74fb8d04"><b>其实原因是：</b><code class="notion-inline-code">Digital_Ocean</code><b>虽然已经将此IPv6地址分配给这个</b><code class="notion-inline-code"><b>Droplet</b></code><b>，但此</b><code class="notion-inline-code"><b>Droplet</b></code><b>服务器网卡中还未更新IPv6地址。</b></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1d750190abfa806ba80eef62bbfbe083" data-id="1d750190abfa806ba80eef62bbfbe083"><span><div id="1d750190abfa806ba80eef62bbfbe083" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa806ba80eef62bbfbe083" title="二、修改服务器IPv6配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>二、修改服务器IPv6配置</b></span></span></h3><div class="notion-text notion-block-1d750190abfa8031b46bd438c08c2682">使用这个命令可以看到服务器网卡目前设置的IPv6地址：</div><div class="notion-text notion-block-1d750190abfa80cea4a0decbe4c2be71">可以看到例如：</div><div class="notion-text notion-block-1d750190abfa802e8fc7c35be046f834"><b>解决</b><code class="notion-inline-code"><b>ping</b></code><b>不通的方法就是手动配置IPv6地址。</b></div><div class="notion-text notion-block-1d750190abfa80a186d0c1ad3d9c31e0">首先配置IPv6地址：</div><div class="notion-text notion-block-1d750190abfa80beacf6c9fecebda640">然后配置IPv6网关：</div><div class="notion-text notion-block-1d750190abfa805f90e3c47e9a3d33c8">这样再<code class="notion-inline-code">ping</code>自己服务器的IPv6地址就能<code class="notion-inline-code">ping</code>通了，不过服务器重启后又会要重复上述步骤。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1d750190abfa8037a48be32d309e2e4e" data-id="1d750190abfa8037a48be32d309e2e4e"><span><div id="1d750190abfa8037a48be32d309e2e4e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1d750190abfa8037a48be32d309e2e4e" title="三、固化IPv6配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>三、固化IPv6配置</b></span></span></h3><div class="notion-text notion-block-1d750190abfa80649966dd21c0f5ed46">为了避免每次重启服务器都要重新配置IPv6，可以通过写入服务器网络配置文件的方式实现。</div><div class="notion-text notion-block-1d750190abfa80cf8e1cf44b514a54d3">Ubuntu下，编辑<code class="notion-inline-code">/etc/network/interfaces</code>文件：</div><div class="notion-text notion-block-1d750190abfa8050b808e0fa548ea755">将下面的内容添加到文件中：</div><div class="notion-text notion-block-1d750190abfa8074abc8f40e85e115d3"><b>注意：上面的</b><code class="notion-inline-code"><b>YOUR_PUBLIC_IPV6_ADDRESS</b></code><b>最后没有</b><code class="notion-inline-code"><b>/64</b></code></div><div class="notion-text notion-block-1d750190abfa8087b224c843de6d74fe">重启后即生效。</div><div class="notion-text notion-block-1d750190abfa802bb842f56c7631d1ba">这样即可正常使用此IPv6地址，甚至用来<code class="notion-inline-code">SSH</code>登录。</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>