<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kimi | 进击之路 - Alan的个人博客</title><link>https://1991421.cn/tag/kimi/</link><atom:link href="https://1991421.cn/tag/kimi/index.xml" rel="self" type="application/rss+xml"/><description>Kimi</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>zh-CN</language><lastBuildDate>Wed, 19 Aug 2026 16:59:13 +0800</lastBuildDate><image><url>https://1991421.cn/media/sharing.png</url><title>Kimi</title><link>https://1991421.cn/tag/kimi/</link></image><item><title>Codex 接入 Kimi 模型配置与使用教程</title><link>https://1991421.cn/2026/08/19/codex-kimi-setup/</link><pubDate>Wed, 19 Aug 2026 16:59:13 +0800</pubDate><guid>https://1991421.cn/2026/08/19/codex-kimi-setup/</guid><description>&lt;blockquote>
&lt;p>Codex 默认使用 OpenAI 自家的模型，但也支持通过 model provider 接入第三方模型。Kimi Code 提供了兼容 Codex Responses API 的接口，下面记录一下使用 Kimi K3 作为 Codex 模型的配置方法。&lt;/p>
&lt;/blockquote>
&lt;h2 id="前置要求">
&lt;a class="heading-anchor-link" href="#%e5%89%8d%e7%bd%ae%e8%a6%81%e6%b1%82">前置要求&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="前置要求"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;ol>
&lt;li>已安装 Codex CLI：&lt;code>npm i -g @openai/codex&lt;/code>&lt;/li>
&lt;li>已通过 &lt;a href="https://www.kimi.com/code" target="_blank" rel="noopener">https://www.kimi.com/code&lt;/a> 进入 Kimi Code 控制台并创建 API Key&lt;/li>
&lt;li>当前终端可以正常运行 Codex，并且能够访问 &lt;code>https://api.kimi.com/coding/v1&lt;/code>&lt;/li>
&lt;/ol>
&lt;h2 id="配置文件">
&lt;a class="heading-anchor-link" href="#%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6">配置文件&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="配置文件"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;p>Codex 的用户级配置目录位于 &lt;code>~/.codex&lt;/code>。创建 &lt;code>kimi.config.toml&lt;/code>，将 Kimi Code 配置为一个模型供应商：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-toml" data-lang="toml">&lt;span class="line">&lt;span class="cl">&lt;span class="nx">model&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;k3&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">model_provider&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;kimi&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">model_context_window&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="mi">1048576&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">model_supports_reasoning_summaries&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="kc">false&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">web_search&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;disabled&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">[&lt;/span>&lt;span class="nx">model_providers&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">kimi&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">name&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;Kimi Code&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">base_url&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;https://api.kimi.com/coding/v1&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">env_key&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;KIMI_API_KEY&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">wire_api&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;responses&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nx">stream_idle_timeout_ms&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="mi">600000&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>这里的配置文件名和 profile 名称对应。&lt;code>kimi.config.toml&lt;/code> 放在 &lt;code>$CODEX_HOME&lt;/code> 下时，就可以通过 &lt;code>--profile kimi&lt;/code> 加载；如果没有设置 &lt;code>CODEX_HOME&lt;/code>，默认目录就是 &lt;code>~/.codex&lt;/code>。&lt;/p>
&lt;p>几个关键配置的作用如下：&lt;/p>
&lt;ul>
&lt;li>&lt;code>model = &amp;quot;k3&amp;quot;&lt;/code>：使用 Kimi K3 模型。&lt;/li>
&lt;li>&lt;code>model_provider = &amp;quot;kimi&amp;quot;&lt;/code>：引用下面的 &lt;code>[model_providers.kimi]&lt;/code> 配置。&lt;/li>
&lt;li>&lt;code>model_context_window = 1048576&lt;/code>：声明模型支持的上下文窗口大小，适合处理较大的代码库和较长的任务上下文。&lt;/li>
&lt;li>&lt;code>model_supports_reasoning_summaries = false&lt;/code>：关闭 reasoning summaries 能力声明，避免客户端按不兼容的格式处理响应。&lt;/li>
&lt;li>&lt;code>web_search = &amp;quot;disabled&amp;quot;&lt;/code>：关闭 Codex 的网页搜索能力，当前配置只使用 Kimi 的编码接口。&lt;/li>
&lt;li>&lt;code>base_url&lt;/code>：Kimi Code 的 Responses API 地址。&lt;/li>
&lt;li>&lt;code>env_key&lt;/code>：告诉 Codex 从哪个环境变量读取 API Key。&lt;/li>
&lt;li>&lt;code>wire_api = &amp;quot;responses&amp;quot;&lt;/code>：使用 Responses API 协议。&lt;/li>
&lt;li>&lt;code>stream_idle_timeout_ms = 600000&lt;/code>：将流式响应空闲超时设置为 600000 毫秒，也就是 10 分钟，给较长的编码任务留出更充足的等待时间。&lt;/li>
&lt;/ul>
&lt;h2 id="配置-api-key">
&lt;a class="heading-anchor-link" href="#%e9%85%8d%e7%bd%ae-api-key">配置 API Key&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="配置-api-key"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;p>在 &lt;code>~/.zshrc&lt;/code> 或 &lt;code>~/.bashrc&lt;/code> 中添加：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">export&lt;/span> &lt;span class="nv">KIMI_API_KEY&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;your-kimi-api-key&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>然后重新打开终端，或者执行下面的命令使配置生效：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">source&lt;/span> ~/.zshrc
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>如果使用的是 Bash，则执行 &lt;code>source ~/.bashrc&lt;/code>。API Key 只通过环境变量传递，不要直接写进提交到 Git 仓库的配置文件或 alias 中。&lt;/p>
&lt;h2 id="使用">
&lt;a class="heading-anchor-link" href="#%e4%bd%bf%e7%94%a8">使用&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="使用"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;p>配置完成后，通过 &lt;code>--profile&lt;/code> 参数启动 Kimi 版 Codex：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">codex --profile kimi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>启动后，Codex 会加载 &lt;code>$CODEX_HOME/kimi.config.toml&lt;/code>，并通过 &lt;code>https://api.kimi.com/coding/v1&lt;/code> 请求 Kimi K3。如果想使用 Codex 默认的 OpenAI 模型，直接运行不带 profile 的命令即可：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">codex
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="灵活切换---alias-快捷命令">
&lt;a class="heading-anchor-link" href="#%e7%81%b5%e6%b4%bb%e5%88%87%e6%8d%a2---alias-%e5%bf%ab%e6%8d%b7%e5%91%bd%e4%bb%a4">灵活切换 - alias 快捷命令&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="灵活切换---alias-快捷命令"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;p>每次输入 &lt;code>--profile kimi&lt;/code> 有点麻烦，可以在 Shell 配置中定义 alias：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">alias&lt;/span> &lt;span class="nv">codexkimi&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;codex --profile kimi&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>之后输入 &lt;code>codexkimi&lt;/code> 就会启动 Kimi 版 Codex，输入 &lt;code>codex&lt;/code> 则使用默认模型，不需要反复修改 TOML 配置文件。&lt;/p>
&lt;h2 id="实际体验">
&lt;a class="heading-anchor-link" href="#%e5%ae%9e%e9%99%85%e4%bd%93%e9%aa%8c">实际体验&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="实际体验"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;p>这套配置的重点不是修改 Codex 本身，而是利用 model provider 机制把请求切换到 Kimi Code。Kimi K3 的百万 Token 上下文窗口更适合代码库较大、上下文较长的任务；&lt;code>stream_idle_timeout_ms&lt;/code> 设置为 10 分钟后，长任务也不容易因为一段时间没有流式输出而过早超时。&lt;/p>
&lt;p>需要注意的是，&lt;code>web_search = &amp;quot;disabled&amp;quot;&lt;/code> 表示 Codex 不会使用网页搜索能力。如果任务依赖最新的网页资料，需要先自行准备资料，或者在不使用该 profile 时采用其他搜索工具。API 请求产生的费用也由 Kimi Code 账号承担，使用前应确认账户余额和服务条款。&lt;/p>
&lt;h2 id="写在最后">
&lt;a class="heading-anchor-link" href="#%e5%86%99%e5%9c%a8%e6%9c%80%e5%90%8e">写在最后&lt;/a>
&lt;button
class="heading-anchor"
type="button"
data-anchor="写在最后"
aria-label="复制锚点链接"
title="复制锚点链接"
>
&lt;span class="heading-anchor-wrap" aria-hidden="true">
&lt;svg class="heading-anchor-icon heading-anchor-icon-default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor">
&lt;path d="M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z">&lt;/path>
&lt;/svg>
&lt;svg class="heading-anchor-icon heading-anchor-icon-copied" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
&lt;path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm107.1 145.1L230.6 325.6c-6.2 6.2-16.4 6.2-22.6 0l-59-59c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l47.7 47.7 121.1-121.1c6.2-6.2 16.4-6.2 22.6 0s6.3 16.4.1 22.5z">&lt;/path>
&lt;/svg>
&lt;/span>
&lt;/button>
&lt;/h2>&lt;p>Codex 的 model provider 配置让切换 Kimi Code 变得很直接：准备好 API Key，放入 &lt;code>KIMI_API_KEY&lt;/code> 环境变量，再用 &lt;code>kimi.config.toml&lt;/code> 和 &lt;code>--profile kimi&lt;/code> 启动即可。对需要较大上下文窗口、又希望使用 Kimi 编码模型的场景，这是一种比较省事的接入方式。&lt;/p></description></item></channel></rss>