Client Installation Guide

From dependency setup to running your game, in five steps.

English · 简体中文

Quick start · Client · Configuration · Server installation

01
Install
Python

02
Connect
HTTP

03
Configure
Config

04
Run
Game

05
Stop
JSONL

> Run these commands from `client/` on Windows with Python 3.10+. By default, start Server in WSL2 on this same PC using the [server guide](../../server/docs/INSTALL.md); run the game and Client on Windows. ## 1. Install Run the installer in Windows PowerShell to prepare Python and the client dependencies: ```powershell powershell -ExecutionPolicy Bypass -File .\install.ps1 ``` > **Completion check** > > Help lists `--game` and other options, followed by `Client installation complete`.
Notes: installation and capture The installer uses [uv](https://docs.astral.sh/uv/getting-started/installation/) to prepare Python 3.13 and a Windows environment in `client/.venv`. It reuses an existing valid Windows Python 3.10+ environment. A failed installation command stops the script immediately. Alternatively, prepare your own Python environment and install manually: ```powershell python --version python -m pip install -e . lumine2-client --help ``` This installs `lumine2-client`. Reinstall with `python -m pip install -e .` after changing the package structure or command entry point. Screen capture uses Windows Graphics Capture (WGC) exclusively; there is no capture-backend option. Open the game manually before starting the client. Source and editable installs read default configuration and prompts from the checkout, even from another working directory. A standalone wheel includes prompts; provide `config.json` in your working directory or select it with `--config`.
## 2. Connect Connect to the server running on this same PC: ```powershell $env:MODEL_BASE_URL="http://localhost:8000" Invoke-RestMethod "$env:MODEL_BASE_URL/health" ``` > **Completion check** > > The response reports server status, including `reasoning` and `action_window_frames`. For a separate host, change the server address. See [configuration A](CONFIGURATION.md#connection) for environment variables, `.env` and connection troubleshooting.
Notes: server modes and idle timeout In local WSL2, complete [server installation](../../server/docs/INSTALL.md), set `MODEL_PATH`, and enter `server/`. The launcher listens on port 8000 by default. Choose one mode: ```bash # Reasoning mode: defaults to --action-window-frames 120 --force-thinking-steps 120 bash start.sh --reasoning --reasoning-history-rounds 15 --idle-reset-secs 3600 # Instant mode bash start.sh --no-reasoning --action-window-frames 135 --idle-reset-secs 3600 ``` The server's default idle timeout is 10 seconds. Switching away from the game can exceed it and clear history, so 3600 seconds is recommended for evaluation sessions.
## 3. Configure Open [config.json](../config.json) and confirm the task. To focus the game automatically, set `process_name` to its actual executable name; omit it for manual focus. Game names match filenames in `prompts/games/` without `.txt`. Omit `--game` at startup to choose interactively. > **Completion check** > > The game is selected and its instruction and process name match your setup. See [configuration B](CONFIGURATION.md#games) for fields, precedence and batch-handoff keys. ## 4. Run For Cyberpunk 2077, open the game and enter a playable scene, then run: ```powershell $env:MODEL_API_URL="http://127.0.0.1:8000/v1/chat/completions" .\.venv\Scripts\python.exe run.py ` --process-name "Cyberpunk2077.exe" ` --game "cyberpunk_2077_en" ` --instruction "Progress through the main storyline" ` --start-delay 5 ` --max-steps 0 ` --execution-data-path "execution_data/cyberpunk2077_run1.jsonl" ``` Match the API port to Server in step 2. `--start-delay 5` waits five seconds before control begins; `--max-steps 0` runs until you stop it manually. `--execution-data-path` selects the log file. Use a new filename for each test; reusing one appends records. Switch to the game during the countdown; with a process name configured, the client attempts automatic focus. With your own Python environment activated, `python run.py` and `python -m lumine2_client` accept the same arguments. > **Completion check** > > The terminal reports the effective task and server settings, and the game starts receiving actions with per-step logs. See [configuration C](CONFIGURATION.md#command-line) for startup arguments.
Notes: focus, retries and shutdown 1. Startup prints the effective instruction, handoff keys, prompt files and log path so you can confirm the selected configuration. 2. The client connects to the server and checks its configuration, failing immediately if it does not meet the requirements. 3. After the `--start-delay` countdown, a configured process name is used to focus the game. If automatic focus fails, you have 10 seconds to switch manually. Without a process name, switch during the countdown; the foreground window at its end becomes the game window. 4. Evaluation starts. If the game loses focus, all keys are released and input pauses; switching back within 10 seconds resumes execution, otherwise the client exits. Transient network/server failures—including timeouts, HTTP 5xx and HTTP 409 when the inference slot is busy—and parsing failures trigger retries with backoff. After five consecutive invalid actions, the client calls `/reset` to clear server context and recover. 5. Press Ctrl+F12 or Ctrl+C to stop. Normal stops and error exits release model-controlled keys. An unfinished HTTP request is allowed to return or time out in the background before its connection closes; stopping does not wait for it.
## 5. Stop & Logs Press **Ctrl+F12** or **Ctrl+C** to stop. The client releases model-controlled keys. Run logs are saved under `execution_data/` by default, with server settings in the accompanying `.server.jsonl` file. > **Completion check** > > Control has stopped, and `execution_data/` contains the JSONL run log and its `.server.jsonl` configuration record.
Notes: log format and timestamps Each step writes a JSONL record, by default under `execution_data/`. Server configuration is saved beside the log in a `.server.jsonl` file. Human-readable timestamps use the runtime machine's local timezone and include the UTC offset, for example `2026-11-29T15:36:38.443+08:00`. `log_timezone` records that offset; `*_at_unix` fields are timezone-independent Unix timestamps.
## If a Step Fails | Step | Problem | What to check | |:---:|---|---| | [01](#step-1) | Installation stops | Read the last error, fix it and rerun `install.ps1`; see this step's notes for manual installation | | [02](#step-2) | Connection failure | Confirm Server is running and the address and port match; see [connection troubleshooting](CONFIGURATION.md#connection) | | [04](#step-4) | Game is not focused | Check `process_name` or switch to the game manually during the countdown | | [05](#step-5) | Run logs not found | Check the log path printed at startup; logs and server settings default to `execution_data/` |