<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pi-Web on OHTLY Blog</title>
    <link>https://blog.ohtly.com/tags/pi-web/</link>
    <description>Recent content in Pi-Web on OHTLY Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Mon, 13 Jul 2026 09:44:56 +0800</lastBuildDate>
    <atom:link href="https://blog.ohtly.com/tags/pi-web/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Pi Web 配置 DeepSeek 与自定义工具</title>
      <link>https://blog.ohtly.com/posts/2026-07-13-pi-web-deepseek-custom-tools/</link>
      <pubDate>Mon, 13 Jul 2026 09:44:05 +0800</pubDate>
      <guid>https://blog.ohtly.com/posts/2026-07-13-pi-web-deepseek-custom-tools/</guid>
      <description>&lt;h2 id=&#34;背景&#34;&gt;&#xA;  背景&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e8%83%8c%e6%99%af&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/earendil-works/pi&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Pi Coding Agent&lt;/a&gt; 是一个开源的 AI 编程助手，69K+ Stars，MIT 协议。它的架构分三层：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://www.npmjs.com/package/@earendil-works/pi-ai&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@earendil-works/pi-ai&lt;/a&gt;&lt;/strong&gt; — 统一多 Provider LLM API&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://www.npmjs.com/package/@earendil-works/pi-agent-core&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@earendil-works/pi-agent-core&lt;/a&gt;&lt;/strong&gt; — Agent 运行时（Tool calling、状态管理）&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://www.npmjs.com/package/@earendil-works/pi-coding-agent&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@earendil-works/pi-coding-agent&lt;/a&gt;&lt;/strong&gt; — CLI + SDK&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/agegr/pi-web&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Pi Web&lt;/a&gt; 是社区开发的 Web UI，1.1K Stars。它通过 Pi SDK 直接创建 AgentSession，通过 SSE 推送流式事件到浏览器，不跑 CLI 子进程。&lt;/p&gt;&#xA;&lt;p&gt;同类项目还有 &lt;a href=&#34;https://github.com/jmfederico/pi-web&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;jmfederico/pi-web&lt;/a&gt;（支持远程 Machine/Fleet）和 &lt;a href=&#34;https://github.com/minghinmatthewlam/pi-gui&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;pi-gui&lt;/a&gt;（Electron 桌面版）。&lt;/p&gt;&#xA;&lt;h2 id=&#34;部署&#34;&gt;&#xA;  部署&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e9%83%a8%e7%bd%b2&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;环境要求：Node.js 22+。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git clone https://github.com/agegr/pi-web.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd pi-web&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm install&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm run dev&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;默认运行在 &lt;code&gt;http://localhost:30141&lt;/code&gt;。&lt;/p&gt;&#xA;&lt;h2 id=&#34;配置-deepseek-模型&#34;&gt;&#xA;  配置 DeepSeek 模型&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e9%85%8d%e7%bd%ae-deepseek-%e6%a8%a1%e5%9e%8b&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Pi 内置了 DeepSeek Provider，模型定义在 &lt;a href=&#34;https://github.com/earendil-works/pi/blob/main/packages/ai/src/providers/deepseek.models.ts&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;deepseek.models.ts&lt;/a&gt;，包含 &lt;code&gt;deepseek-v4-flash&lt;/code&gt; 和 &lt;code&gt;deepseek-v4-pro&lt;/code&gt;。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
