Pi Official Docs

Windows

Pi 官方文档中文整理 · 待翻译,当前可能显示官方原文

本文基于官方 MIT 文档翻译整理,不代表 pi.dev 官方中文站。同步 commit:1287b69f,同步时间:2026/6/19

查看官方原文

Windows Setup

Pi requires a bash shell on Windows. Checked locations (in order):

  1. Custom path from ~/.pi/agent/settings.json
  2. Git Bash (C:\Program Files\Git\bin\bash.exe)
  3. bash.exe on PATH (Cygwin, MSYS2, WSL)

For most users, Git for Windows is sufficient.

Custom Shell Path

{
  "shellPath": "C:\\cygwin64\\bin\\bash.exe"
}