Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
docs(guide): update the user guide for 0.0.3, with group pause and continue
leen.zhou1beab7fb7fd9
diff --git a/docs/assets/pibot-group-pause.gif b/docs/assets/pibot-group-pause.gifnew file mode 100644index 0000000..0005ddfBinary files /dev/null and b/docs/assets/pibot-group-pause.gif differdiff --git a/docs/assets/pibot-group-pause.mp4 b/docs/assets/pibot-group-pause.mp4new file mode 100644index 0000000..a9da42fBinary files /dev/null and b/docs/assets/pibot-group-pause.mp4 differdiff --git a/docs/guide/README.md b/docs/guide/README.mdindex 9bb53e4..d0a60d8 100644--- a/docs/guide/README.md+++ b/docs/guide/README.md@@ -1,8 +1,8 @@# Pi Bot 用户指南 · Pi Bot User Guide-Pi Bot 是一个桌面应用:一群有名字的 Bot 在你自己的电脑上干活。本指南适用于 Pi Bot 0.0.2,macOS、Windows 和 Linux。+Pi Bot 是一个桌面应用:一群有名字的 Bot 在你自己的电脑上干活。本指南适用于 Pi Bot 0.0.3,macOS、Windows 和 Linux。-Pi Bot is a desktop app where a team of named Bots works on your own computer. This guide covers Pi Bot 0.0.2 on macOS, Windows and Linux.+Pi Bot is a desktop app where a team of named Bots works on your own computer. This guide covers Pi Bot 0.0.3 on macOS, Windows and Linux.| # | 中文 | English ||---|---|---|@@ -23,6 +23,6 @@ Pi Bot is a desktop app where a team of named Bots works on your own computer. T| 15 | [自建中继](zh/15-self-hosting-relay.md) | [Self-hosting the relay](en/15-self-hosting-relay.md) || 16 | [在编辑器里用 Pi Bot(ACP)](zh/16-editor-acp.md) | [Using Pi Bot from your editor (ACP)](en/16-editor-acp.md) |-截图来自 Pi Bot 0.0.2 的测试实例,示例数据均为虚构。中文页面使用中文界面截图,英文页面使用英文界面截图;默认浅色外观,第 1 章有深色外观示例。标注「截图待补」的地方以文字说明为准。+截图来自 Pi Bot 的独立测试实例(0.0.1 到 0.0.3),示例数据均为虚构;个别截图和当前界面略有出入时,以文字说明为准。中文页面使用中文界面截图,英文页面使用英文界面截图;默认浅色外观,第 1 章有深色外观示例。标注「截图待补」的地方以文字说明为准。-Screenshots come from a Pi Bot 0.0.2 test instance with made-up sample data. Chinese pages use the Chinese interface and English pages the English interface; light appearance by default, with dark examples in chapter 1. Where a page says "Screenshot to be added", the text describes the screen.+Screenshots come from separate Pi Bot test instances (0.0.1 to 0.0.3) with made-up sample data; where a screenshot differs slightly from the current interface, the text is what counts. Chinese pages use the Chinese interface and English pages the English interface; light appearance by default, with dark examples in chapter 1. Where a page says "Screenshot to be added", the text describes the screen.diff --git a/docs/guide/en/01-getting-started.md b/docs/guide/en/01-getting-started.mdindex 8eacde1..0522721 100644--- a/docs/guide/en/01-getting-started.md+++ b/docs/guide/en/01-getting-started.md@@ -22,13 +22,13 @@ You also need a model: an API key for an online provider, a ChatGPT plan, or a m## Install-Download the package for your system from [pibot.space](https://pibot.space).+Download the package for your system from the [download page](https://pibot.space/en/download/).### macOS1. Open the `.dmg` and drag **Pi Bot** into the Applications folder.2. Open Pi Bot from Applications or Launchpad.-3. If macOS says the developer can't be verified, open System Settings › Privacy & Security and click **Open Anyway** near the bottom.+3. Pi Bot has not been notarized by Apple yet. If macOS says it can't verify Pi Bot, first check that you downloaded it from the official site. If you choose to continue, try opening it once, then find Pi Bot under System Settings › Privacy & Security and click **Open Anyway**. See the [Apple Support instructions](https://support.apple.com/en-us/102445).Pi Bot normally has no Dock icon. After you close the window you find it in the menu bar (see [Tray and background](#tray-and-background)).@@ -63,13 +63,17 @@ This page covers three things: a team of Bots, your data stays on your computer,### 2. Choose a model-"Which model should Pi use?" has three options:+"Which model should Pi use?" has four options:-- **OpenRouter** (Recommended): one key for many models, with a low-cost model that handles tools already picked. Messages go to OpenRouter, then to the model's vendor. Paste your key and click **Save & test**.+- **Recommended**: follows the language you picked. In English it is **OpenRouter**: one key for many models, with a low-cost model that handles tools already picked; messages go to OpenRouter, then to the model's vendor. In Chinese it is **DeepSeek**: the official API with DeepSeek V4.1 Flash picked; messages go straight to DeepSeek. Paste your key and click **Save & test**.-- **Local · Ollama**: fully offline; the model runs on this computer and your conversation stays here. Install Ollama first; if it isn't detected you get a link to the installation instructions and a **Check again** button.+- **ChatGPT plan**: use your ChatGPT plan's allowance, no API key needed. Choose **Continue with ChatGPT**, sign in in your browser and return to Pi Bot to pick a model (details in [9 · Models and keys](09-models-and-keys.md#sign-in-with-a-chatgpt-plan)).++ ++- **Local · Ollama**: install and start Ollama on this computer and download a model, then return to Pi Bot and click **Check again**. Once the service is detected, choose a model and continue. The screenshot shows the page before Ollama is detected.@@ -81,9 +85,9 @@ This page covers three things: a team of Bots, your data stays on your computer,-Keys are encrypted with this computer's system secret store and never shown again. If the matching environment variable is already set (for example `OPENROUTER_API_KEY`), the page says it was detected and offers **Import**.+Keys are encrypted with this computer's system secret store and never shown again. If the matching environment variable is already set (for example `OPENROUTER_API_KEY` or `DEEPSEEK_API_KEY`), the page says it was detected and offers **Import**.-Want to use a ChatGPT plan instead of an API key? Pick any working option here, then follow [9 · Models and keys](09-models-and-keys.md#sign-in-with-a-chatgpt-plan).+**Network proxy**: in some regions, model services such as Google and OpenAI need a proxy. Each online route has **Need a proxy? Set up a network proxy** below it, where you enter the proxy address; if this computer is already using a proxy, it is filled in for you and takes effect once you turn on **Use proxy**. When a model can't be reached, the error offers **Set up a network proxy** right there. You can change it later in Settings › General › Network proxy (see [9 · Models and keys](09-models-and-keys.md#local-models-and-custom-gateways)).### 3. Pick a Bot to start withdiff --git a/docs/guide/en/02-bots-and-roles.md b/docs/guide/en/02-bots-and-roles.mdindex 4919efd..d9cac1e 100644--- a/docs/guide/en/02-bots-and-roles.md+++ b/docs/guide/en/02-bots-and-roles.md@@ -7,6 +7,7 @@ On this page:- [Create a Bot](#create-a-bot)- [The Bot profile panel](#the-bot-profile-panel)- [Memory](#memory)+- [External agents](#external-agents)- [Import and sidebar groups](#import-and-sidebar-groups)## Create a Bot@@ -19,14 +20,18 @@ Click "+" at the top of the sidebar and choose **New Bot** (⌘1 / Ctrl+1).-"Pick a role" lists every built-in role; filter by category (Engineering, Product & design, Data & research, Content & marketing, Office & operations, General) or search. A role brings working norms, skills and default permissions. For example:+"Pick a role" lists the roles you can use; filter by category (Engineering, Product & design, Data & research, Content & marketing, Office & operations, General) or search. A role brings working norms, skills and default permissions. All roles:-- **Engineering**: Backend Developer, Frontend Developer, Full-stack Developer, Code Reviewer, DevOps / Ops, QA Engineer-- **Product & design**: Product Manager, UI / UX Designer, Presentation Designer, Image Designer-- **Data & research**: Researcher, Data Analyst-- **Content & marketing**: Copywriter, Social Media Manager, Technical Writer, Translator, Video Scriptwriter-- **Office & operations**: Personal Assistant, Project Manager, Recruiter / HR-- **General**: General Assistant, Tutor+- **Engineering**: Backend Developer, Frontend Developer, Full-stack Developer, Code Reviewer, DevOps / Ops, QA Engineer, Technical Writer, Plugin Builder+- **Product & design**: Product Manager, UI / UX Designer, Image Designer+- **Data & research**: Researcher, Data Analyst, Tutor+- **Content & marketing**: Copywriter, Social Media Manager, Presentation Designer, Translator, Video Scriptwriter+- **Office & operations**: Personal Assistant, Project Manager, Recruiter / HR, Proactive Assistant+- **General**: General Assistant++The installer ships the common ones (such as Full-stack Developer, QA Engineer, Code Reviewer, Researcher, Social Media Manager, Presentation Designer and Plugin Builder), which work offline. The other roles and group templates live in the **role library**: they appear next to the bundled ones and are downloaded the first time you pick them, after their official signature is checked. **Check role library** and **Refresh role library** above the list fetch the latest roles and new versions. You can also browse every role and group template in the [role library](https://pibot.space/en/roles/) on the website and click **Open in Pi Bot** to add one (needs Pi Bot 0.0.3 or later; the app asks you before adding it).++The **Proactive Assistant** (Wren) checks your calendar and to-dos on the schedule you set and only alerts you when something needs you; otherwise it stays quiet. It only reads and organizes, and never replies or changes your calendar for you. A mail connection comes in a later version.The Image Designer needs a model that can generate images, set up in Settings › Models & API keys; until then it can't be created.@@ -104,7 +109,17 @@ Ways to add memory:Memory is stored only on this computer and can be edited or deleted any time. Each run's work receipt lists which memories it used (see [3 · Chatting](03-chatting.md#work-receipts)).+## External agents++Coding agents already installed on your computer (Codex, Claude Agent, Cursor, OpenCode, or any agent that supports ACP) can join Pi Bot as Bots. In "Pick a role", choose the **External agents** category: Pi Bot checks which ones are installed (only their paths and versions; it never reads their accounts or chats). Pick one and follow **Add … as a Bot**.++- It uses its own sign-in and billing; Pi Bot never reads or stores its tokens.+- It runs in Pi Bot's sandbox and can only write to the topic's working folder. Windows has no command sandbox, so the card is marked **Runs without sandbox**.+- Sign-in or plan problems show up early: the profile and chat show **Sign in needed** or **Plan limited** with the sign-in command to run in a terminal (**Copy command**). Fix it, then click **Check again**, instead of finding out when a run fails.+## Import and sidebar groups++- **Import a .pibot file**: "+" › **Import a .pibot file**; you preview before importing. Multi-Bot or group templates import as a whole, as previewed.- **New sidebar group**: "+" › **New sidebar group** to organize the sidebar.diff --git a/docs/guide/en/03-chatting.md b/docs/guide/en/03-chatting.mdindex 59b1c3d..562ad76 100644--- a/docs/guide/en/03-chatting.md+++ b/docs/guide/en/03-chatting.md@@ -55,6 +55,7 @@ Execute / Plan only shares a row with the working folder: in a new topic you can- **Step rows**: for example "6 steps · Edit file, Run command, Use browser ×4"; expand to see each step.- **Approval cards**: actions that need your consent show up as cards in the chat (see [5 · Approvals and permissions](05-approvals-and-permissions.md)).- **Changed files**: "Changed 3 files this turn"; **View** opens the changes panel (see [4 · Working folders and changes](04-folders-and-changes.md)).+- **Attached files**: documents, pictures, sheets, decks, web pages, recordings and archives the Bot created this turn, and files it names in its reply or puts in the output folder, are attached under the reply by the program, without relying on the Bot to send them. A reply carries up to 10 files; a note says which folder holds the rest. A run that fails or is stopped still attaches the files it wrote. Edited source code isn't attached file by file; see the changed files instead.- **Web results**: when a development task produces a web page, a local HTML file or a web service, the Bot opens it in its own browser to check it; visual results get a screenshot self-check, and obvious layout errors are fixed before hand-off.## Work receipts@@ -77,7 +78,17 @@ The receipt is built from this computer's records (audit, changes, approvals, buBots can run commands in the background, such as a local preview server. The chat shows a **Running in background** card with the output line count and run time; you can **Open … in Bot browser**, **View output** or **Stop** it.-+### Start, inspect, and stop a local preview++1. Verify the working folder at the top of the chat and switch to Execute. In a test project, ask: “Run a local preview in the background. Listen only on 127.0.0.1 and tell me the port.”+2. On the approval card, verify the command, directory, and port. Choose Allow this time if they match the task.+3. The green Running in background card appears. Use Open … in Bot browser to preview the detected port, or View output to inspect the logs.++++4. When finished, choose Stop and check that the card shows the stopped state. The stopped process no longer serves the page.++If the card shows a process without a port, check the output for a port conflict or missing runtime. Request a different port and review the new approval. The browser shortcut appears for detected loopback listeners started by the Bot.Background commands run for up to 2 hours by default (Settings › General › Background commands › Total time limit), and also end when you stop them, delete the chat, archive the Bot or quit the app. They may only listen on this computer (127.0.0.1). Starting one always needs your approval.@@ -85,9 +96,16 @@ Background commands run for up to 2 hours by default (Settings › General › BClick **Browser** at the top of the chat to open the Bot browser panel and watch the page the Bot is looking at.-> Screenshot to be added: the Bot browser panel in the English interface.+- It's completely separate from your own browser, with none of your sign-ins.- **Take over** lets you use the page yourself; **Full screen** enlarges it; **Diagnostics** and **Select element** help inspect the page.- The sidebar view updates at up to 2 frames per second, 5 when enlarged or taken over, and none while hidden. Pages close after 10 minutes unused.- By default the Bot browser can't open this computer's or private network addresses; a local preview the Bot started itself opens from **Open … in Bot browser** on the background command card.++### View a page, take over, and give control back++1. Send a public URL in chat and ask the Bot to open it. Review the domain if prompted. For a local preview, use the background command card.+2. Select Browser at the top of the chat. Check the address, tab and page in the side panel. Use Full screen for a larger view.+3. Choose Take over when you need to click or type yourself. Give control back when finished, then tell the Bot what to check next. Handle sensitive accounts and forms in your own browser.+4. Select an element or open Diagnostics to inspect the page. If a local preview stops responding, check whether the background service is still running.diff --git a/docs/guide/en/04-folders-and-changes.md b/docs/guide/en/04-folders-and-changes.mdindex 0ba649c..8d26de2 100644--- a/docs/guide/en/04-folders-and-changes.md+++ b/docs/guide/en/04-folders-and-changes.md@@ -10,6 +10,7 @@ On this page:- [The changes panel](#the-changes-panel)- [Independent review by another Bot](#independent-review-by-another-bot)- [Commit](#commit)+- [Git](#git)- [Separate workspaces](#separate-workspaces)- [Where deliverables go](#where-deliverables-go)@@ -32,6 +33,8 @@ If you paired a runner (another computer or server), the menu also has **Choose## Writable folders and read-only references++A topic can use several folders:- **Main folder**: read and write (still within your permissions).@@ -99,9 +102,18 @@ Notes:- Push, branches and pull requests are done with Git or GitHub.- If a background command is still running in this folder, stop it before committing.+## Git++Seeing all uncommitted changes, discarding and committing, and running several group steps at the same time all need Git.++- **Windows**: the installer includes Git, unpacked the first time it's needed; nothing else to install.+- **macOS and Linux**: when the computer has no Git, a **Pi Bot needs to install Git** card appears where a feature needs it (the changes panel, parallel group steps), with why, what it does and where it goes. After you click **Install**: on macOS, Apple's Command Line Developer Tools installer opens, where you click **Install**; on Linux, the detected system package manager installs it (the card shows the exact command) and the system asks for an administrator password. Git goes to a system location every program can use. This runs outside the sandbox, only after you click **Install**, and is written to the Log.+- **Not now** skips it: the changes panel shows only each turn's changes, and parallel group steps take turns.+- If the install fails, the card says why; click **Try again**, or install it yourself as the card suggests and click **Check again**.+## Separate workspaces-**Separate workspaces** at the top of the changes panel creates a separate workspace for a Git project, so the Bot can work there without touching the main project, and integrate the result back afterwards. Integration only takes committed work; uncommitted files in the main project or the workspace need handling first. Parallel development tasks in group chats use separate workspaces automatically (see [6 · Group chats](06-groups.md)).+**Separate workspaces** at the top of the changes panel creates a separate workspace for a Git project, so the Bot can work there without touching the main project, and integrate the result back afterwards. Integration only takes committed work; uncommitted files in the main project or the workspace need handling first. On macOS, group development steps that run at the same time use separate workspaces automatically; on Windows and Linux, and without Git, they take turns in the group's folder instead (see [6 · Group chats](06-groups.md#tasks-panel-and-plans)).## Where deliverables godiff --git a/docs/guide/en/05-approvals-and-permissions.md b/docs/guide/en/05-approvals-and-permissions.mdindex 9dd7ea7..1ade6dc 100644--- a/docs/guide/en/05-approvals-and-permissions.md+++ b/docs/guide/en/05-approvals-and-permissions.md@@ -11,6 +11,8 @@ On this page:- [Command isolation (sandbox)](#command-isolation-sandbox)- [Computer use](#computer-use)- [Activity records](#activity-records)+- [Sandbox doctor](#sandbox-doctor)+- [Example: approve a command once for this project](#example-approve-a-command-once-for-this-project)## Permission settings@@ -63,11 +65,15 @@ Buttons:+**Scripts are judged by their content**: when a Bot wants to run a script (for example `python tidy.py`), Pi Bot reads the script first. A script that only reads and does nothing risky runs without a card; a risky one asks, and the card says "A script checked by its content (asks again if it changes)". If the script changes after the check, the command isn't run.+If a card in a chat isn't answered within 10 minutes, the task pauses and waits for you. Approvals from routines go to the Inbox and are denied automatically after 24 hours. A message you send while an approval is pending is sent as a new request once the approval is handled.## Remembered permissions-Permissions granted with **Always allow** are stored on that Bot; review and revoke them on the Permissions tab of its profile. Routines also have **Preauthorizations for this routine**, which apply only to that routine (see [7 · Routines and to-dos](07-routines-and-todos.md)).+Permissions granted with **Always allow** are stored on that Bot; review and revoke them on the Permissions tab of its profile. Routines also have **Preauthorizations for this routine**, which apply only to that routine (see [7 · Routines and to-dos](07-routines-and-todos.md#preauthorizations-and-how-it-runs)).++## YOLO mode@@ -92,7 +98,7 @@ When the sandbox blocks a command, the Bot explains why and can ask you to confi## Computer use-Bots can operate apps on your computer the way a person does (press buttons, fill in fields, take screenshots). Each task asks with an approval card first. The settings are in Settings › Computer use:+Bots can operate apps on your computer the way a person does (press buttons, fill in fields, take screenshots). Each task asks with an approval card first, where you tick the apps it may use. **Ask me before taking over the foreground** is ticked by default: a step that needs the foreground and moves your mouse first shows a **Foreground confirmation** card, where you choose **Allow** or **Skip this step**. If the window is on another desktop or behind a full-screen app, the Bot tells you to switch to it. The settings are in Settings › Computer use:@@ -139,3 +145,19 @@ Linux (from the extracted app directory, or substitute your downloaded AppImageThe report lists pass, fail or skip, duration, denial rules and fixed error features. It checks command isolation, HTTPS certificates, macOS system proxy lookup, scratch workspace writes, protected names and domain denials. Names are resolved by the sandbox proxy; the HTTPS check covers that resolution and connection path, with no separate direct DNS check. It uses its own temporary folder and a fixed network profile allowing only `example.com`, with an attempt to reach `example.org` to verify blocking. It does not read your network settings or establish whether a particular Bot's permissions are correct. These public test sites receive diagnostic requests, with no chat, file content or keys; no tools are installed. Windows has no command isolation: containment checks are skipped, and other passing checks do not prove isolation.The report contains fixed codes and features, without raw commands, PATH, accounts, chat or file content, and can be copied to developers. Network, proxy or test-site outages can also cause failures. Temporary files are deleted after confirmed cleanup; if process cleanup cannot be confirmed, the command fails and retains its temporary folder instead of deleting files still in use. Exit code `0` means no failed items; `1` means a failed or incomplete check. Interrupting stops and cleans up this check.++## Example: approve a command once for this project++++1. Verify the test project in the conversation's working-folder selector. Add reference-only directories as read-only.+2. Set Run commands to Ask under Settings → Permissions. Check the Bot's Permissions tab for a saved approval that could apply.+3. State the task and scope. For example: “List changes in the current Git working tree. Tell me what command you plan to run first. Leave the files alone.”+4. If an approval card appears, expand Why am I asked? Check the exact command, working directory, and program. Choose Allow this time for one run. Decline if the scope is wider than expected, then tell the Bot what is acceptable.+5. Open Activity records and filter by Bot and action type to find the decision. For file changes, open Changes to inspect the actual diff.++### When an approval card does not appear++- **The action completed immediately.** Check its recorded decision, saved approvals for the Bot, and YOLO mode for the conversation. To return to interactive approval, revoke the relevant approval and check the conversation mode.+- **The Bot is waiting.** Look for a card in the chat, or open Todos for approvals generated by a routine. Check that the request still belongs to the task before deciding.+- **The action was denied immediately.** Review whether a permission or a system limitation applied. Group permissions can narrow a member's permissions, and remote approval depends on the request. Then request an action within the allowed scope.diff --git a/docs/guide/en/06-groups.md b/docs/guide/en/06-groups.mdindex 8e8b9e7..0f7f612 100644--- a/docs/guide/en/06-groups.md+++ b/docs/guide/en/06-groups.md@@ -7,13 +7,15 @@ On this page:- [Create a group chat](#create-a-group-chat)- [Giving work to a group](#giving-work-to-a-group)- [Tasks panel and plans](#tasks-panel-and-plans)+- [Pause and continue](#pause-and-continue)- [Group profile and settings](#group-profile-and-settings)+- [Example: hand off research to a writing Bot](#example-hand-off-research-to-a-writing-bot)## Create a group chat1. Click "+" at the top of the sidebar › **New group chat** (⌘2 / Ctrl+2).2. Pick a **group template**, or choose members yourself:- - Templates: Content & Growth, Lean Dev Team, Product Team, Research Group, Study Group; each card says what it is for. You preview a template first; it then creates its Bots (with the default model and role permissions) and the group, and the coordinator posts a welcome message.+ - Templates: Content & Growth, Lean Dev Team, Product Team, Research Group, Study Group; each card says what it is for. Lean Dev Team and Research Group come with the installer; the others are downloaded from the role library the first time you use them (this needs an internet connection). You preview a template first; **Create group and Bots** then creates its Bots (with the default model and role permissions) and the group, reusing any Bot you already have from the same role. The coordinator posts a welcome message.- Your own: choose 2 to 6 Bots. Image Bots can be members; the coordinator must be a text Bot.3. Enter the **Group name** and choose the **Coordinator**.4. Click **Create group chat**.@@ -28,7 +30,8 @@ A group also has its own working folder, **The group's own folder** by default.- Say what you need and the coordinator decides who does it, or @mention a member to have it answer directly.- Groups have **Execute / Plan only** too. Let everyone analyse with Plan only, then click **Switch to execution**.-- The top of the group shows "Automatic rounds: N / 4": when Bots have replied to each other that many times, they stop and wait for you. You can also turn on **Pause automatic conversation**.+- A group moves its own work forward: once the coordinator has split the task, implement, test and review hand off in turn without you having to chase each step. When a test or review fails, the program sends the problems back to be fixed and then hands the fix to the same role to check again; the group's summary follows what the test and review concluded.+- The top of the group shows "Automatic rounds: N / M": when Bots have replied to each other that many times, they stop and wait for you; a new message from you resets the count. The **Pause automatic conversation** switch next to it is the same as the **Pause** button described below (see [Pause and continue](#pause-and-continue)).- Each member's run can be stopped on its own ("Stop this run by …").@@ -39,24 +42,49 @@ Click **Tasks** at the top of the group to open the tasks panel:+- **Current plan**: a timeline of the steps with who does each one, what it is for, its deliverables and checks; steps that run at the same time are grouped together. The progress below shows whether each step is in progress, waiting, needs you, passed or failed, and how much has been spent.- **Main tasks** and **Child tasks**: who is doing what, and whether it's in progress or waiting for you.- **Finished tasks**.- **Usage this time**: tools, model requests, run time and cost across all runs in this round (with a note when some requests have no pricing).- **Group plan history**: earlier execution plans.-For complex work the coordinator first posts an **Execution plan** card: who does each step, which steps depend on which, which can run at the same time, the deliverables, and an estimated cost. Click **Start** to run it, or **Modify** to say what to change and send it back to the coordinator. Serial steps run in the group's main folder; parallel development tasks each use a separate workspace and are merged after the coordinator's review and your permission approval.+For complex work the coordinator first posts an **Execution plan** card: who does each step, which steps depend on which, which can run at the same time, the deliverables, and an estimated cost. Click **Start** to run it, or **Modify** to say what to change and send it back to the coordinator.++Serial steps run in the group's main folder. Development steps that can run at the same time: on macOS each uses its own workspace and is merged into the group's folder after review and your permission approval; on Windows and Linux, and while the computer has no Git, they take turns in the group's folder instead. The result is the same, only slower (for Git, see [4 · Working folders and changes](04-folders-and-changes.md#git)).A plan whose steps all passed can be saved with **Save as a reusable plan** on its completion message and run again directly.+## Pause and continue++While a group is working, a bar above the input shows the running step and who is on it (for example "Plan running · step 2/4 · Kit: …"), with a **Pause** button on the right.++[](../../assets/pibot-group-pause.mp4)++- **Pause**: the running steps stop and progress is kept; the bar changes to "Paused · progress kept; step N "…" stopped here". A command running inside a step is stopped; background services (such as a local preview) keep running.+- **Continue**: the stopped steps pick up where they stopped. The Bot that continues is told which files it had changed and which commands it had run (the one the pause cut off is marked "stopped by the pause"), and which files someone else, such as you, changed during the pause. It reruns the command that was cut off and doesn't redo finished work.+- **Say it in the chat**: sending "hold on", "pause", "go on" or "continue" works like the buttons. Only a message that is just that counts; a question or a message with other instructions goes to the coordinator as usual.+- **Chat while paused**: ask members questions or edit files yourself; Bots answer only when you send a message or mention them. No new plan starts while the group is paused.+- The **Pause automatic conversation** switch at the top of the chat and **Pause / Continue** on the phone are the same pause (see [11 · Phone app](11-phone-app.md#chats-tasks-and-approvals)).+++## Group profile and settingsClick the group name to open its profile panel, with Profile, Topics, Skills, Permissions and Settings tabs.-- **Group name**, **Coordinator**, **Automatic round limit**, **Announcement** (saved when you leave the box).+- **Group name**, **Coordinator**, **Automatic round limit**, **Announcement** (saved when you leave the box). Renaming a group doesn't interrupt a running step.- **Members**: see members and add another Bot. Members' private chats are unaffected.- **Used folders**, **Run limits (including the cost cap)**.- **Skills**: a group can have its own skill list.- **Permissions**: a group has its own permission scope, which can only narrow members' permissions, never widen them.- **Archive**: stops the group's tasks and keeps chats and files; restore it from Archived in the sidebar.++## Example: hand off research to a writing Bot++1. Create a group with a coordinator, a researcher, and a writing Bot. Select the working folder for deliverables.+2. Start in Plan only. Say: “Have the researcher record findings and sources from the three documents in research.md. Have the writing Bot use that file to produce draft.md. Propose a plan with writing dependent on research.”+3. Check the assignees, dependencies, and paths on the plan card. Start the plan and open Tasks to follow each step.+4. When research finishes, open research.md and check the sources. If writing is still waiting, see whether the previous step needs review or approval.+5. Open draft.md from the group result. To supply missing information, quote the relevant result in the group and explain what to add.diff --git a/docs/guide/en/07-routines-and-todos.md b/docs/guide/en/07-routines-and-todos.mdindex 8eae384..5085933 100644--- a/docs/guide/en/07-routines-and-todos.md+++ b/docs/guide/en/07-routines-and-todos.md@@ -13,6 +13,7 @@ On this page:- [When the computer sleeps or Pi Bot quits](#when-the-computer-sleeps-or-pi-bot-quits)- [Inbox](#inbox)- [Personal to-dos](#personal-to-dos)+- [Example: summarize new files every weekday](#example-summarize-new-files-every-weekday)## The Routines page@@ -63,7 +64,9 @@ After choosing **Once at a specified time**, click **Pick a date and time**:## Preauthorizations and how it runs-**Preauthorizations for this routine**: you may be away when a routine runs, so you can allow reading files, listing folders, writing files, running commands, visiting websites and so on in its work location ahead of time. They apply only to this routine and don't change chat permissions. Dangerous operations and sudo can't be preauthorized, and the current policy and isolation still apply at run time. Computer use can't be allowed in advance; when it's needed, it goes to the Inbox.+++**Preauthorizations for this routine**: you may be away when a routine runs, so you can allow reading files, listing folders, writing files, running commands, visiting websites and so on in its work location ahead of time. They apply only to this routine and don't change chat permissions. Dangerous operations and sudo can't be preauthorized, and the current policy and isolation still apply at run time. A routine that runs a script can preauthorize that one exact script; if the script's content changes, the run asks you again. Computer use can't be allowed in advance; when it's needed, it goes to the Inbox.**How it runs**:@@ -118,3 +121,13 @@ The **Personal to-dos** tab is your own to-do list.Each to-do can be marked complete (**Mark complete**), edited (**Edit to-do**) or deleted (**Delete to-do**); filter by Open or Completed. Due dates don't create calendar notifications.++## Example: summarize new files every weekday++++1. Put a few sample files in a test folder. Open Routines → New routine and choose a Bot.+2. Specify input and output. For example: “Read new documents in the working folder. Save a summary with filenames, key points, and any files you couldn't read. Leave originals intact.”+3. Verify the working folder and read-only references. Choose Schedule → Weekdays, set the time, and check the time zone.+4. Run a trial before saving. Check the work receipt for files read and the report path. Handle any approvals.+5. Save and confirm the next run time. Run history distinguishes trial, manual, and scheduled runs.diff --git a/docs/guide/en/08-connections.md b/docs/guide/en/08-connections.mdindex 4b79f18..d97895a 100644--- a/docs/guide/en/08-connections.md+++ b/docs/guide/en/08-connections.md@@ -17,6 +17,7 @@ On this page:- [Import skills and plugin packages](#import-skills-and-plugin-packages)- [Knowledge](#knowledge)- [Access tokens](#access-tokens)+- [Mail](#mail)## Apps@@ -97,6 +98,8 @@ Then say "do a pre-launch check" in a chat and the Bot follows the skill. Each B**Import a plugin package from a folder** and **Import from link** bring in ready-made skill packages (compatible with the Claude Code plugin format), including large skills with scripts and dependencies. You preview before importing; a package containing links or files that can't be imported for safety reasons is refused with the reason.++## Knowledge@@ -108,7 +111,18 @@ Bots only read knowledge sources and never change your notes.## Access tokens-**Access tokens** at the top right manages the tokens connections use (for example ones brought over from other tools). Saving a new value reconnects with it. Tokens are stored encrypted on this computer.+**Access tokens** at the top right manages the tokens connections use (for example ones brought over from other tools).++1. Open Connections, then choose **Access tokens** at the top right. The dialog lists tokens used by connections and tokens you added yourself; with none yet it shows **No access tokens yet**.++ ++2. To add or replace a connection's token, check which connection the entry belongs to and use the button on that entry. After you save the new value, Pi Bot reconnects with it.+3. To add a separate token for commands, choose **New token** and enter a name and value. Tokens are stored encrypted on this computer; you can replace a value later but not view the original.++ ++Manage model API keys under **Settings → Models & API keys** and website credentials under **Settings → Permissions → Saved accounts**.diff --git a/docs/guide/en/09-models-and-keys.md b/docs/guide/en/09-models-and-keys.mdindex 04b8a25..ae4ff05 100644--- a/docs/guide/en/09-models-and-keys.md+++ b/docs/guide/en/09-models-and-keys.md@@ -11,6 +11,7 @@ On this page:- [Local models and custom gateways](#local-models-and-custom-gateways)- [Web search](#web-search)- [A different model per Bot](#a-different-model-per-bot)+- [Troubleshoot a model connection](#troubleshoot-a-model-connection)## Default and auxiliary models@@ -26,7 +27,7 @@ Pi Bot has dozens of built-in providers, grouped into Popular, Gateways, Cloud,1. Under **Add a provider**, click a provider, for example OpenAI.2. Paste the key into **API key**.-3. Click **Save & test**. Once the test passes, pick one of its models as the default model, or open its model list.+3. Click **Save & test**. Once the test passes, pick one of its models as the default model, or open its model list. Models the provider has retired are not listed; if the default pick has been retired (for example when testing a Google key), the test moves on to the next available model.@@ -36,18 +37,21 @@ Cloud providers (Amazon Bedrock, Azure, Google Vertex AI, Cloudflare) use cloud## Sign in with a ChatGPT plan-With a ChatGPT Go, Plus, Pro or Business plan you can run OpenAI models on your plan's allowance instead of an API key. The plan and an OpenAI API key are two separate providers you can use at the same time: each Bot picks an OpenAI model or a ChatGPT plan model, and model pickers list them in two groups, **OpenAI** and **ChatGPT plan**.+++With a ChatGPT Go, Plus, Pro or Business plan you can run OpenAI models (including GPT-6.2 Astra and GPT-6.2 Sol) on your plan's allowance instead of an API key. The plan and an OpenAI API key are two separate providers you can use at the same time: each Bot picks an OpenAI model or a ChatGPT plan model, and model pickers list them in two groups, **OpenAI** and **ChatGPT plan**.1. Settings › Models & API keys, click the **Subscriptions** group and choose **ChatGPT plan**.2. Click **Continue with ChatGPT**.3. The first time, Pi Bot explains: you sign in on OpenAI's page; afterwards, conversations of Bots that use this plan go straight to OpenAI and count toward your ChatGPT plan's usage, with no other server involved; sign-in tokens are stored encrypted on this computer only. Click **Got it, continue**.-4. Finish signing in in your browser; the browser returns to Pi Bot. If it doesn't, click **Browser didn't return to Pi Bot?**, paste the last address the browser opened, and click **Finish sign-in**.+4. Finish signing in in your browser; the browser returns to Pi Bot. If the browser says "can't be reached" or doesn't return (for example when Pi Bot runs in a virtual machine or remote desktop), click the matching link on the page, paste the full address from the browser's address bar (it starts with `http://127.0.0.1`), and click **Finish sign-in**.5. The page then shows "Signed in as …", with **Manage usage** and **Disconnect**. Then pick a model from the **ChatGPT plan** group as a Bot's model.Notes:- When the plan's usage runs out you see **Usage limit reached**. Manage usage in ChatGPT, or give the Bot an OpenAI (API key) model in its settings.- When the sign-in expires you're asked to sign in again.+- **Subscriptions** also has **ChatGPT (Codex sign-in)**: it also runs on your ChatGPT plan, but signs in as the Codex command-line tool, and works with any account that can use ChatGPT on the web. Try **ChatGPT plan** first; use this one if it says your account isn't eligible. It isn't OpenAI's route for third-party apps, and OpenAI may restrict it later. Its sign-in tokens are likewise stored encrypted on this computer only, and you can disconnect at any time.- Subscription sign-ins stay on the computer and are not synced to the phone's offline mode (see [11 · Phone app](11-phone-app.md)).## Claude plans@@ -58,15 +62,17 @@ Anthropic does not allow Claude subscriptions to sign in to third-party apps, so## Local models and custom gateways+To run a model locally with Ollama, start Ollama and download a model on the same computer. Configure Ollama in Pi Bot under **Settings › Models & API keys**, then set it as the default model or assign it to a Bot. Send a test message and confirm that the model responds. To keep auxiliary model requests local too, have the auxiliary model follow the local main model or choose a local auxiliary model.+The **Local** group:-- **Ollama**, **LM Studio**, **vLLM**: model servers running on your computer. With Ollama, conversations never leave this computer.-- **Custom (gateway / proxy)**: any service with an OpenAI-compatible or other common interface. Enter a name, the address and a key (local models can leave it empty), choose the interface type, click **Fetch models** or **Add model manually** (model ID, context window, maximum output tokens, image and reasoning support), then save.+- **Ollama**, **LM Studio**, **vLLM**: model servers you can run on your computer. When you use a local endpoint, requests to that model stay on that computer. Web search and connected external apps have their own data flows.+- **Custom (gateway / proxy)**: any service with an OpenAI-compatible or other common interface (for example SiliconFlow, AMD or InternLM endpoints). Enter a name, the address and a key (local models can leave it empty), choose the interface type, click **Fetch models** or **Add model manually** (model ID, context window, maximum output tokens, image and reasoning support), then save. The system prompt goes out with the standard system role and tool parameters avoid a syntax some gateways reject, so most compatible endpoints can chat directly.- **Qwen API · Pay as you go**, **Z.ai API · Pay as you go**: pay-per-use endpoints.-If your network needs a proxy, set it in Settings › General › Network proxy. Every model provider uses this proxy; only model servers on this computer (localhost, 127.0.0.1) connect directly. Pi Bot uses only the proxy entered here and ignores the system proxy.+If your network needs a proxy, set it in Settings › General › Network proxy (or in the welcome flow). Every model provider uses this proxy; only model servers on this computer (localhost, 127.0.0.1) connect directly. Pi Bot uses only the proxy entered here and never uses the system proxy on its own; if this computer is already using a proxy, its address is filled in for you and takes effect once you turn on **Use proxy**.## Web search@@ -79,4 +85,15 @@ If your network needs a proxy, set it in Settings › General › Network proxy.## A different model per Bot++In the Bot profile panel › Profile › Model, pick another model and thinking level for that Bot (see [2 · Bots and roles](02-bots-and-roles.md#profile)). For example, give the code reviewer a different model from the Bot that writes code; reviews catch more that way.++## Troubleshoot a model connection++++1. Check whether the error came from Save & test or a conversation. For setup errors, verify the provider, endpoint, and credentials. For conversation errors, check which model the Bot selected.+2. For cloud providers, check that the key belongs to the provider, is valid, and has access to the model. For a local model, make sure Ollama or LM Studio is running and the model is loaded or installed. For custom gateways, also verify the API type.+3. Once the test passes, send a short message to confirm the Bot can reply. If only tool calls fail, check model support for tool calling and inspect the run error and work receipt.+4. In a report, share the provider, model name, and error text. Remove API keys, login tokens, and URLs with embedded credentials.diff --git a/docs/guide/en/11-phone-app.md b/docs/guide/en/11-phone-app.mdindex 807581f..67b3164 100644--- a/docs/guide/en/11-phone-app.md+++ b/docs/guide/en/11-phone-app.md@@ -11,12 +11,11 @@ On this page:- [When the computer is offline: the phone replies](#when-the-computer-is-offline-the-phone-replies)- [Notifications, wake-up and staying connected](#notifications-wake-up-and-staying-connected)- [Unpair](#unpair)--> Screenshot to be added: phone screens for this page (scan to pair, chat, approvals, offline mode).+- [Example: approve a desktop task from your phone](#example-approve-a-desktop-task-from-your-phone)## Install-The phone app is currently available as an Android package (APK) from [pibot.space](https://pibot.space). The desktop app updates itself; on the phone, download and install the new APK to update. An iOS version isn't available for download yet.+The phone app is currently available as an Android package (APK) from the [download page](https://pibot.space/en/download/). The desktop app updates itself; on the phone, download and install the new APK to update. An iOS version isn't available for download yet. After installing it, open Pi Bot and start pairing from the first-launch screen.## Turn on remote access on the computer@@ -44,7 +43,10 @@ The text below the switch explains what the relay sees: IP addresses, connection-2. On the phone: open Pi Bot, tap **Scan to pair**, allow the camera, and scan the QR code. If scanning doesn't work, you can paste the pairing code copied on the computer instead.+2. On the phone, open Pi Bot to **Connect your computer**. Tap **Allow camera to scan**, grant access, and point the camera at the QR code on the computer. You can also copy the code on the computer and tap **Paste pairing code** on the phone.++ +3. Both sides show the same safety code. If they match, nobody intercepted the connection: tap **They match, finish pairing**. If not, cancel and scan again.One phone can pair with up to 16 computers.@@ -54,13 +56,29 @@ One phone can pair with up to 16 computers.The phone app has five tabs at the bottom:- **Chats**: chats with Bots and groups, the same history as on the computer. While the computer is offline you can keep writing; messages are queued and sent in order once it's back (Bots with offline replies turned on answer from the phone, see below).++ +- **To-dos**: your personal to-dos on a month calendar (the same list as **Personal to-dos** in the computer's Inbox). Tap a day to see its to-dos, tap the circle to mark one done, tap a to-do to change its title, date, time, end date, colour and sticker, or delete it; **+** adds one on the selected day. It works with the computer offline too: changes stay on the phone marked **Not synced yet** and sync in order once the computer is back; if the same to-do was changed on the computer later, the newer change wins.- **Tasks**: running tasks, group tasks and routine runs; you can stop or resume them.++ +- **Approvals**: approval cards waiting for you, showing what will happen and why approval is needed, with **Show decision steps**. You can **Allow this kind of action from now on**; dangerous actions can't be remembered and need Face ID / fingerprint or the phone passcode before you allow them. A few approvals (such as computer sign-ins and outgoing drafts) can only be handled on the computer. Unanswered approvals are denied when time runs out, and the Bot tries another way.++ +- **Devices**: paired computers and runners, the phone data you share with the computer, notifications, language and appearance.Loosening a Bot's permissions, deleting memories and removing a Bot from a group also need you to unlock the phone.+In a group chat:++- **Tasks N/M** at the top opens **Task progress**: each step of the plan with who does it and whether it is in progress, waiting, needs you or done; tap a step to see what it does and its result.+- A stuck step marked **Needs you** has **Retry**, which has its Bot do it again. Edit the plan, skip or reassign steps on the computer.+- When a group member needs your approval, the approval card appears right in the group chat, where you can handle it.+- While the group is working, **Pause** stops it and keeps progress; **Continue** picks up from the stopped steps. It is the same pause as on the computer (see [6 · Group chats](06-groups.md#pause-and-continue)).+## When the computer is offline: the phone repliesWhen the computer is off, asleep or without network, the phone shows "Computer offline · last seen: …" and quietly reconnects in the background, switching back automatically when the computer returns.@@ -71,6 +89,8 @@ If you turned on offline replies for this phone on the computer, private chats w2. Check **Models the phone uses directly**: the config and keys of the models your Bots use sync to this phone automatically and follow changes made on the computer.3. Under **Bots that can reply offline**, switch each Bot on or off.++Limits:- Subscription sign-ins (such as a ChatGPT plan), cloud provider credentials and custom request headers stay on the computer; Bots that use them can't reply offline on the phone.@@ -83,10 +103,21 @@ If the phone is authorized for a runner (**Runners it can direct** on the device## Notifications, wake-up and staying connected-- The phone gets a notification when a Bot needs your approval or a task finishes. Notifications contain only "Pi Bot" and a fixed short sentence, never chat or approval content; tapping one opens the app and reloads.+++- The phone gets a notification when a Bot needs your approval or a task finishes. The title is only the Bot's or group's name ("Pi Bot" for notifications that arrive as a push), and the text is a fixed short sentence, never chat or approval content; tapping one opens the app and reloads.- When the computer needs one of the phone's capabilities, it can wake the phone app with a high-priority push.- On Android you can turn on **Stay connected** to keep the connection with a foreground service (off by default; uses more battery).## Unpair-On the phone: Devices › the computer › **Unpair**. This deletes the keys, cache and pending messages on the phone; revoke the device record on the computer separately in Settings › Devices. To switch computers, unpair first, then scan the new computer's QR code.+On the phone, open **Devices** and switch to the computer if you have more than one. Scroll to **Connection**, tap **Unpair**, then read the confirmation and tap **Unpair** again. This deletes the keys, cache and pending messages on the phone. Revoke the device record separately on the computer under **Settings › Devices**. When switching computers, scan the QR code from the new computer after unpairing.++++## Example: approve a desktop task from your phone++1. After pairing, test on the same local network. Confirm the computer shows as online in Devices, then send Pi a short message.+2. Start a task in a test folder. If approval is required, open Approvals and check the Bot, action, and folder before allowing or denying it. Use the computer for desktop-only requests.+3. Follow progress under Tasks and open the result when done. Verify the same task appears in the desktop conversation.+4. If the computer stays offline, check that Pi Bot is running and paired connections are enabled. Pair again if you switched relays. Ordinary messages queue while the computer is temporarily offline.diff --git a/docs/guide/en/12-updates-and-data.md b/docs/guide/en/12-updates-and-data.mdindex 7a57ec2..71609dc 100644--- a/docs/guide/en/12-updates-and-data.md+++ b/docs/guide/en/12-updates-and-data.md@@ -14,7 +14,7 @@ After it starts and every few hours while running, Pi Bot asks pibot.space for tTo check yourself: your avatar › **Check for updates**.-+When a new version is available:diff --git a/docs/guide/en/13-privacy-and-security.md b/docs/guide/en/13-privacy-and-security.mdindex 7a2d0e7..310ff06 100644--- a/docs/guide/en/13-privacy-and-security.md+++ b/docs/guide/en/13-privacy-and-security.md@@ -48,6 +48,8 @@ Pi Bot collects no usage data and doesn't report crashes automatically. There ar## Keys++- API keys, sign-in tokens and saved account passwords are encrypted with the system secret store on this computer.- After saving, the interface shows only the last 4 characters of a key.- Keys are never written to logs, sent to the interface, or shown to Bots and models. When the Bot browser signs in with a saved account, neither the Bot nor the model sees the password.@@ -65,6 +67,8 @@ Pi Bot collects no usage data and doesn't report crashes automatically. There ar## Traceability++- **Work receipts**: each run lists what it read, what it changed, which commands ran, which approvals it went through, what it cost and what wasn't verified.- **Activity records**: every approval, run and outgoing action, stored only on this computer.- **Changes panel**: every file change can be reviewed line by line and discarded; checkpoints are kept automatically before changes.diff --git a/docs/guide/en/14-faq.md b/docs/guide/en/14-faq.mdindex 6be2373..b3a0306 100644--- a/docs/guide/en/14-faq.md+++ b/docs/guide/en/14-faq.md@@ -2,20 +2,42 @@On this page:+- [About Pi Bot](#about-pi-bot)+- [Download and installation](#download-and-installation)- [Models and keys](#models-and-keys)- [Folders and commands](#folders-and-commands)- [Approvals](#approvals)+- [Group chats](#group-chats)- [Routines](#routines)- [Runners and the phone](#runners-and-the-phone)- [Other](#other)+## About Pi Bot++**What is Pi Bot?**+Pi Bot is a multi-Bot desktop app that runs on your own computer. It supports macOS, Windows and Linux, and its code is open source under Apache-2.0. Bots can work together in a group, handle files, review code changes and run routines. The desktop app works on its own, with optional Android and runner pairing. See [1 · Getting started](01-getting-started.md) and [6 · Group chats](06-groups.md).++**Can Pi Bot work entirely offline?**+Configure Ollama on the same computer to keep model requests on that machine. Features that use the internet, such as web search and connected external apps, still need a network connection. See [9 · Models and keys](09-models-and-keys.md#local-models-and-custom-gateways) and [13 · Privacy and security](13-privacy-and-security.md).++## Download and installation++**Which installer should I choose?**+Choose an installer from the [download page](https://pibot.space/en/download/). On a Mac, use Apple menu → About This Mac to check whether it uses Apple silicon or Intel. Choose EXE for Windows, AppImage for Linux, and APK for Android. Install a runner on a computer that will only execute delegated work.++**macOS says it cannot verify Pi Bot. What should I do?**+Pi Bot has not been notarized by Apple yet. If you downloaded it from the official site and choose to proceed, try opening it once, then select **Open Anyway** under System Settings → Privacy & Security. See [1 · Install](01-getting-started.md#macos).++**What do I need to set up on first launch?**+A working model. The welcome flow offers a recommended route (OpenRouter in English, DeepSeek in Chinese), a ChatGPT plan, local Ollama and your own API key. See [1 · Getting started](01-getting-started.md#first-launch-the-welcome-flow) and [Troubleshoot a model connection](09-models-and-keys.md#troubleshoot-a-model-connection).+## Models and keys**Save & test fails and says the key is invalid.**Check that you copied the whole key (no extra spaces), that it belongs to this provider, and that the account still has balance or quota. A key just created in the provider's console can take a moment to become active. Paste the new key and **Save & test** again.**Pi Bot can't reach the model provider.**-If your network needs a proxy, turn on **Use proxy** in Settings › General › Network proxy, enter the address and click **Test connection**. Pi Bot doesn't read the system proxy.+If your network needs a proxy, turn on **Use proxy** in Settings › General › Network proxy (or under **Need a proxy? Set up a network proxy** in the welcome flow), enter the address and click **Test connection**. Pi Bot never uses the system proxy on its own; if this computer is already using one, the address is filled in and takes effect once you turn the switch on.**My ChatGPT plan says "Usage limit reached".**The plan's allowance is used up for now. Manage usage in ChatGPT, or save an API key in Settings › Models & API keys › OpenAI and switch the Bot to a model from the **OpenAI** group.@@ -48,6 +70,17 @@ Approvals in a chat pause the task after 10 minutes without an answer; routine a**I clicked Always allow and want to take it back.**Review and revoke it on the Permissions tab of that Bot's profile.+## Group chats++**A group step keeps showing "Waiting".**+It is waiting for earlier steps to finish, or for a check result or your confirmation. Open the **Tasks** panel to see which step and what it is waiting for; a step marked **Needs you** can be retried, skipped or reassigned. On Windows and Linux, and while the computer has no Git, steps that could run at the same time take turns in the group's folder, so later ones wait for the one before (see [6 · Group chats](06-groups.md#tasks-panel-and-plans)).++**What happens to a running command when I pause a group?**+A command running inside a step is stopped and progress is kept. After **Continue**, the Bot that picks up knows which command was cut off and reruns it. Background services (such as a local preview) aren't affected by the pause; to stop one, click **Stop** on its background command card (see [Pause and continue](06-groups.md#pause-and-continue)).++**Pi Bot says it needs to install Git.**+This card appears on macOS and Linux when Git isn't installed. Click **Install** and follow the prompts (Linux asks for an administrator password), or click **Not now** and group steps take turns instead. The Windows installer includes Git, so there's nothing to install there (see [4 · Git](04-folders-and-changes.md#git)).+## Routines**A routine didn't run on time.**diff --git a/docs/guide/en/15-self-hosting-relay.md b/docs/guide/en/15-self-hosting-relay.mdindex 7463e96..5f47b7f 100644--- a/docs/guide/en/15-self-hosting-relay.md+++ b/docs/guide/en/15-self-hosting-relay.md@@ -1,5 +1,7 @@# 15 · Self-hosting the relay+> Deploying your own relay requires the Pi Bot source code (open source on [GitHub](https://github.com/w01fb0ss/PiBot)). The steps below cover deployment and verification from source.+When the phone or a runner connects to your computer, they connect directly whenever they can (over the LAN or through NAT, see chapter 11); when a direct connection is not possible, traffic goes through the **relay**. The relay only forwards end-to-end encrypted data: it cannot see chats, files or approvals, and it stores no messages. The official relay `wss://relay.pibot.space` is the default. To use only your own infrastructure, deploy the relay to your own Cloudflare account.## What the relay can seediff --git a/docs/guide/en/16-editor-acp.md b/docs/guide/en/16-editor-acp.mdindex 4b2ab67..09934b8 100644--- a/docs/guide/en/16-editor-acp.md+++ b/docs/guide/en/16-editor-acp.md@@ -2,6 +2,8 @@Editors that speak the [Agent Client Protocol (ACP)](https://agentclientprotocol.com), such as Zed, can put Pi Bot's Bots to work: what you type in the editor is handled by a Pi Bot Bot, and commands and approvals still go through Pi Bot's permissions on this computer.+The other way round, adding coding agents on your computer such as Codex or Claude Agent to Pi Bot as Bots, is described in [2 · Bots and roles](02-bots-and-roles.md#external-agents).+## Connect1. Open the desktop Pi Bot first (ACP connects to the running app; it does not start another one).diff --git a/docs/guide/images/en/about.png b/docs/guide/images/en/about.pngindex 891a4fc..c5a34df 100644Binary files a/docs/guide/images/en/about.png and b/docs/guide/images/en/about.png differdiff --git a/docs/guide/images/en/android-approvals-guide.png b/docs/guide/images/en/android-approvals-guide.pngnew file mode 100644index 0000000..d16bb17Binary files /dev/null and b/docs/guide/images/en/android-approvals-guide.png differdiff --git a/docs/guide/images/en/android-chats-guide.png b/docs/guide/images/en/android-chats-guide.pngnew file mode 100644index 0000000..d5b2c85Binary files /dev/null and b/docs/guide/images/en/android-chats-guide.png differdiff --git a/docs/guide/images/en/android-offline-model-guide.png b/docs/guide/images/en/android-offline-model-guide.pngnew file mode 100644index 0000000..9be867fBinary files /dev/null and b/docs/guide/images/en/android-offline-model-guide.png differdiff --git a/docs/guide/images/en/android-pair-guide.png b/docs/guide/images/en/android-pair-guide.pngnew file mode 100644index 0000000..b6178caBinary files /dev/null and b/docs/guide/images/en/android-pair-guide.png differdiff --git a/docs/guide/images/en/android-tasks-guide.png b/docs/guide/images/en/android-tasks-guide.pngnew file mode 100644index 0000000..eb6da2bBinary files /dev/null and b/docs/guide/images/en/android-tasks-guide.png differdiff --git a/docs/guide/images/en/android-unpair-guide.png b/docs/guide/images/en/android-unpair-guide.pngnew file mode 100644index 0000000..c0e5e3bBinary files /dev/null and b/docs/guide/images/en/android-unpair-guide.png differdiff --git a/docs/guide/images/en/background-command.png b/docs/guide/images/en/background-command.pngindex 05b7435..bbeea6e 100644Binary files a/docs/guide/images/en/background-command.png and b/docs/guide/images/en/background-command.png differdiff --git a/docs/guide/images/en/bot-browser.png b/docs/guide/images/en/bot-browser.pngnew file mode 100644index 0000000..ab9d24cBinary files /dev/null and b/docs/guide/images/en/bot-browser.png differdiff --git a/docs/guide/images/en/check-updates.png b/docs/guide/images/en/check-updates.pngindex 3c30625..cd0e75b 100644Binary files a/docs/guide/images/en/check-updates.png and b/docs/guide/images/en/check-updates.png differdiff --git a/docs/guide/images/en/connections-token-form.png b/docs/guide/images/en/connections-token-form.pngnew file mode 100644index 0000000..54c71a5Binary files /dev/null and b/docs/guide/images/en/connections-token-form.png differdiff --git a/docs/guide/images/en/connections-tokens.png b/docs/guide/images/en/connections-tokens.pngnew file mode 100644index 0000000..491fc4eBinary files /dev/null and b/docs/guide/images/en/connections-tokens.png differdiff --git a/docs/guide/images/en/group-pause.png b/docs/guide/images/en/group-pause.pngnew file mode 100644index 0000000..fef5fd2Binary files /dev/null and b/docs/guide/images/en/group-pause.png differdiff --git a/docs/guide/images/en/welcome-intro.png b/docs/guide/images/en/welcome-intro.pngindex 90c0fd9..be94908 100644Binary files a/docs/guide/images/en/welcome-intro.png and b/docs/guide/images/en/welcome-intro.png differdiff --git a/docs/guide/images/en/welcome-model-apikey.png b/docs/guide/images/en/welcome-model-apikey.pngindex 935ffef..bb4e3ad 100644Binary files a/docs/guide/images/en/welcome-model-apikey.png and b/docs/guide/images/en/welcome-model-apikey.png differdiff --git a/docs/guide/images/en/welcome-model-chatgpt.png b/docs/guide/images/en/welcome-model-chatgpt.pngnew file mode 100644index 0000000..accc56fBinary files /dev/null and b/docs/guide/images/en/welcome-model-chatgpt.png differdiff --git a/docs/guide/images/en/welcome-model-ollama.png b/docs/guide/images/en/welcome-model-ollama.pngindex 72a6143..d32bd17 100644Binary files a/docs/guide/images/en/welcome-model-ollama.png and b/docs/guide/images/en/welcome-model-ollama.png differdiff --git a/docs/guide/images/en/welcome-model-openrouter.png b/docs/guide/images/en/welcome-model-openrouter.pngindex 04959b9..7e990f5 100644Binary files a/docs/guide/images/en/welcome-model-openrouter.png and b/docs/guide/images/en/welcome-model-openrouter.png differdiff --git a/docs/guide/images/zh/about.png b/docs/guide/images/zh/about.pngindex 5b92d69..ea027b7 100644Binary files a/docs/guide/images/zh/about.png and b/docs/guide/images/zh/about.png differdiff --git a/docs/guide/images/zh/android-approvals-guide.png b/docs/guide/images/zh/android-approvals-guide.pngnew file mode 100644index 0000000..a765794Binary files /dev/null and b/docs/guide/images/zh/android-approvals-guide.png differdiff --git a/docs/guide/images/zh/android-chats-guide.png b/docs/guide/images/zh/android-chats-guide.pngnew file mode 100644index 0000000..493f27cBinary files /dev/null and b/docs/guide/images/zh/android-chats-guide.png differdiff --git a/docs/guide/images/zh/android-offline-chats-guide.png b/docs/guide/images/zh/android-offline-chats-guide.pngnew file mode 100644index 0000000..53cf3bfBinary files /dev/null and b/docs/guide/images/zh/android-offline-chats-guide.png differdiff --git a/docs/guide/images/zh/android-offline-model-guide.png b/docs/guide/images/zh/android-offline-model-guide.pngnew file mode 100644index 0000000..797ce0dBinary files /dev/null and b/docs/guide/images/zh/android-offline-model-guide.png differdiff --git a/docs/guide/images/zh/android-pair-guide.png b/docs/guide/images/zh/android-pair-guide.pngnew file mode 100644index 0000000..e20f792Binary files /dev/null and b/docs/guide/images/zh/android-pair-guide.png differdiff --git a/docs/guide/images/zh/android-tasks-guide.png b/docs/guide/images/zh/android-tasks-guide.pngnew file mode 100644index 0000000..a1ef5fcBinary files /dev/null and b/docs/guide/images/zh/android-tasks-guide.png differdiff --git a/docs/guide/images/zh/android-unpair-guide.png b/docs/guide/images/zh/android-unpair-guide.pngnew file mode 100644index 0000000..9e5feffBinary files /dev/null and b/docs/guide/images/zh/android-unpair-guide.png differdiff --git a/docs/guide/images/zh/background-approval.png b/docs/guide/images/zh/background-approval.pngnew file mode 100644index 0000000..423b64dBinary files /dev/null and b/docs/guide/images/zh/background-approval.png differdiff --git a/docs/guide/images/zh/background-command.png b/docs/guide/images/zh/background-command.pngnew file mode 100644index 0000000..9da2ba5Binary files /dev/null and b/docs/guide/images/zh/background-command.png differdiff --git a/docs/guide/images/zh/bot-browser.png b/docs/guide/images/zh/bot-browser.pngindex 790b10d..198f1ee 100644Binary files a/docs/guide/images/zh/bot-browser.png and b/docs/guide/images/zh/bot-browser.png differdiff --git a/docs/guide/images/zh/check-updates.png b/docs/guide/images/zh/check-updates.pngindex 2e7d244..0dd5559 100644Binary files a/docs/guide/images/zh/check-updates.png and b/docs/guide/images/zh/check-updates.png differdiff --git a/docs/guide/images/zh/connections-token-form.png b/docs/guide/images/zh/connections-token-form.pngnew file mode 100644index 0000000..f43c70dBinary files /dev/null and b/docs/guide/images/zh/connections-token-form.png differdiff --git a/docs/guide/images/zh/connections-tokens.png b/docs/guide/images/zh/connections-tokens.pngnew file mode 100644index 0000000..11c9c92Binary files /dev/null and b/docs/guide/images/zh/connections-tokens.png differdiff --git a/docs/guide/images/zh/group-pause.png b/docs/guide/images/zh/group-pause.pngnew file mode 100644index 0000000..95edae2Binary files /dev/null and b/docs/guide/images/zh/group-pause.png differdiff --git a/docs/guide/images/zh/welcome-intro.png b/docs/guide/images/zh/welcome-intro.pngindex 19fab06..ee8c8a1 100644Binary files a/docs/guide/images/zh/welcome-intro.png and b/docs/guide/images/zh/welcome-intro.png differdiff --git a/docs/guide/images/zh/welcome-model-apikey.png b/docs/guide/images/zh/welcome-model-apikey.pngindex 50e3df0..5295623 100644Binary files a/docs/guide/images/zh/welcome-model-apikey.png and b/docs/guide/images/zh/welcome-model-apikey.png differdiff --git a/docs/guide/images/zh/welcome-model-chatgpt.png b/docs/guide/images/zh/welcome-model-chatgpt.pngnew file mode 100644index 0000000..ee84d10Binary files /dev/null and b/docs/guide/images/zh/welcome-model-chatgpt.png differdiff --git a/docs/guide/images/zh/welcome-model-deepseek.png b/docs/guide/images/zh/welcome-model-deepseek.pngnew file mode 100644index 0000000..9a09930Binary files /dev/null and b/docs/guide/images/zh/welcome-model-deepseek.png differdiff --git a/docs/guide/images/zh/welcome-model-ollama.png b/docs/guide/images/zh/welcome-model-ollama.pngindex d7125d9..7b3a8bb 100644Binary files a/docs/guide/images/zh/welcome-model-ollama.png and b/docs/guide/images/zh/welcome-model-ollama.png differdiff --git a/docs/guide/zh/01-getting-started.md b/docs/guide/zh/01-getting-started.mdindex fa22997..e5c9c29 100644--- a/docs/guide/zh/01-getting-started.md+++ b/docs/guide/zh/01-getting-started.md@@ -22,13 +22,13 @@ Pi Bot 是一个桌面应用:一群有名字的 Bot 在你自己的电脑上## 安装-从官网 [pibot.space](https://pibot.space) 下载对应系统的安装包。+从官网 [下载页](https://pibot.space/cn/download/) 下载对应系统的安装包。### macOS1. 打开下载的 `.dmg`,把 **Pi Bot** 拖进「应用程序」文件夹。2. 从「应用程序」或启动台打开 Pi Bot。-3. 如果系统提示无法验证开发者,打开「系统设置 › 隐私与安全性」,在页面下方点「仍要打开」。+3. Pi Bot 目前还没有经过 Apple 公证。如果系统提示无法验证 Pi Bot,先确认安装包是从官网下载的;决定继续时,先尝试打开一次,再到「系统设置 › 隐私与安全性」找到 Pi Bot,点「仍要打开」。详见 [Apple 官方说明](https://support.apple.com/zh-cn/102445)。Pi Bot 平时没有程序坞图标,关掉窗口后在菜单栏的托盘图标里还能找到它(见 [托盘与后台](#托盘与后台))。@@ -63,13 +63,17 @@ Pi Bot 平时没有程序坞图标,关掉窗口后在菜单栏的托盘图标### 2. 选择模型-「Pi 用哪个模型」有三个选项:+「Pi 用哪个模型」有四个选项:-- **OpenRouter**(推荐):一个 Key 用很多模型,已经选好一个便宜、会用工具的模型。消息会先发给 OpenRouter,再转给模型厂商。粘贴 Key 后点「保存并测试」。+- **推荐**:跟着你选的语言走。中文界面推荐 **DeepSeek**(官方 API,已选好 DeepSeek V4.1 Flash,消息直接发给 DeepSeek);英文界面推荐 **OpenRouter**(一个 Key 用很多模型,消息先发给 OpenRouter,再转给模型厂商)。粘贴 Key 后点「保存并测试」。- + -- **本地 · Ollama**:完全离线,在这台电脑上运行,对话不离开这台电脑。需要先安装 Ollama;没检测到时会显示安装说明的链接和「重新检测」按钮。+- **ChatGPT 计划**:用你的 ChatGPT 计划额度,不需要 API Key。点「通过 ChatGPT 继续」,在浏览器完成登录,再回到 Pi Bot 选模型(详见 [9 · 模型与密钥](09-models-and-keys.md#用-chatgpt-计划登录))。++ ++- **本地 · Ollama**:先在这台电脑安装并启动 Ollama,下载一个模型,然后回到 Pi Bot 点「重新检测」。检测到服务后选择模型再继续。下图是尚未检测到服务时的界面。@@ -81,9 +85,9 @@ Pi Bot 平时没有程序坞图标,关掉窗口后在菜单栏的托盘图标-Key 用这台电脑的系统密钥库加密保存,保存后不再显示。如果你已经在环境变量里设置了对应的 Key(例如 `OPENROUTER_API_KEY`),这一页会提示检测到了,可以点「导入」。+Key 用这台电脑的系统密钥库加密保存,保存后不再显示。如果你已经在环境变量里设置了对应的 Key(例如 `DEEPSEEK_API_KEY`、`OPENROUTER_API_KEY`),这一页会提示检测到了,可以点「导入」。-想用 ChatGPT 计划代替 API Key?欢迎流程里先随便选一个能用的方式,之后到 [9 · 模型与密钥](09-models-and-keys.md#用-chatgpt-计划登录) 里操作。+**网络代理**:在部分地区访问 Google、OpenAI 等模型服务需要代理。在线模型的几种方式下面都有「需要代理?设置网络代理」,点开就能填代理地址;如果这台电脑正在用代理,会自动填进去,打开「使用代理」后才生效。连不上模型时,出错提示旁边也会直接给出「设置网络代理」。之后可以在 设置 › 通用 › 网络代理 里修改(见 [9 · 模型与密钥](09-models-and-keys.md#本地模型和自定义网关))。### 3. 先请一个 Bot 帮忙@@ -99,7 +103,7 @@ Key 用这台电脑的系统密钥库加密保存,保存后不再显示。如- **屏幕录制**:截图(只裁到你允许的应用窗口)- **自动化**:让 Bot 用脚本控制「系统事件」和「访达」-> 截图待补:中文界面的「系统权限」步骤。+开启屏幕录制后如果没有生效,点「重启 Pi Bot」。不需要操作电脑就点「稍后再说」,以后可以在 设置 › 操作电脑 里再开。Windows 不需要额外权限;Linux 在 X11 下不需要,Wayland 下截图每次会话确认一次。diff --git a/docs/guide/zh/02-bots-and-roles.md b/docs/guide/zh/02-bots-and-roles.mdindex 7e2641c..820596e 100644--- a/docs/guide/zh/02-bots-and-roles.md+++ b/docs/guide/zh/02-bots-and-roles.md@@ -7,6 +7,7 @@- [新建 Bot](#新建-bot)- [Bot 资料面板](#bot-资料面板)- [记忆](#记忆)+- [外部 Agent](#外部-agent)- [导入与分组](#导入与分组)## 新建 Bot@@ -19,14 +20,18 @@-「选一个角色」列出全部内置角色,可以按分类(工程、产品与设计、数据与研究、内容与营销、办公与运营、通用)筛选或搜索。角色自带工作规范、技能和默认权限。例如:+「选一个角色」列出可用的角色,可以按分类(工程、产品与设计、数据与研究、内容与营销、办公与运营、通用)筛选或搜索。角色自带工作规范、技能和默认权限。全部角色:-- **工程**:后端开发、前端开发、全栈开发、代码审查员、DevOps / 运维、测试工程师-- **产品与设计**:产品经理、UI / UX 设计师、演示设计师、生图设计师-- **数据与研究**:研究员、数据分析师-- **内容与营销**:文案写手、新媒体运营、技术文档、翻译、视频脚本-- **办公与运营**:个人助理、项目经理、招聘 / HR-- **通用**:通用助手、导师+- **工程**:后端开发、前端开发、全栈开发、代码审查员、DevOps / 运维、测试工程师、技术文档、小匠(制作插件)+- **产品与设计**:产品经理、UI / UX 设计师、生图设计师+- **数据与研究**:研究员、数据分析师、导师+- **内容与营销**:文案写手、新媒体运营、演示设计师、翻译、视频脚本+- **办公与运营**:个人助理、项目经理、招聘 / HR、主动助理+- **通用**:通用助手++安装包里自带常用的几个(如全栈开发、测试工程师、代码审查员、研究员、新媒体运营、演示设计师、小匠),离线也能用;其余角色和群聊模板放在**角色库**里,和自带的角色一起显示,第一次选用时联网下载,下载前会校验官方签名。列表上方的「检查角色库」「刷新角色库」用来拿到最新的角色和新版本。也可以在官网 [角色库](https://pibot.space/cn/roles/) 浏览全部角色和群聊模板,点「在 Pi Bot 中打开」直接添加(需要 0.0.3 或更高版本,添加前会请你确认)。++**主动助理**(小望)按你定的节奏查看日程和待办,只在有需要你处理的事时才提醒你,平时保持安静;它只读取和整理,不替你回复或改日程。邮件连接会在后续版本提供。生图设计师需要先在 设置 › 模型与密钥 里配置一个能生图的模型,否则显示「暂不能创建」。@@ -104,7 +109,17 @@ Bot 记一条记忆时会自己选放在哪种里:关于你本人的放进用记忆只存在这台电脑上,随时可以修改或删除。每次运行的工作收据会列出这次用了哪些记忆(见 [3 · 聊天](03-chatting.md#工作收据))。+## 外部 Agent++电脑上已经装好的编程助手(Codex、Claude Agent、Cursor、OpenCode,或任何支持 ACP 的 agent)可以作为 Bot 加入 Pi Bot。在「选一个角色」里选「外部 Agent」分类,Pi Bot 会查看这台电脑上装了哪些(只看程序路径和版本,不读它们的账号和对话),点一个后按「把 … 加为 Bot」的说明创建。++- 它用自己的登录和计费,Pi Bot 不读、不保存它的令牌。+- 它在 Pi Bot 的沙箱里运行,只能写这个话题的工作文件夹;Windows 上没有命令沙箱,卡片会标「不隔离运行」。+- 登录失效或额度用完时会提前显示:资料页和聊天里出现「需要登录」或「套餐受限」,写明在终端运行哪条登录命令(可以「复制命令」),处理好后点「重新检查」,不用等它真的运行失败。+## 导入与分组++- **从 .pibot 文件导入**:「+」›「从 .pibot 文件导入」,先预览再导入。多 Bot 或群聊模板会按预览整体导入。- **新分组**:「+」›「新分组」,用来整理侧栏。diff --git a/docs/guide/zh/03-chatting.md b/docs/guide/zh/03-chatting.mdindex 56a2cf6..ec7cd71 100644--- a/docs/guide/zh/03-chatting.md+++ b/docs/guide/zh/03-chatting.md@@ -55,6 +55,7 @@- **步骤折叠行**:例如「5 步 · 运行命令、使用浏览器 4」,点开可以看每一步做了什么。- **审批卡**:需要你同意的操作会在聊天里弹出卡片(见 [5 · 审批与权限](05-approvals-and-permissions.md))。- **改动清单**:「这一轮改了 2 个文件」,点「查看」打开改动面板(见 [4 · 工作文件夹与改动](04-folders-and-changes.md))。+- **附上的文件**:Bot 这一轮新建的文档、图片、表格、演示文稿、网页、音视频和压缩包,以及它在回复里点名或放进交付目录的文件,由程序核对后自动附在回复下面,不靠 Bot 自己记得发。一条回复最多附 10 个,其余的会注明在哪个文件夹。运行失败或被停止时,已经写好的文件也照样附上。改过的源代码不逐个附上,在改动清单里看。- **网页结果**:开发任务做出网页、本地 HTML 或 Web 服务后,Bot 会在自己的浏览器里打开检查;画面类结果会先截图自查,有明显错位先修好再交给你。## 工作收据@@ -77,7 +78,20 @@Bot 可以把命令放到后台运行,例如本地预览服务。聊天里会出现一张「后台运行中」的卡片,显示输出行数和运行时间,可以「在 Bot 浏览器打开」端口、「查看输出」或「停止」。-> 截图待补:中文界面的「后台运行中」卡片。+### 从审批到停止:本机网页预览++1. 在聊天顶部确认工作文件夹是测试项目,用「执行」模式发起任务。例如:「在后台启动这个页面的本机预览,只监听 127.0.0.1,把端口告诉我。」+2. 展开审批卡,核对它要运行的命令、当前目录和端口。确认后点「本次允许」。++++3. 命令启动后,聊天中会显示绿色「后台运行中」卡片。点击「在 Bot 浏览器打开」旁的端口可打开预览。点击「查看输出」可检查进程日志。++++4. 预览结束后点卡片上的「停止」,在卡片里确认状态已停止。页面之后不能从该进程继续提供内容。++如果卡片有进程但没看到端口,先看输出里是否报端口占用或缺少运行环境。让 Bot 换一个可用端口并重新申请。只有 Bot 自己启动并检测到的本机监听端口才会有浏览器入口。后台命令默认最多运行 2 小时(设置 › 通用 › 后台命令 › 总时长上限),你停止、删除聊天、归档 Bot 或退出应用时也会结束;只能监听本机地址 127.0.0.1。启动后台命令每次都要你确认。@@ -91,3 +105,10 @@ Bot 可以把命令放到后台运行,例如本地预览服务。聊天里会- 「接管」可以自己操作这个页面;「全屏」放大查看;「诊断」「选元素」用于检查网页。- 窄屏画面每秒最多 2 帧,放大或接管时 5 帧,收起后不再取帧。Bot 用完 10 分钟后会自动关掉页面。- Bot 浏览器默认不能访问本机和内网地址;Bot 自己启动的本地预览服务,可以从后台命令卡片上的「在 Bot 浏览器打开」打开。++### 在浏览器看页面、接管再交还++1. 公网页面可以在聊天里发网址,请 Bot 打开。需要访问确认时先核对域名。本机示例则用上面的后台命令卡片打开。+2. 打开聊天顶部的「浏览器」,确认右侧面板的地址、标签页和网页内容都正确。内容多时点「全屏」放大。+3. 需要自己点击或输入时点「接管」。操作完交还给 Bot,再在聊天里说明要继续检查什么。敏感账号与表单请在你自己的浏览器里处理。+4. 检查网页结构时点「选元素」,用「诊断」查看页面信息。如果本机预览失效,先回到后台命令卡片确认服务仍在运行。diff --git a/docs/guide/zh/04-folders-and-changes.md b/docs/guide/zh/04-folders-and-changes.mdindex 3521683..7b35525 100644--- a/docs/guide/zh/04-folders-and-changes.md+++ b/docs/guide/zh/04-folders-and-changes.md@@ -10,6 +10,7 @@ Bot 在**工作文件夹**里读写文件、运行命令。每个话题有自己- [改动面板](#改动面板)- [请别的 Bot 独立审查](#请别的-bot-独立审查)- [提交](#提交)+- [Git](#git)- [独立工作区](#独立工作区)- [交付物放在哪里](#交付物放在哪里)@@ -32,6 +33,8 @@ Bot 在**工作文件夹**里读写文件、运行命令。每个话题有自己## 可写文件夹与只读参考++一个话题可以有多个文件夹:- **主文件夹**:可以读写(仍受权限限制)。@@ -99,9 +102,18 @@ Bot 改了文件后,聊天顶部的「改动」按钮会显示数字。点它- 推送、分支和拉取请求请用 Git 或 GitHub 完成。- Bot 还有后台命令在这个文件夹里运行时,先停止它再提交。+## Git++查看全部未提交的改动、撤回、提交,以及群聊里几个步骤同时做,都要用到 Git。++- **Windows**:安装包自带 Git,第一次用到时自动解压,不用另外安装。+- **macOS、Linux**:电脑上没有 Git 时,在用到的地方(改动面板、群聊的并行步骤)会出现「Pi Bot 需要安装 Git」卡片,写明为什么需要、会做什么、装在哪里。点「安装」后:macOS 打开 Apple 的「命令行开发者工具」安装窗口,在里面点「安装」;Linux 用检测到的系统包管理器安装(卡片上写着具体命令),系统会要你输入管理员密码。Git 装在系统位置,所有程序都能用。这一步在沙箱外运行,只在你点「安装」后执行,并记入「记录」。+- 不想现在装就点「以后再说」:改动面板只显示每一轮改了什么,群聊的并行步骤改为轮流做。+- 没装上时,卡片会说明原因,可以点「重新安装」,或按提示自己装好后点「再检查」。+## 独立工作区-改动面板顶部的「独立工作区」可以给 Git 项目创建一个单独的工作区,让 Bot 在里面改,不影响主项目;完成后再整合回主项目。整合只包含已提交的版本,主项目或工作区有未提交的文件时需要先处理。群聊里的并行开发任务也会自动使用独立工作区(见 [6 · 群聊](06-groups.md))。+改动面板顶部的「独立工作区」可以给 Git 项目创建一个单独的工作区,让 Bot 在里面改,不影响主项目;完成后再整合回主项目。整合只包含已提交的版本,主项目或工作区有未提交的文件时需要先处理。在 macOS 上,群聊里可以同时做的开发步骤也会自动使用独立工作区;在 Windows 和 Linux 上,以及没有 Git 时,这些步骤改为在群的文件夹里轮流做(见 [6 · 群聊](06-groups.md#任务面板与计划))。## 交付物放在哪里diff --git a/docs/guide/zh/05-approvals-and-permissions.md b/docs/guide/zh/05-approvals-and-permissions.mdindex f191a16..eb6f96e 100644--- a/docs/guide/zh/05-approvals-and-permissions.md+++ b/docs/guide/zh/05-approvals-and-permissions.md@@ -11,6 +11,8 @@ Bot 能调用的每个工具都要经过权限判定:允许的直接做,需- [命令隔离(沙箱)](#命令隔离沙箱)- [操作电脑](#操作电脑)- [操作记录](#操作记录)+- [沙箱自检](#沙箱自检)+- [实例:只允许 Bot 在这个项目里执行一次](#实例只允许-bot-在这个项目里执行一次)## 权限设置@@ -63,11 +65,15 @@ Bot 能调用的每个工具都要经过权限判定:允许的直接做,需+**脚本按内容判断**:Bot 要运行脚本(例如 `python 整理.py`)时,Pi Bot 会先读脚本内容。只读取、没有危险操作的脚本直接运行,不弹卡;有风险的才弹审批卡,卡上标明「按内容核对过的脚本(内容改了会再问)」。脚本在检查之后被改动时,这条命令不会执行。+聊天里的审批卡 10 分钟内没处理,任务会暂停等你;例行任务的审批放在「待办」里,24 小时内没处理会自动拒绝。审批卡没处理时,你新发的消息会在审批处理后作为新请求发送。## 记住的授权-点了「一直允许」的授权记在这个 Bot 上,可以在它资料面板的「权限」标签里查看和撤销。例行任务还有「本任务预授权」,只对那个任务有效(见 [7 · 例行任务与待办](07-routines-and-todos.md))。+点了「一直允许」的授权记在这个 Bot 上,可以在它资料面板的「权限」标签里查看和撤销。例行任务还有「本任务预授权」,只对那个任务有效(见 [7 · 例行任务与待办](07-routines-and-todos.md#预授权与运行方式))。++## YOLO 模式@@ -92,7 +98,7 @@ Bot 跑的命令默认在隔离环境里运行:只能写工作文件夹,联## 操作电脑-Bot 可以像人一样操作电脑上的应用(点按钮、填内容、截图)。每个任务开始前先弹授权卡。相关设置在 设置 › 操作电脑:+Bot 可以像人一样操作电脑上的应用(点按钮、填内容、截图)。每个任务开始前先弹授权卡,勾选这次能操作哪些应用。卡上默认勾着「要占用前台时先问我」:需要切到前台、会移动你鼠标的步骤,会先弹「前台操作确认」卡,点「允许」或「跳过这步」。要操作的窗口在别的桌面或全屏应用后面时,Bot 会提示你切过去。相关设置在 设置 › 操作电脑:@@ -139,3 +145,19 @@ Linux(在解压的应用目录运行,或将文件名换成下载的 AppImage报告逐项列出通过、失败、跳过、耗时、拦截规则和固定报错特征。检查包括命令隔离、HTTPS 证书、macOS 系统代理读取、临时工作区写入、受保护名称和网站清单拒绝。域名由沙箱代理解析;HTTPS 检查同时覆盖这条解析与连接路径,不单独检查直接 DNS 查询。使用独立临时文件夹与固定网络规则:只允许 `example.com`,尝试 `example.org` 验证阻止是否生效;它不读取你的联网设置,所以结果不代表某个 Bot 当前的授权。检查会访问上述公开测试网站,但不发送聊天、文件或密钥;不安装工具。Windows 没有命令隔离,相关保护检查显示「跳过」,不能把其余项目通过理解为隔离有效。只输出原因码与固定特征,不输出命令原文、PATH、账户、聊天或文件内容,可以把报告复制给开发者。网络/代理或测试站点不可用也会失败,不一定是沙箱问题。正常结束会删除临时文件;如果进程清理未确认,会返回失败并保留临时目录,避免删除仍在使用的文件。退出码 `0` 表示没有失败项,`1` 表示有失败或检查未完成;中断会停止并清理本次检查。++## 实例:只允许 Bot 在这个项目里执行一次++++1. 在聊天顶部确认「工作文件夹」是测试项目,把仅供参考的目录放进只读参考。+2. 在「设置 → 权限」确认「运行命令」为「询问」,再检查该 Bot 的权限页有没有之前保存的授权。+3. 交代任务和边界,例如「列出当前 Git 工作区的改动,先告诉我你打算运行什么命令,不要改文件」。+4. 如果出现审批卡,展开「为什么要问」,核对命令原文、工作目录和程序。只同意这次就点「本次允许」。发现目录或动作超出预期时点「拒绝」,再说明可接受的范围。+5. 结束后打开「操作记录」,按 Bot 和操作类型查找这次决定。涉及文件变更时,在「改动」面板看实际差异。++### 没看到审批卡时排查什么++- **操作直接完成**:先看操作记录中的判定结果,再检查 Bot 保存的授权和这个对话的 YOLO 状态。要恢复询问,撤销对应授权并检查对话模式。+- **Bot 在等待**:打开聊天里的审批卡。例行任务的审批在「待办」。核对请求仍属于这次任务后再决定。+- **操作直接被拒绝**:看判定步骤是命中权限设置还是系统限制。群权限可以缩小成员权限;手机审批也受请求类型限制。调整后,重新发起符合范围的操作。diff --git a/docs/guide/zh/06-groups.md b/docs/guide/zh/06-groups.mdindex 6ad2f06..9d132e9 100644--- a/docs/guide/zh/06-groups.md+++ b/docs/guide/zh/06-groups.md@@ -7,13 +7,15 @@- [新建群聊](#新建群聊)- [在群里派活](#在群里派活)- [任务面板与计划](#任务面板与计划)+- [暂停与继续](#暂停与继续)- [群资料与设置](#群资料与设置)+- [实例:研究员交接给写作 Bot](#实例研究员交接给写作-bot)## 新建群聊1. 点左侧栏顶部的「+」›「新建群聊」(⌘2 / Ctrl+2)。2. 选一个**群聊模板**,或者自己挑成员:- - 模板:内容增长组、轻量开发组、产品研发组、研究小组、学习小组,每张卡片写着适合做什么。选模板会先预览,然后新建模板里的 Bot(用默认模型和角色权限)和群,建好后统筹发一条欢迎消息。+ - 模板:内容增长组、轻量开发组、产品研发组、研究小组、学习小组,每张卡片写着适合做什么。轻量开发组和研究小组随安装包提供,其余模板第一次用时从角色库下载(需要联网)。选模板会先预览,点「建好群和成员 Bot」后新建模板里的 Bot(用默认模型和角色权限)和群;已经有同一角色的 Bot 会直接拉进群,不再新建。建好后统筹发一条欢迎消息。- 自己挑:选 2 到 6 个 Bot。图片 Bot 可以当成员,统筹必须是文本 Bot。3. 填**群名**,选**统筹**。4. 点「创建群聊」。@@ -28,7 +30,8 @@- 直接说要做什么,统筹会决定谁来做;也可以 @ 某个成员让它直接回答。- 群聊同样有「执行 / 只规划」。先用「只规划」让大家分析,满意后点「改成执行」再做。-- 群聊顶部有「自动来回 N / 4 次」:Bot 之间互相回复的次数到上限后会停下来等你。可以打开「暂停自动对话」。+- 群会自己往下推进:统筹拆好任务后,实现、测试、审查依次接力,不用你一步步追问。测试或审查没通过,程序会把问题派回去修,修好后交回同一个角色复验;群里的总结按测试和审查的结论写。+- 群聊顶部显示「自动来回 N / M 次」:Bot 之间互相回复到上限后会停下来等你,你发新消息后重新计数。旁边的「暂停自动对话」开关和下面的「暂停」是同一个操作(见 [暂停与继续](#暂停与继续))。- 每个成员的运行都能单独停止(「停止 … 的这次运行」)。@@ -39,24 +42,49 @@+- **当前计划**:按时间线列出每一步由谁做、要做什么、交付物和检查项,可以同时做的步骤标在一起;下面的「进度」显示每一步进行中、等待中、等你处理、已通过还是未通过,以及已经花了多少。- **主任务**和**子任务**:谁在做什么,进行中还是等你确认。- **已结束的任务**。- **这次用了多少**:本轮所有运行合计的工具次数、模型请求、运行时间和费用(厂商没给价格时说明有几次请求价格未知)。- **群计划记录**:历次执行计划。-复杂任务时统筹会先给出一张**执行计划**卡片:每一步由谁做、依赖哪些步骤、哪些可以同时进行、交付物是什么,以及预估花费。点「开始」执行,或点「修改」说明要调整的内容,再交给统筹重新规划。串行步骤在群的主目录里做;并行的开发任务各自用独立工作区,完成后经统筹审阅和权限审批再合入。+复杂任务时统筹会先给出一张**执行计划**卡片:每一步由谁做、依赖哪些步骤、哪些可以同时进行、交付物是什么,以及预估花费。点「开始」执行,或点「修改」说明要调整的内容,再交给统筹重新规划。++串行步骤在群的主目录里做。可以同时做的开发步骤:在 macOS 上各自用一个独立工作区,完成后经审阅和权限审批再合入群的文件夹;在 Windows 和 Linux 上,以及电脑上还没装 Git 时,这些步骤改为在群的文件夹里轮流做,结果一样,只是慢一些(Git 见 [4 · 工作文件夹与改动](04-folders-and-changes.md#git))。一次全部步骤都通过的计划,可以在它的完成消息上「保存为常用计划」,下次直接运行。+## 暂停与继续++群在干活时,输入框上方有一条状态条,显示正在做第几步、谁在做(例如「计划进行中 · 第 2/4 步 · 小栈:…」),右边是「暂停」按钮。++[](../../assets/pibot-group-pause.mp4)++- **暂停**:正在做的步骤停下来,进度保留,状态条变成「已暂停 · 进度保留,第 N 步「…」停在这里」。步骤里正在跑的命令会被停止;后台运行的服务(比如本地预览)不受影响,继续运行。+- **继续**:点「继续」,被停下的步骤从停下的地方接着做。接着做的 Bot 会知道暂停前它改了哪些文件、跑过哪些命令(被打断的那条标为「被暂停打断」),以及暂停期间有哪些文件被别人(比如你)改过,并重新运行被打断的命令;已经做完的部分不会重做。+- **用聊天说**:直接发「先停一下」「暂停」或「接着做吧」「继续」也行,效果和点按钮一样。只有整条消息就是这个意思时才算;带问题或别的要求的消息照常交给统筹。+- **暂停时照常聊天**:可以问成员问题、自己改文件,Bot 只在你发消息或 @ 它时回答。暂停期间新的计划不会开始。+- 聊天顶部的「暂停自动对话」开关和手机上的「暂停 / 继续」是同一个暂停(见 [11 · 手机 App](11-phone-app.md#对话任务和审批))。+++## 群资料与设置点群名打开群资料面板,有群资料、话题、技能、权限、群设置五个标签。-- **群名**、**统筹**、**自动来回上限**、**群公告**(离开输入框时保存)。+- **群名**、**统筹**、**自动来回上限**、**群公告**(离开输入框时保存)。改群名不会打断正在做的步骤。- **成员**:查看成员、加入新的 Bot。成员的私聊不受影响。- **用过的文件夹**、**运行上限(含费用上限)**。- **技能**:群可以有自己独立的技能清单。- **权限**:群有独立的权限范围,只会收紧,不会放宽成员的权限。- **归档**:停止群的任务,保留聊天和文件;可以在侧栏的「已归档」里恢复。++## 实例:研究员交接给写作 Bot++1. 新建一个包含统筹、研究员和写作 Bot 的群,设好用于交付的工作文件夹。+2. 先选「只规划」,在主群写:「研究员把三份资料的结论和出处记到 research.md。写作 Bot 根据它写 draft.md。先列计划,写作依赖研究完成。」+3. 核对计划卡上的成员、依赖和两个交付物路径,再点「开始」。在顶部「任务」面板跟进每一步。+4. 研究完成后打开 research.md 检查出处。如果写作步骤还在等,先看研究步骤是不是正在等待检查或确认。+5. 初稿完成后在主群打开 draft.md。需要补资料时,在主群引用相关结果再说明缺了什么。diff --git a/docs/guide/zh/07-routines-and-todos.md b/docs/guide/zh/07-routines-and-todos.mdindex 0f9bffe..e6e61cd 100644--- a/docs/guide/zh/07-routines-and-todos.md+++ b/docs/guide/zh/07-routines-and-todos.md@@ -13,6 +13,7 @@- [电脑睡眠和退出后](#电脑睡眠和退出后)- [待办](#待办)- [个人待办](#个人待办)+- [实例:每个工作日整理新文件](#实例每个工作日整理新文件)## 例行任务页@@ -63,7 +64,9 @@## 预授权与运行方式-**本任务预授权**:例行任务运行时你可能不在电脑前,可以提前允许它在工作位置里读文件、列目录、写文件、运行命令、访问网站等。预授权只对这个任务有效,不改变聊天里的授权;危险操作和 sudo 不能预授权,实际执行仍由当前权限和隔离边界判定。操作电脑不能提前允许,用到时会进「待办」。+++**本任务预授权**:例行任务运行时你可能不在电脑前,可以提前允许它在工作位置里读文件、列目录、写文件、运行命令、访问网站等。预授权只对这个任务有效,不改变聊天里的授权;危险操作和 sudo 不能预授权,实际执行仍由当前权限和隔离边界判定。要定期运行脚本时,可以预授权一个确定内容的脚本;脚本内容改了,运行时会再问你。操作电脑不能提前允许,用到时会进「待办」。**运行方式**:@@ -118,3 +121,13 @@每条待办可以「标为完成」「编辑待办」「删除待办」,按「未完成」「已完成」筛选。截止日期不会自动创建日历提醒。++## 实例:每个工作日整理新文件++++1. 在测试目录放几份样例文件。进入「例行任务 → 新建任务」,选擅长整理资料的 Bot。+2. 写明输入与输出,例如「读取工作文件夹里的新增文档,在产出目录生成摘要,列出文件名、结论和未读成功的文件。保留原始文件」。+3. 核对「工作位置」和只读参考,添加「定时 → 工作日」触发器,填写时间并检查时区。+4. 保存前点「试运行一次」。看工作收据里的文件列表和报告路径,有审批时先处理。+5. 保存后,在任务详情确认下一次运行时间。从「运行记录」可区分试运行、手动运行和定时运行。diff --git a/docs/guide/zh/08-connections.md b/docs/guide/zh/08-connections.mdindex 8d75946..d2536be 100644--- a/docs/guide/zh/08-connections.md+++ b/docs/guide/zh/08-connections.md@@ -17,6 +17,7 @@- [导入技能和插件包](#导入技能和插件包)- [知识库](#知识库)- [访问令牌](#访问令牌)+- [邮件](#邮件)## 应用@@ -97,6 +98,8 @@ description: 用户说「准备上线」「发布前检查」网页时使用用「从文件夹导入插件包」或「从链接导入」可以导入现成的技能包(兼容 Claude Code 插件格式),包括带脚本和依赖的大型技能。导入前先预览;包里有出于安全原因不能导入的链接或文件时会拒绝并说明原因。++## 知识库@@ -108,7 +111,18 @@ Bot 只读知识库里的内容,不会修改笔记。## 访问令牌-右上角「访问令牌」集中管理连接用到的令牌(例如从其他工具带过来的)。保存新值后会用新令牌重新连接。令牌加密保存在这台电脑上。+右上角「访问令牌」集中管理连接用到的令牌(例如从其他工具带过来的)。++1. 打开「连接」,点右上角「访问令牌」。窗口会列出各连接使用的令牌和手动添加的令牌;还没有时显示「还没有访问令牌」。++ ++2. 给连接补填或更换令牌时,先核对条目对应的连接,再点该条目旁的按钮。保存新值后,Pi Bot 会用它重新连接。+3. 给命令单独添加令牌时,点左下角「新建令牌」,填写名称和值。令牌加密保存在这台电脑上,保存后只能换值,不能查看原值。++ ++模型 API Key 在「设置 → 模型与密钥」管理,网站账号在「设置 → 权限 → 保存的账号密码」管理。## 邮件diff --git a/docs/guide/zh/09-models-and-keys.md b/docs/guide/zh/09-models-and-keys.mdindex a75192e..69cc78e 100644--- a/docs/guide/zh/09-models-and-keys.md+++ b/docs/guide/zh/09-models-and-keys.md@@ -11,6 +11,7 @@ Bot 用的「大脑」是你选的模型:在线厂商(用 API Key 或 ChatGP- [本地模型和自定义网关](#本地模型和自定义网关)- [联网搜索](#联网搜索)- [每个 Bot 用不同的模型](#每个-bot-用不同的模型)+- [模型连不上时的排查顺序](#模型连不上时的排查顺序)## 默认模型和辅助模型@@ -26,7 +27,7 @@ Pi Bot 内置几十个厂商,按「常用」「聚合与网关」「云厂商1. 在「添加厂商」里点一个厂商,例如 OpenAI。2. 在「API Key」框里粘贴 Key。-3. 点「保存并测试」。测试通过后,可以在默认模型里选这个厂商的模型,或「查看模型列表」。+3. 点「保存并测试」。测试通过后,可以在默认模型里选这个厂商的模型,或「查看模型列表」。厂商已经下线的模型不会出现在列表里;如果默认选的模型已下线(例如测试 Google 的 Key 时),测试会自动换下一个可用的模型。@@ -36,18 +37,21 @@ Key 由这台电脑的系统密钥库加密保存(macOS 钥匙串、Windows## 用 ChatGPT 计划登录-如果你有 ChatGPT Go、Plus、Pro 或 Business 计划,可以不用 API Key,直接用计划的额度运行 OpenAI 模型。计划和 OpenAI API Key 是两个独立的厂商,可以同时用:每个 Bot 各自选 OpenAI 的模型或 ChatGPT 计划的模型,模型选择器里分成「OpenAI」和「ChatGPT 计划」两组。+++如果你有 ChatGPT Go、Plus、Pro 或 Business 计划,可以不用 API Key,直接用计划的额度运行 OpenAI 模型(包括 GPT-6.2 Astra、GPT-6.2 Sol)。计划和 OpenAI API Key 是两个独立的厂商,可以同时用:每个 Bot 各自选 OpenAI 的模型或 ChatGPT 计划的模型,模型选择器里分成「OpenAI」和「ChatGPT 计划」两组。1. 设置 › 模型与密钥,在厂商分组里点「订阅」,选「ChatGPT 计划」。2. 点「通过 ChatGPT 继续」。3. 第一次会说明:登录在 OpenAI 的页面上完成;之后选用这个计划的 Bot,对话内容直接发给 OpenAI,计入你的 ChatGPT 计划用量,不经过其他服务器;登录令牌只加密保存在这台电脑上。点「继续」。-4. 在浏览器里完成登录,浏览器会回到 Pi Bot。如果没有回来,点「浏览器没有回到 Pi Bot?」,把浏览器最后打开的地址粘贴进去,点「完成登录」。+4. 在浏览器里完成登录,浏览器会回到 Pi Bot。如果浏览器显示「无法访问此网站」或没有回到 Pi Bot(例如 Pi Bot 在虚拟机或远程桌面里),点页面上对应的提示链接,把浏览器地址栏里以 `http://127.0.0.1` 开头的完整地址粘贴进去,点「完成登录」。5. 登录后页面显示「已登录:…」,可以「管理用量」或「断开」。之后在 Bot 的模型里选「ChatGPT 计划」组下的模型。注意:- 计划额度用完时会提示「已达用量上限」,可以在 ChatGPT 里管理用量,或在 Bot 设置里改选 OpenAI(API Key)的模型继续。- 登录过期会提示重新登录。+- 「订阅」里还有一个 **ChatGPT(Codex 登录)**:同样用你的 ChatGPT 计划额度,但以 Codex 命令行工具的身份登录,网页上能用 ChatGPT 的账号都能用。先试「ChatGPT 计划」;用的时候提示账号不符合条件,再改用它。它不是 OpenAI 给第三方应用的方式,OpenAI 以后可能限制;登录令牌同样只加密保存在这台电脑上,可以随时断开。- 订阅登录只留在电脑上,不会同步到手机离线模式(见 [11 · 手机 App](11-phone-app.md))。## Claude 订阅@@ -58,15 +62,17 @@ Anthropic 不允许 Claude 订阅登录第三方应用,所以 Claude 在这里## 本地模型和自定义网关+要用 Ollama 在本机推理,先在这台电脑启动 Ollama 并下载一个模型,再到 Pi Bot 的「设置 › 模型与密钥」配置 Ollama,把模型选为默认模型或指定给某个 Bot。发一条测试消息,确认模型能回复。如果辅助模型也需要在本机运行,请设为跟随这一本地模型,或另选一个本地辅助模型。+「本机与自定义」分组:-- **Ollama**、**LM Studio**、**vLLM**:在你电脑上运行的模型服务。选 Ollama 时对话完全不离开这台电脑。-- **自定义(网关 / 中转)**:任何兼容 OpenAI 或其他常见接口的服务。填名称、地址、Key(本机模型可以不填),选接口类型,点「获取模型列表」或「手动添加模型」(模型 ID、上下文长度、最大输出 token 数、是否支持图片和推理),然后保存。+- **Ollama**、**LM Studio**、**vLLM**:可以在你电脑上运行的模型服务。使用本机地址时,发送给该模型的请求留在这台电脑上。联网搜索和连接外部应用各有自己的数据流向。+- **自定义(网关 / 中转)**:任何兼容 OpenAI 或其他常见接口的服务(例如硅基流动、AMD、书生等 OpenAI 兼容接口)。填名称、地址、Key(本机模型可以不填),选接口类型,点「获取模型列表」或「手动添加模型」(模型 ID、上下文长度、最大输出 token 数、是否支持图片和推理),然后保存。系统提示词按标准的 system 角色发出,工具参数也避开了部分网关不认的写法,所以大多数兼容接口都能直接对话。- **Qwen API · 按量**、**Z.ai API · 按量**:按量计费的接口。-如果你的网络需要代理,在 设置 › 通用 › 网络代理 里填写;所有模型厂商都走这个代理,只有本机地址(localhost、127.0.0.1)上的模型服务直接连接。Pi Bot 只用这里填的代理,不读系统代理。+如果你的网络需要代理,在 设置 › 通用 › 网络代理 里填写(欢迎流程里也能设置);所有模型厂商都走这个代理,只有本机地址(localhost、127.0.0.1)上的模型服务直接连接。Pi Bot 只用这里填的代理,不会自动使用系统代理;如果这台电脑正在用代理,地址会预先填好,打开「使用代理」后才生效。## 联网搜索@@ -79,4 +85,15 @@ Anthropic 不允许 Claude 订阅登录第三方应用,所以 Claude 在这里## 每个 Bot 用不同的模型++在 Bot 资料面板 › 资料 › 模型 里给这个 Bot 选别的模型和思考强度(见 [2 · Bot 与角色](02-bots-and-roles.md#资料))。比如让代码审查员用和写代码的 Bot 不同的模型,审查更容易发现问题。++## 模型连不上时的排查顺序++++1. 看报错出在「保存并测试」还是在对话里。测试失败先检查厂商、地址和认证;只在对话中报错,再看 Bot 实际选用的模型。+2. 云模型确认密钥属于该厂商、仍有效并有该模型权限。本机模型确认 Ollama 或 LM Studio 已启动、模型已下载或加载。自定义网关还要核对接口类型。+3. 测试通过后,先用一条短消息验证 Bot 能回复。只在调用工具时失败,就查看该模型是否支持工具调用,再看本轮错误和工作收据。+4. 反馈问题时可说明厂商、模型名和错误文本,去掉 API Key、登录令牌和含凭据的请求地址。diff --git a/docs/guide/zh/11-phone-app.md b/docs/guide/zh/11-phone-app.mdindex 10b8be8..25493c9 100644--- a/docs/guide/zh/11-phone-app.md+++ b/docs/guide/zh/11-phone-app.md@@ -11,12 +11,11 @@- [电脑离线时:手机直接回复](#电脑离线时手机直接回复)- [通知、唤醒和保持连接](#通知唤醒和保持连接)- [解除配对](#解除配对)--> 截图待补:本页的手机界面截图(扫码配对、对话、审批、离线模式)。+- [实例:用手机确认一条桌面任务](#实例用手机确认一条桌面任务)## 安装-手机 App 目前提供安卓版安装包(APK),从官网 [pibot.space](https://pibot.space) 下载安装;电脑端自动更新,手机端需要手动下载新版 APK 更新。iOS 版暂未提供下载。+手机 App 目前提供安卓版安装包(APK),从官网 [下载页](https://pibot.space/cn/download/) 下载安装;电脑端自动更新,手机端需要手动下载新版 APK 更新。iOS 版暂未提供下载。安装完成后打开 Pi Bot,可以从首次启动界面开始配对。## 在电脑上打开远控@@ -44,7 +43,10 @@-2. 手机上:打开 Pi Bot,点「扫码配对」,允许使用相机,扫电脑上的二维码。扫不了时也可以粘贴电脑上复制的配对码。+2. 手机上打开 Pi Bot,进入「连接你的电脑」。点「允许使用相机扫码」,授权后把镜头对准电脑上的二维码。也可以在电脑上复制配对码,再在手机上点「粘贴配对码」。++ +3. 两边会显示同一个安全码。一致说明没有人截获连接,点「一样,完成配对」;不一致就取消重新扫。一台手机最多配对 16 台电脑。@@ -54,23 +56,43 @@手机 App 底部有五个标签:- **对话**:和 Bot、群聊天,和电脑上的是同一份记录。电脑离线时可以继续写,消息会排队,电脑上线后按顺序发出(开了离线回复的 Bot 由手机直接回复,见下文)。++ +- **待办**:月历上看个人待办(和电脑收件箱里的「个人待办」是同一份),点某天看当天的待办,点圆圈标为完成,点一条可以改标题、日期、时间、结束日期、颜色和贴纸,或删除;右上角 + 在选中的那天新建。电脑离线时照样能看能改,改动先存在手机上、标「未同步」,电脑上线后按顺序同步;如果同一条待办之后在电脑上又改过,以较新的改动为准。- **任务**:执行中的任务、群任务、例行任务的运行,可以停止或续跑。++ +- **审批**:等你处理的审批卡,和电脑上的一样写明要做什么、为什么要审批,可以「查看判定步骤」。可以「以后允许这类操作」,危险操作不能记住,需要用面容 ID / 指纹或锁屏密码验证后才能允许。少数审批(如电脑登录、外发草稿)只能在电脑上处理。没处理的审批到时间会自动拒绝,Bot 会换别的办法。++ +- **设备**:配对的电脑和执行端、手机开放给电脑的数据、通知、语言和外观。放宽某个 Bot 的权限、删除记忆、把 Bot 移出群这类操作也要先解锁手机。+在群聊里:++- 顶部的「任务 N/M」打开「任务进度」,列出计划里每一步由谁做、进行中、等待中、等你处理还是已完成,点一步可以看要做的事和结果。+- 卡住、标着「等你处理」的步骤可以点「重试」,让负责的 Bot 再做一次。修改计划、跳过步骤或换人请在电脑上操作。+- 群成员需要你批准的操作,审批卡直接出现在群聊里,可以就地处理。+- 群在干活时可以点「暂停」,进度保留;点「继续」从停下的步骤接着做,和电脑上的暂停是同一个(见 [6 · 群聊](06-groups.md#暂停与继续))。+## 电脑离线时:手机直接回复电脑关机、睡眠或没网时,手机会显示「电脑离线 · 最后在线:…」,在后台安静地重连,电脑回来后自动切回。++如果你在电脑上为这台手机开了离线回复,离线期间和 Bot 的私聊由手机直接调用模型回复:用电脑上那个 Bot 的人设和选定的记忆,只用手机上的能力。在电脑上设置:1. 设置 › 设备 › 点这台手机 ›「电脑离线时」标签。2. 查看「手机直接用的模型」:电脑上 Bot 在用的模型配置和 Key 会自动同步到这台手机,电脑上改了也会跟着变。3. 在「可离线回复的 Bot」里开关每个 Bot。++限制:- 订阅登录(如 ChatGPT 计划)、云厂商凭据、自定义请求头只留在电脑上,用这些的 Bot 不能在手机上离线回复。@@ -83,10 +105,21 @@## 通知、唤醒和保持连接-- Bot 需要你批准或任务完成时,手机会收到通知。通知只有「Pi Bot」和固定短句,不含聊天或审批内容,点开后在 App 里重新读取。+++- Bot 需要你批准或任务完成时,手机会收到通知。通知标题只有 Bot 或群的名字(经推送转来的通知只写「Pi Bot」),正文是固定短句,不含聊天或审批内容,点开后在 App 里重新读取。- 电脑需要用到手机的能力时,可以发一条高优先级推送把手机 App 唤醒。- 安卓上可以打开「保持连接」,用前台服务保持和电脑的连接(默认关闭,更费电)。## 解除配对-手机上:设备 › 选中电脑 ›「解除配对」。这会删除手机上的密钥、缓存和待发消息;电脑上的设备记录需要在电脑的 设置 › 设备 里另外撤销。要换电脑,先解除配对,再扫新电脑的二维码。+在手机上打开「设备」。如果配对了多台电脑,先切换到要解除配对的电脑。向下滚动到「连接」区,点「解除配对」,核对提示后再次点「解除配对」。此操作清除手机上的密钥、缓存和待发消息。电脑上的设备记录要在电脑的「设置 › 设备」里另行撤销。换电脑时,解除配对后扫新电脑的二维码。++++## 实例:用手机确认一条桌面任务++1. 配对后,先在同一局域网测试。确认手机「设备」页显示电脑在线,然后给 Pi 发一条简单消息。+2. 发起一个测试文件夹内的任务。如果需要批准,到手机「审批」核对 Bot、操作和目录,再选择允许或拒绝。少数只能在桌面处理的卡片,请回到电脑。+3. 在手机「任务」里查看进度,完成后打开结果。返回电脑时,确认同一条任务出现在桌面对话中。+4. 一直离线时,确认桌面仍在运行且允许已配对设备连接。更换中继后需要重新配对;普通消息在暂时离线期间会排队。diff --git a/docs/guide/zh/12-updates-and-data.md b/docs/guide/zh/12-updates-and-data.mdindex 5f8d357..74d5a9d 100644--- a/docs/guide/zh/12-updates-and-data.md+++ b/docs/guide/zh/12-updates-and-data.md@@ -14,7 +14,7 @@ Pi Bot 启动后和运行期间每隔几小时向 pibot.space 查询一次新版手动检查:左下角头像 ›「检查更新」。-+发现新版本时:diff --git a/docs/guide/zh/13-privacy-and-security.md b/docs/guide/zh/13-privacy-and-security.mdindex fe82d8a..10eed1b 100644--- a/docs/guide/zh/13-privacy-and-security.md+++ b/docs/guide/zh/13-privacy-and-security.md@@ -48,6 +48,8 @@ Pi Bot 不收集使用数据,不自动上报崩溃。反馈问题只有两种## 密钥++- API Key、登录令牌、保存的账号密码都用系统密钥库加密保存在本机。- 保存后界面不再显示 Key,只显示末尾 4 位。- Key 不写日志、不发给界面、不给 Bot 和模型看。Bot 的浏览器用保存的账号密码自动登录网站时,Bot 和模型也看不到密码。@@ -65,6 +67,8 @@ Pi Bot 不收集使用数据,不自动上报崩溃。反馈问题只有两种## 可追踪++- **工作收据**:每次运行列出读了什么、改了什么、跑了哪些命令、经过哪些审批、花了多少钱、哪些没核实。- **操作记录**:每一次审批、执行和对外发送,只存在本机。- **改动面板**:所有文件改动可以逐行查看、撤回;改动前会自动保留检查点。diff --git a/docs/guide/zh/14-faq.md b/docs/guide/zh/14-faq.mdindex 3fc870d..98eca2f 100644--- a/docs/guide/zh/14-faq.md+++ b/docs/guide/zh/14-faq.md@@ -2,20 +2,42 @@本页内容:+- [关于 Pi Bot](#关于-pi-bot)+- [下载与安装](#下载与安装)- [模型与密钥](#模型与密钥)- [文件夹与命令](#文件夹与命令)- [审批](#审批)+- [群聊](#群聊)- [例行任务](#例行任务)- [执行端与手机](#执行端与手机)- [其他](#其他)+## 关于 Pi Bot++**Pi Bot 是什么?**+Pi Bot 是一款在自己电脑上运行的多 Bot 协作桌面应用,支持 macOS、Windows 和 Linux,代码以 Apache-2.0 开源。你可以让多个 Bot 在同一个群里分工,处理文件、审查代码改动和运行例行任务。桌面版可以独立使用,安卓手机和执行端按需配对。参见 [1 · 安装与第一次使用](01-getting-started.md) 和 [6 · 群聊](06-groups.md)。++**Pi Bot 可以完全离线使用吗?**+可以在本机配置 Ollama,让模型请求留在电脑上。依赖互联网的功能,如联网搜索和连接外部应用,仍然需要网络。参见 [9 · 模型与密钥](09-models-and-keys.md#本地模型和自定义网关) 和 [13 · 隐私与安全](13-privacy-and-security.md)。++## 下载与安装++**我该下载哪个版本?**+在[下载页](https://pibot.space/cn/download/)按设备选择安装包。Mac 上可在苹果菜单「关于本机」查看是 Apple 芯片还是 Intel。Windows 选 EXE,Linux 选 AppImage,安卓手机选 APK。另一台电脑只负责执行时,下载「执行端」。++**macOS 说无法验证 Pi Bot,怎么办?**+Pi Bot 目前还没有经过 Apple 公证。如果确认安装包来自官网并决定继续,先尝试打开一次,再到「系统设置 › 隐私与安全性」点「仍要打开」。参见 [1 · 安装](01-getting-started.md#macos)。++**第一次打开需要配置什么?**+至少需要一个可用的模型。欢迎流程提供推荐的模型来源(中文界面是 DeepSeek,英文界面是 OpenRouter)、ChatGPT 计划、本机 Ollama 和自带 API Key。参见 [1 · 安装与第一次使用](01-getting-started.md#第一次打开欢迎流程) 和 [模型连不上时的排查顺序](09-models-and-keys.md#模型连不上时的排查顺序)。+## 模型与密钥**「保存并测试」失败,提示 Key 无效。**检查 Key 是否完整复制(没有多余空格)、是否属于这个厂商、账户里是否还有余额或额度。厂商控制台里新建的 Key 有时要等一会儿才生效。换了 Key 后重新粘贴并「保存并测试」。**连不上模型厂商。**-如果你的网络需要代理,在 设置 › 通用 › 网络代理 里打开「使用代理」,填地址后点「测试连接」。Pi Bot 不读系统代理。+如果你的网络需要代理,在 设置 › 通用 › 网络代理(或欢迎流程的「需要代理?设置网络代理」)里打开「使用代理」,填地址后点「测试连接」。Pi Bot 不会自动使用系统代理;这台电脑正在用代理时,地址会预先填好,打开开关后才生效。**ChatGPT 计划提示「已达用量上限」。**计划额度暂时用完了。可以在 ChatGPT 里管理用量,或在 设置 › 模型与密钥 › OpenAI 保存一个 API Key,再把 Bot 的模型改成「OpenAI」组下的模型。@@ -48,6 +70,17 @@ Bot 启动的后台命令只能监听本机 127.0.0.1。从后台命令卡片上**点了「一直允许」,想撤回。**在这个 Bot 资料面板的「权限」标签里查看和撤销。+## 群聊++**群里的一个步骤一直显示「等待中」。**+它在等前面的步骤完成,或在等检查结果、你的确认。打开「任务」面板看是哪一步、在等什么;标「等你处理」的步骤可以重试、跳过或改派。在 Windows、Linux 上,以及电脑上没装 Git 时,本来可以同时做的步骤会在群的文件夹里轮流做,后面的要等前一个做完(见 [6 · 群聊](06-groups.md#任务面板与计划))。++**暂停群聊时,正在跑的命令会怎样?**+步骤里正在跑的命令会被停止,进度保留。点「继续」后,接着做的 Bot 知道哪条命令被打断,会重新运行它。后台运行的服务(比如本地预览)不受暂停影响;要停掉它们,在后台命令卡片上点「停止」(见 [暂停与继续](06-groups.md#暂停与继续))。++**提示「Pi Bot 需要安装 Git」。**+macOS 和 Linux 上没装 Git 时会出现这张卡片。点「安装」按提示装好(Linux 会要管理员密码);不想装就点「以后再说」,群里的步骤改为轮流做。Windows 安装包自带 Git,不需要另外装(见 [4 · Git](04-folders-and-changes.md#git))。+## 例行任务**例行任务没有按时运行。**diff --git a/docs/guide/zh/15-self-hosting-relay.md b/docs/guide/zh/15-self-hosting-relay.mdindex 15b69db..6dbef0b 100644--- a/docs/guide/zh/15-self-hosting-relay.md+++ b/docs/guide/zh/15-self-hosting-relay.md@@ -1,5 +1,7 @@# 15 · 自建中继+> 部署中继需要 Pi Bot 的源代码(已在 [GitHub](https://github.com/w01fb0ss/PiBot) 开源)。这里记录从源码部署和验证的步骤。+手机和执行端连电脑时,能直连就直连(局域网或打洞,见第 11 章);直连不通时经**中继**转发。中继只转发端到端加密的数据,看不到聊天、文件和审批内容,也不保存消息。默认用官方中继 `wss://relay.pibot.space`。想完全用自己的服务,可以把中继部署到自己的 Cloudflare 账号上。## 中继能看到什么diff --git a/docs/guide/zh/16-editor-acp.md b/docs/guide/zh/16-editor-acp.mdindex 3ac6c94..a6b76a0 100644--- a/docs/guide/zh/16-editor-acp.md+++ b/docs/guide/zh/16-editor-acp.md@@ -2,6 +2,8 @@支持 [Agent Client Protocol(ACP)](https://agentclientprotocol.com) 的编辑器(如 Zed)可以直接用 Pi Bot 的 Bot 干活:编辑器里发的话由 Pi Bot 的 Bot 处理,命令执行和审批仍走 Pi Bot 在这台电脑上的权限。+反过来,把电脑上的 Codex、Claude Agent 等编程助手作为 Bot 加进 Pi Bot,见 [2 · Bot 与角色](02-bots-and-roles.md#外部-agent)。+## 连接1. 先打开桌面 Pi Bot(ACP 连接的是正在运行的应用,不会另开一个)。