Skip to content

Overview

The Void client image runs a demo-mode Minecraft client that can be controlled over HTTP. It is intended for automated workflows such as integration tests, demonstrations, and compatibility checks. Void uses the same image for its own integration tests and online demo. The demo starts the newest Minecraft release that has a stable NeoForge build and that its Paper server accepts, and adds Sodium when a build for that version is available.

Run the current image and publish its HTTP port:

Terminal window
docker run --name void-client --rm -d -p 8080:80 \
ghcr.io/void-community/portable-minecraft-client:latest

Wait until the client service is ready:

Terminal window
curl --fail http://localhost:8080/api/health

Start the newest Minecraft release that has a stable NeoForge build:

Terminal window
curl --fail-with-body \
--request POST \
--header 'Content-Type: application/json' \
--data '{"arguments":["--username","TestPlayer"]}' \
http://localhost:8080/api/game/start/neoforge

The start request returns 202 Accepted. Poll the returned operation with:

Terminal window
curl --fail http://localhost:8080/api/game/status

When state is ready and operationState is succeeded, connect the game:

Terminal window
curl --fail-with-body \
--request POST \
--header 'Content-Type: application/json' \
--data '{"host":"minecraft-server","port":25565}' \
http://localhost:8080/api/game/connect

The container exposes port 80 with two route groups:

Route Purpose
/api/* Control Minecraft and inspect its current state.
/vnc/* View and interact with the Minecraft window in a browser.

Open the browser client at:

http://localhost:8080/vnc/vnc.html?autoconnect=true&resize=scale&path=/vnc/websockify

See the API Reference for every endpoint and Images for available tags.

One container runs one Minecraft game at a time. Stop the current game before starting another:

Terminal window
curl --fail-with-body --request POST http://localhost:8080/api/game/stop

After the status returns to idle, the same container can start another version or connect to another server. The container itself does not need to be recreated between game sessions.

Save the sessionId returned by the start request. After the test, stop Minecraft and download /api/game/diagnostics/{sessionId} before removing the container. The ZIP retains the session’s operation history, recent output, available Minecraft failure reports, and a failure screenshot when capture succeeds. It remains available when another Minecraft version starts in the same container, until retention limits expire it.

See the diagnostics API reference for request examples, bundle contents, retention settings, and persistent-volume configuration.

Void’s integration harness plays one game through several tests, leaving the server with POST /api/game/disconnect between them, and downloads a bundle whenever a game stops, including failed launches. This also preserves evidence for assertions that fail after the game has stopped. Each game’s bundle is stored at steps/Games/<protocol>/<username>/client-diagnostics-<sessionId>.zip, while each test’s screenshots and client, server and proxy logs are stored under steps/<test>/<protocol>/<username>/. Forge and NeoForge games add the loader after the first folder, such as steps/Games/<loader>/<protocol>/<username>/, where a game-setup.json names the loader build and the mods every side ran. Download the integration-steps-<os>-<shard> artifact from the GitHub Actions run to inspect it.

Collection uses a separate timeout so a canceled test can still save evidence. If an older image lacks the endpoint, or the API cannot be reached, client-diagnostics-error.txt explains the collection failure without replacing the test’s original error.