> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mossx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pi

> 检测并使用本机 pi。扩展只做检测，不代装。

Pi 走本机 `pi`。认证和模型留在 Pi 自己的目录（通常是 `~/.pi/`）。

打开 **设置 → 供应商管理 → CLI**，确认 PI CLI 显示 **已安装**。扩展**不会**代你安装，也不会改 `auth.json`。在系统终端用 `pi /login` 或按 Pi 文档填 Key。

<img src="https://mintcdn.com/mossx-docs/kz4nt5KFSKzkAZwe/images/vscode/provider-cli.png?fit=max&auto=format&n=kz4nt5KFSKzkAZwe&q=85&s=5db25777376fb6428e73b4b9c0ae471e" alt="CLI 检测页" width="100%" data-path="images/vscode/provider-cli.png" />

## 安装

```bash theme={null}
curl -fsSL https://pi.dev/install.sh | sh
pi --version
```

备选：

```bash theme={null}
npm install -g @earendil-works/pi-coding-agent
```

文档：[https://pi.dev/](https://pi.dev/)

装好后回到 CLI 页点 **重新检测**。找不到命令时，可设 `PI_BIN` / `PI_PATH` / `PI_CLI_PATH`，或把 `~/.pi/bin` 写进系统 `PATH`。

## 能力差异

相对 Claude Code：

* 没有规划模式
* MCP / Skills / 部分设置页以 Claude Code 为主
* 停止按钮会结束 `pi` 子进程
* 对话可用，但还没有本地历史索引；历史视图不会列出 Pi 会话

## 检测失败时

见 [检测与安装](/vscode/providers/cli)。

## 下一步

* [多供应商总览](/vscode/providers/overview)
* [发出第一条消息](/vscode/start/first-task)
