安装
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
PI 插件
更新插件:
pi update --extensions
插件列表
User packages:
npm:@juanibiapina/pi-powerbar
npm:@gotgenes/pi-permission-system
npm:pi-workspace-history
npm:@ff-labs/pi-fff
npm:pi-web-access
npm:pi-markdown-preview
npm:@narumitw/pi-lsp
npm:@narumitw/pi-plan-mode
npm:@narumitw/pi-subagents
npm:@narumitw/pi-goal
npm:@juicesharp/rpiv-todo
npm:@juicesharp/rpiv-ask-user-question
npm:@juicesharp/rpiv-advisor
插件简介描述
一键安装命令
pi install npm:@juanibiapina/pi-powerbar && pi install npm:@gotgenes/pi-permission-system && pi install npm:pi-workspace-history && pi install npm:@ff-labs/pi-fff && pi install npm:pi-web-access && pi install npm:pi-markdown-preview && pi install npm:@narumitw/pi-lsp && pi install npm:@narumitw/pi-plan-mode && pi install npm:@narumitw/pi-goal && pi install npm:@narumitw/pi-subagents && pi install npm:@juicesharp/rpiv-todo && pi install npm:@juicesharp/rpiv-ask-user-question && pi install npm:@juicesharp/rpiv-advisor
pi-permission-system插件配置
文件地址:~/.pi/agent/extensions/pi-permission-system/config.json
文件内容
{
"$schema": "https://raw.githubusercontent.com/gotgenes/pi-packages/main/packages/pi-permission-system/schemas/permissions.schema.json",
"debugLog": false,
"permissionReviewLog": false,
"yoloMode": false,
"piInfrastructureReadPaths": [
"~/.pi/agent",
"~/.pi/agent/*",
"~/AppData/Roaming/npm/node_modules/@earendil-works",
"~/AppData/Roaming/npm/node_modules/@earendil-works/*"
],
"permission": {
"*": "allow",
"grep": "deny",
"find": "deny",
"external_directory": {
"*": "ask",
"~/.pi/agent": "allow",
"~/.pi/agent/*": "allow"
},
"path": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"*.env.example": "allow",
"~/.ssh/*": "deny",
"$HOME/.ssh/*": "deny",
"~/.pi/agent/auth.json": "deny",
"~/.pi/agent/models.json": "deny",
"~/.codex/auth.json": "deny"
},
"bash": {
"*": "allow",
"Remove-Item *": "ask",
"rm *": "ask",
"del *": "ask",
"erase *": "ask",
"rd *": "ask",
"rmdir *": "ask",
"ri *": "ask",
"mv *": "ask",
"Move-Item *": "ask",
"Rename-Item *": "ask",
"Clear-Content *": "ask",
"Set-Content *": "ask",
"Out-File *": "ask",
"cmd /c del *": "ask",
"cmd /c erase *": "ask",
"cmd /c rd *": "ask",
"cmd /c rmdir *": "ask",
"cmd.exe /c del *": "ask",
"cmd.exe /c erase *": "ask",
"cmd.exe /c rd *": "ask",
"cmd.exe /c rmdir *": "ask",
"powershell *Remove-Item*": "ask",
"powershell.exe *Remove-Item*": "ask",
"pwsh *Remove-Item*": "ask",
"pwsh.exe *Remove-Item*": "ask",
"powershell *Move-Item*": "ask",
"powershell.exe *Move-Item*": "ask",
"pwsh *Move-Item*": "ask",
"pwsh.exe *Move-Item*": "ask",
"powershell *Rename-Item*": "ask",
"powershell.exe *Rename-Item*": "ask",
"pwsh *Rename-Item*": "ask",
"pwsh.exe *Rename-Item*": "ask",
"powershell *Clear-Content*": "ask",
"powershell.exe *Clear-Content*": "ask",
"pwsh *Clear-Content*": "ask",
"pwsh.exe *Clear-Content*": "ask",
"powershell *Set-Content*": "ask",
"powershell.exe *Set-Content*": "ask",
"pwsh *Set-Content*": "ask",
"pwsh.exe *Set-Content*": "ask",
"powershell *Out-File*": "ask",
"powershell.exe *Out-File*": "ask",
"pwsh *Out-File*": "ask",
"pwsh.exe *Out-File*": "ask",
"git clean *": "ask",
"git reset --hard *": "ask",
"git checkout -- *": "ask",
"git restore *": "ask"
}
}
}
Pi 接入Cline pass apikey
文件地址:~/.pi/agent/models.json
文件内容:
增加providers 即可,如果只有 “clinepass”,直接复制下文
{
"providers": {
"clinepass": {
"baseUrl": "https://api.cline.bot/api/v1",
"api": "openai-completions",
"apiKey": "sk-xxx",
"authHeader": true,
"headers": {
"x-client-type": "cline-cli"
},
"compat": {
"supportsStore": false,
"supportsDeveloperRole": false,
"supportsReasoningEffort": true,
"supportsStrictMode": false,
"maxTokensField": "max_tokens"
},
"models": [
{
"id": "cline-pass/deepseek-v4.1-flash",
"name": "DeepSeek V4.1 Flash (ClinePass)",
"reasoning": true,
"thinkingLevelMap": {
"off": "none",
"minimal": null,
"low": null,
"medium": null,
"high": "high",
"xhigh": null,
"max": "max"
},
"input": [
"text",
"image"
],
"contextWindow": 1000000,
"maxTokens": 384000,
"samplingParams": {
"provider": {
"order": [
"DeepSeek"
],
"allow_fallbacks": false
}
}
}
]
}
}
}
评论区