pulseaiclub /phi
A fast coding agent, rpc plugin, sub-agents, sloppy edits, and mcp
★ 1,005⑂ 60👁 4⑃ 439● 92▤ 58
+1
日增长
1,005
stars
60
forks
4
watchers
439
prs
92
issues
58
releases
README
- 15 MB · ~31 ms · sub-agent · 锚点编辑 · 权限门控 · 渐进式 MCP · PXB 插件 · 全屏审阅 & 代码选中 · OpenAI / Anthropic / Gemini !phi 欢迎界面 !phi TUI !phi diff 审阅 你可以通过 Skills(技能)、Extensions(扩展) 和 MCP 扩展它——不必做成插件框架。 - 赞助商 - 文档 - 快速开始 - 资源占用 - 配置 - 交互模式 - Diff 审阅 - 代码查看器 - 命令 - 会话 - 无头模式 - Skills(技能) - 权限 - Extensions(扩展) - MCP - 子代理 - 工具 - 项目结构 赞助商 想赞助 phi?联系 [email protected]。 phi 由 Infistar.cc 无限星河 赞助:一个 Key 打通主流模型,重度跑 agent 也不用算账。⚙️ 即插即用:配置 Base URL、API Key 与模型名称即可直接调用。🧩 全模型支持:单 Key 自由切换 Claude、GPT、Gemini、DeepSeek 等主流模型,不用再改配置。💰 实惠省心:部分模型低至官方 0.1 折,支持人民币结算与开票。🎁 phi 专属福利:通过专属链接注册即领 $5 体验金 👉免费 ~/.phi/config.yaml:整块模型配置 phi 直接给好,粘贴、填上 Key 就能跑。 models: - name: claude-opus-5-5 模型广场里任意模型 id api: Anthropic 无限星河走 Anthropic Messages base_url: https://infistar.cc api_key: sk-... 你的无限星河 Key(或用 PHI_API_KEY) - name: gpt-6-astra api: OpenAIResponses /v1/responses base_url: https://infistar.cc/v1 api_key: sk-... - name: gemini-3-pro api: Gemini base_url: https://infistar.cc api_key: sk-... default: true 🐼 合作推荐:买 AI 别花冤枉钱!怕买贵?怕假模型?怕被坑?花钱前先查【模真真】🏷️ 怕花冤枉钱买贵了?【比价】 2000+ 模型 · 35 万+ 渠道,官方订阅、按量 API 与套餐换算同台对比,哪家便宜直接排好。🛡️ 怕买到掺假、降智模型?【验真】 5000+ 中转站 · 10 万份报告,看真实用户口碑、查模型真假,查清套壳和降智。🧭 怕买号被坑?【买号/充值导航】 1200+ 号商 · 2 万+ 商品(成品号/代充/团队席位),买前看清价格、发货速度与售后质保。🎁 想找免费额度?【羊毛】 每天更新免费额度和羊毛活动,整理公益站合集,免费额度随时领。⭐ 全部免费 · 模真真自己不卖任何 AI 服务,排名只看数据 👉 去查一查:mozhenzhen.com 快速开始 安装最新发布版本(macOS / Linux): sh curl -fsSL https://raw.githubusercontent.com/pulseaiclub/phi/main/scripts/install.sh | bash Windows(PowerShell 5.1+): powershell irm https://raw.githubusercontent.com/pulseaiclub/phi/main/scripts/install.ps1 | iex 首次启动需要配置模型。使用下面这个命令打开配置编辑器(会创建 ~/.phi 目录结构并写入 ~/.phi/config.yaml): sh phi config 也可以设置环境变量做一次性运行: sh export PHI_MODEL=gpt-4o export PHI_API_KEY=sk-... 然后启动 TUI: sh phi 或者从源码构建(Go 1.26.3+,见 go.mod): sh make build 生成 ./phi make install 构建并安装到 $GOBIN 首次启动时,phi 会自动创建 ~/.phi/{bin,skills,extensions,session,jobs}。搜索工具 (fd、rg)缺失时会在后台下载到 ~/.phi/bin。 TUI 给模型提供四个核心工具——read、write、edit 和 bash——外加 grep、find、ls。模型用这些工具来完成你的请求。外部 HTTP 抓取在配置 MCP 后可用。 资源占用 精简只是底线——phi 还要启动即开、负载下仍省内存。phi 数字来自剥离的发布构建 (CGO_ENABLED=0,-ldflags="-s -w"),在 macOS arm64 上测得。其他 harness 用已公开的 Linux PSS / 交互式 PTY 数据。 首帧时间 空闲内存 · 1 个会话 空闲内存 · 10 个会话 | 指标 | phi | | --- | ---: | | 发布二进制 | 约 15 MB | | 空闲 RSS(1 个会话) | 约 21 MB | | 10 个空闲会话(RSS 总量) | 约 221 MB | | 首帧时间 | 约 31 ms(26–49 ms) | | 冷 go build(空 GOCACHE) | 约 5.5 s | | 热重建 | 约 0.7 s | | Go 源码(不含测试) | 约 22k 行 / 107 个文件 | | Go 包数量 | 32 | | 直接模块依赖 | 6(共 15 个模块) | | 链接运行时 | 仅系统库(无 Node / Electron / Python) | 配置 phi 读取 ~/.phi/config.yaml(标准 YAML)。环境变量可覆盖配置,用于一次性运行。 phi config 会在终端里打开全屏编辑器来编辑同一个文件;不保存就不落盘,保存前 的旧文件会留作 config.yaml.bak。 phi config 按键 ↑↓ ←→ 移动 / 切换取值 a 新增模型 ⏎ 编辑,或打开选择列表 d 删除当前行 esc 收起列表 / 退出 f 从服务商拉取模型列表 ^s 保存 s 保存 q 退出 留空表示「未设置」,也
Top issues
#446[feat]: ACP support2 comments · 2026-11-06#398[feat]: keep preset model metadata in sync from models.dev2 comments · 2026-10-27#533cmd: "phi mcp doctor" treats an empty MCP config as a failure (FAIL + exit 1)1 comments · 2026-11-15#429[feat]: add session rewind and discuss its UI entry point1 comments · 2026-11-03#509Add a `--model` flag to `phi run`0 comments · 2026-11-12#407Subagent Job recovery0 comments · 2026-10-31#406Subagent context reuse0 comments · 2026-10-31
Discussions
#253[88API] Provider compatibility and sponsorship inquiry for phi1 comments · 2026-09-29#71Welcome to phi Discussions!0 comments · 2026-08-17
Latest release
v0.29.9 v0.29.9 2026-11-12Removed - agent_cancel tool. agent_wait without timeout_sec blocks the turn until the job finishes, so the model never got a turn to call it; hung sub-agents now run until the session closes, which cancels all live jobs. Changed - Pickers now show a separator below the search field to distinguish filtering from results. - /code now opens a searchable file picker, with filenames and directory paths in the shared name/description layout. Selecting a file opens the source viewer; explicit /code path[:line] and /code @path still work. Added - The compaction marker in the transcript