连接、游戏配置、命令行与提示词
English · 简体中文
[A. 连接](#connection) · [B. 游戏配置](#games) · [C. 命令行](#command-line) · [D. 运行模式](#modes) · [E. 提示词](#prompts) ## A. 连接服务 默认连接同一台电脑的 `http://localhost:8000`:游戏与 Client 在 Windows 中运行,Server 在本机 WSL2 中运行。Windows 可通过 `localhost` 访问 WSL2 内的网络服务,见 [Microsoft WSL 网络说明](https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-linux-networking-apps-from-windows-localhost)。| 环境变量 | 说明 | 默认值 |
|---|---|---|
MODEL_ |
服务地址 | http:/ |
MODEL_ |
完整的 / 地址(设置后优先于 MODEL_) |
无 |
MODEL_ |
模型名 | Lumine2 |
MODEL_ |
API Key | 无 |
MODEL_ |
单次生成的最大 token 数 | 512 |
MODEL_ |
请求超时(秒) | 60 |
| 配置项 | 位置 | 说明 |
|---|---|---|
default_ |
仅顶层(必填) | 默认任务指令,替换提示词中的 <instruction> |
instruction |
仅 games.<游戏>(可选) |
该游戏的任务指令,覆盖 default_ |
default_ |
仅顶层(必填) | 默认的批次交接时先松开的按键 |
handoff_ |
仅 games.<游戏>(可选) |
该游戏的交接按键,整个替换 default_ |
process_ |
仅 games.<游戏>(可选) |
游戏进程名,用于自动聚焦窗口;不写则需手动切回游戏 |
| 参数 | 说明 | 默认值 |
|---|---|---|
--game |
游戏名,即 prompts/ 下的文件名(不含 .txt) |
不传时列出所有游戏供选择 |
--instruction |
任务指令,覆盖 config.json 中的指令 |
使用 config.json |
--process-name |
游戏进程名(如 GTA5.exe),用于自动聚焦窗口,覆盖 config.json 中的 process_ |
使用 config.json;都没有时手动切回游戏 |
--start-delay |
启动后等待多少秒再开始控制游戏 | 5 |
--monitor-index |
截图的显示器编号,从 1 开始;只有一块屏幕时不用设置 | 1 |
--max-steps |
最多推理次数,0 表示持续运行 |
0 |
--execution-data-path |
JSONL 日志路径 | execution_ |
--config |
配置文件路径 | client/ 目录的 config.json |
| 服务端模式 | 客户端模式 | 提示词结尾 |
|---|---|---|
reasoning: true |
Reasoning | prompts/ |
reasoning: false |
Instant | prompts/ |