> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/gai-shu/setup-script-guide/4-session-configuration-session-settings.md).

# 4. 会话配置（运行会话配置）

本节用于设置脚本的运行方式、处理流程以及在批量运行时应对错误情况。具体参数如下：

* 🔢 Number of Threads (线程数): 输入您希望软件同时启动和运行的浏览器配置文件数量（例如图中为 `10` 个线程）。根据计算机的配置强弱调整此数字以适应。
* ⏱️ Thread delay (s) (线程延迟时间): 打开此线程与下一个线程之间的间隔时间（以秒为单位）。建议设置为 3-5 秒，以避免计算机同时启动过多浏览器导致卡顿。
* 🛡️ Skip proxy check before opening profile: 如果希望跳过在打开 GPM 登录配置文件之前检查代理的网络连接，请勾选此项（系统不建议选择，因为如果代理失效，浏览器仍会启动但没有网络）。
* ❌ Do not close profile on error: 当工具在某一步骤遇到错误时，浏览器将保持该错误状态而不会自动关闭。此功能非常方便用于检查和调试脚本卡住的位置。
* 🧠 Performance limit at 90%: 将软件的性能限制在最大 90%。启用此选项可以帮助计算机在连续插入多个线程时不至于过载 CPU/RAM。
* 👁️ Hide window when done and active when process resume: 在完成工作后自动隐藏浏览器窗口，并在过程继续运行时重新显示。
* 🖱️ Use virtual mouse: 勾选以使用系统的虚拟鼠标（如图所示已启用）。这有助于模拟更流畅、更像真实人的鼠标移动和点击，最大限度减少被网站检测为机器人。
* 🔄 Restart on error. Number of tries: 如果勾选，当工具运行中途出现错误时，系统将自动关闭该配置文件并重新启动以从头开始运行。您可以在旁边的框中输入希望最大重试的次数。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-zh/gai-shu/setup-script-guide/4-session-configuration-session-settings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
