### horizon-server init, start, status, cmd, backup, service install Source: https://github.com/horizon-rust/horizon/blob/main/packaging/PLAY.txt horizon-server hosts a server using the prepared resources. Commands manage the server: init sets EULA, world, seed, port, and who may join; start runs in the background; status shows TPS, MSPT, players, RAM and CPU; cmd lists commands; backup creates backups; service install starts at boot or login. Settings are in my-server/server.toml. ./horizon-server help lists every command. ```bash ./horizon-server --dir my-server init the EULA, world, seed, port, who may join ``` ```bash ./horizon-server --dir my-server start in the background; also stop, restart ``` ```bash ./horizon-server --dir my-server status TPS, MSPT, players, RAM and CPU ``` ```bash ./horizon-server --dir my-server cmd list ``` ```bash ./horizon-server --dir my-server backup also backups, restore ``` ```bash ./horizon-server --dir my-server service install start it at boot or login ``` -------------------------------- ### Example of [properties] section in server.toml Source: https://github.com/horizon-rust/horizon/blob/main/docs/owners.md Put any other vanilla key under [properties], spelled as vanilla spells it. A key that has a field above is an error under [properties]; set it in its section. ```toml [properties] spawn-protection = 16 resource-pack = "https://example.com/pack.zip" ``` -------------------------------- ### Set up and start the daily version-port agent on macOS Source: https://github.com/horizon-rust/horizon/blob/main/docs/version-ports.md Run these commands on the Mac mini as Ludovic after approval. Creates the version-port label once, downloads the daily script from main, installs and boots the LaunchAgent, then kicks it off for a test run. The log is at ~/Library/Logs/horizon-version-port.log. ```sh # 1. The label publish files issues under (once): gh label create version-port --repo horizon-rust/horizon --color 5319e7 \ --description "Work to port Horizon to a new Minecraft release (tools/version_port.py publish)" # 2. The script, as a copy from main (it updates its own worktree, so it never runs from a checkout): curl -fsSL https://raw.githubusercontent.com/horizon-rust/horizon/main/tools/ci/version-port-daily.sh \ -o ~/code/horizon-parity/version-port-daily.sh # 3. The agent: curl -fsSL https://raw.githubusercontent.com/horizon-rust/horizon/main/tools/ci/dev.horizon.version-port.plist \ | sed "s|@HOME@|$HOME|g" > ~/Library/LaunchAgents/dev.horizon.version-port.plist launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/dev.horizon.version-port.plist # A run now, to see it work (log: ~/Library/Logs/horizon-version-port.log): launchctl kickstart gui/$(id -u)/dev.horizon.version-port ``` -------------------------------- ### horizon-launcher commands with --json Source: https://github.com/horizon-rust/horizon/blob/main/docs/api/launcher.md Shows three example commands for the launcher: listing installed versions, searching mods, and creating a server. Each uses the --json flag for machine-readable output. ```sh horizon-launcher versions --installed --json horizon-launcher mods search minimap --kind mod --json horizon-launcher servers create --name "Weekend" --player Alex --json ``` -------------------------------- ### Install horizon-server as a system service Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Installs the server as a background service that starts with the computer. On Linux it creates a systemd user unit (use --system for a system unit with sudo); on macOS a launchd agent; on Windows a logon task. The service runs the installed 'current' release, so updates apply at next restart. Use 'service print' to preview, 'service uninstall' to remove. ```sh horizon-server service install ``` -------------------------------- ### Install Horizon server and prepare environment Source: https://github.com/horizon-rust/horizon/blob/main/benchmarks/server-equal-mixed-2026-10-18/README.md Downloads and runs the Horizon server install script, then prepares the server jar with horizon-prepare. The --server-jar flag should point to your own copy of the server jar. ```bash curl -fsSL https://raw.githubusercontent.com/horizon-rust/horizon/main/packaging/server/install.sh | sh horizon-prepare --prepare --server-jar /path/to/server.jar # your own copy ``` -------------------------------- ### Install Horizon server on Linux/macOS Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Downloads and runs the official install script for Linux (x86-64) and macOS (Apple Silicon). The script installs Horizon Nightly, verifies SHA-256, and does not require sudo. ```sh curl -fsSL https://raw.githubusercontent.com/horizon-rust/horizon/main/packaging/server/install.sh | sh ``` -------------------------------- ### Install and use cargo-horizon-mod Source: https://github.com/horizon-rust/horizon/blob/main/docs/mods.md Install the cargo-hizon-mod tool and run its main commands: new, run, build, and check. The new command creates a content mod template; run builds and starts the game with the mod; build only packs the mod; check validates a built mod file. ```sh cargo install --git https://github.com/horizon-rust/horizon cargo-horizon-mod cargo horizon-mod new my-mod # a content mod: manifest, one block with its model, loot and recipe cd my-mod cargo horizon-mod run # build my-mod.hmod, then start the game with it turned on cargo horizon-mod build # only build: target/horizon-mod/my_mod.hmod cargo horizon-mod check target/horizon-mod/my_mod.hmod # the registry's checks; --json for JSON ``` -------------------------------- ### Install Horizon server on Windows PowerShell Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Downloads and runs the official install script for Windows (x64) in PowerShell. The script installs Horizon Nightly, verifies SHA-256, and does not require administrator rights. ```powershell irm https://raw.githubusercontent.com/horizon-rust/horizon/main/packaging/server/install.ps1 | iex ``` -------------------------------- ### Run portal_scan_bench example Source: https://github.com/horizon-rust/horizon/blob/main/docs/portal-scan-benchmark.md Runs the benchmark with pinned prepared client resources. Uses the fast profile and 6 build jobs. The example measures the section scan only, not the whole entity_portals span or the rest of the tick. ```sh CARGO_BUILD_JOBS=6 cargo run --profile fast -p horizon-client --example portal_scan_bench -- \ .local/horizon-client/26.3 ``` -------------------------------- ### Start the server in the background and check status Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Starts the server in the background with `horizon-server start` and then checks its status with `horizon-server status`. The status output shows uptime, TPS, MSPT, player count, chunk count, RAM, and CPU usage. ```sh horizon-server start horizon-server status ``` ```text Running, up 29 s TPS 20.0, MSPT 1.0 ms average, 3.1 ms P95 0 of 20 players, 377 chunks loaded RAM 1.42 GB, CPU 2 % of a core ``` -------------------------------- ### Start the web panel Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Run the panel inside horizon-server. Prints a login link valid once for 10 minutes. The panel listens on 127.0.0.1:8130 by default. ```sh horizon-server panel ``` -------------------------------- ### launch Source: https://github.com/horizon-rust/horizon/blob/main/docs/native-client.md Starts the game, opens or creates a world, and waits for it to be ready. ```APIDOC ## [CLI] launch ### Description Starts the game, opens or creates a world, and waits for it to be ready. ### Method CLI command ### Endpoint `horizon-ctl launch` ### Parameters #### Command Arguments - `--world` (string) - Required - World name or type (e.g., Survival) - `--seed` (integer) - Optional - World seed - `--wait` (flag) - Optional - Wait for the world to be ready ### Request Example ```sh horizon-ctl launch --world Survival --seed 5 --wait ``` ### Response #### Success Response No structured response documented. ``` -------------------------------- ### GET /v1/benchmarks/summary Source: https://github.com/horizon-rust/horizon/blob/main/docs/telemetry.md Returns aggregated benchmark uploads grouped by GPU, CPU, render distance, and game. Groups are only shown if they have at least 3 different installs, and only medians and counts are provided to protect privacy. ```APIDOC ## GET /v1/benchmarks/summary ### Description Returns aggregated benchmark uploads grouped by GPU, CPU, render distance, and game. Groups are only shown if they have at least 3 different installs, and only medians and counts are provided to protect privacy. ### Method GET ### Endpoint /v1/benchmarks/summary ### Response #### Success Response (200) - **groups** (array) - Each group contains medians and counts, with breakdowns counting installs per hardware class. ``` -------------------------------- ### Run compositor example Source: https://github.com/horizon-rust/horizon/blob/main/docs/design/compositor.md Run the standalone compositor example without game resources, profiles, audio, or launcher data. The --smoke flag presents 20 frames, switches vsync off, tests zero and oversized dimensions, resizes the window, then exits. ```sh cargo run --profile fast -p horizon-client-render --example compositor ``` ```sh cargo run --profile fast -p horizon-client-render --example compositor -- --smoke ``` -------------------------------- ### Build and run horizon-server with Docker Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Builds a Docker image from the repository and runs the server container. No image is published, so you must build it yourself. Mount your prepared Minecraft folder read-only and set required environment variables; HORIZON_EULA=true accepts the Minecraft EULA, without it the container stops. The first start writes /data/server.toml from the HORIZON_* variables; later starts use the file. The mounted folder must come from release v2026.10.17.07 or newer. ```sh git clone https://github.com/horizon-rust/horizon && cd horizon docker build -f packaging/server/Dockerfile -t horizon-server . docker run -d --name horizon -p 25565:25565 --stop-timeout 180 \ -v horizon-data:/data \ -v /path/to/26.3:/opt/horizon/.local/horizon-client/26.3:ro \ -e HORIZON_EULA=true -e HORIZON_WHITELIST=true -e HORIZON_PLAYERS=Alex,Steve -e HORIZON_OP=Alex \ horizon-server ``` -------------------------------- ### horizon-launcher instance select Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Makes Play start this instance. ```bash horizon-launcher instance select ``` -------------------------------- ### horizon-launcher servers set-up Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Copies an installed, prepared version's programs and game files for the servers (again). This command is also available via MCP as `servers_set_up`. ```APIDOC ## `horizon-launcher servers set-up` ### Description Copies an installed, prepared version's programs and game files for the servers (again). ### Usage ``` horizon-launcher servers set-up ``` ### MCP `servers_set_up` ``` -------------------------------- ### Run tests and start the registry service with environment variables Source: https://github.com/horizon-rust/horizon/blob/main/crates/horizon-mod-registry/README.md Run the test suite against a mock GitHub, then start the service with required environment variables. The command sets REGISTRY_PUBLIC_URL, REGISTRY_SESSION_KEY, GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, GITHUB_BOT_TOKEN, REGISTRY_REPO, and REGISTRY_DB before running cargo run. ```shell cargo test # against a mock GitHub (tests/submit.rs) ``` ```shell REGISTRY_PUBLIC_URL=http://localhost:4173 REGISTRY_SESSION_KEY=... GITHUB_CLIENT_ID=... GITHUB_CLIENT_SECRET=... \ GITHUB_BOT_TOKEN=... REGISTRY_REPO=you/horizon-mods-test REGISTRY_DB=/tmp/registry.sqlite3 cargo run ``` -------------------------------- ### horizon-launcher servers set-up Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Copies an installed, prepared version's programs and game files for the servers again. Exposed via MCP as servers_set_up. ```bash horizon-launcher servers set-up ``` -------------------------------- ### Build and run horizon-relay from source Source: https://github.com/horizon-rust/horizon/blob/main/docs/play-with-friends.md Build the relay binary with Cargo and run it on port 7000. Requires Rust and the repository source. The relay listens on TCP port 7000 and also answers GET /health and GET /whoami. ```bash cargo build --release -p horizon-relay PORT=7000 ./target/release/horizon-relay ``` -------------------------------- ### Install and use horizon-shader CLI Source: https://github.com/horizon-rust/horizon/blob/main/docs/shaders.md Install the horizon-shader tool and run new, check, and pack commands. The pack command checks then writes a .hshader file beside the folder. ```sh cargo install --path crates/horizon-shader-api # or: cargo run -p horizon-shader-api --bin horizon-shader -- horizon-shader new my_pack --template post # also: --template sky, --template material; --name "My Pack" horizon-shader check my_pack # what the game, the launcher and the registry will check horizon-shader pack my_pack # check, then write my_pack-0.1.0.hshader beside the folder ``` -------------------------------- ### Run DualSense example without the game Source: https://github.com/horizon-rust/horizon/blob/main/docs/controllers.md Plays each output on a connected pad and reads back the pad's reports, including trigger effects and accelerometer shake while motors run. Use `watch` to log the shake while the game drives the pad. ```shell cargo run -p horizon-dualsense --example dualsense -- all ``` -------------------------------- ### horizon-launcher instance select Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Makes the Play button start the specified instance. ```APIDOC ## horizon-launcher instance select ### Description Makes the Play button start the specified instance. ### Command `horizon-launcher instance select ` ### Parameters - `INSTANCE` (string) - Required - The instance identifier. ### MCP `instance_select` ``` -------------------------------- ### Launch and drive the game with horizon-ctl Source: https://github.com/horizon-rust/horizon/blob/main/AGENTS.md Starts the horizon-client beside horizon-ctl. Other arguments go to the game. Requires the vanilla data in .local/. Use the state, keys, turn, command, screenshot, or quit subcommands to control the game. ```sh target/fast/horizon-ctl --socket $PWD/ctl.sock launch --world W --creative --offscreen --wait --resources $PWD/.local/horizon-client/26.3 ``` ```sh horizon-ctl --socket … state|keys|turn|command|screenshot|quit ``` -------------------------------- ### Run the server in the foreground Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Starts the server in the foreground with the console on the terminal. Press Ctrl-C to stop it cleanly. ```sh horizon-server run ``` -------------------------------- ### Reproduce benchmark and checks Source: https://github.com/horizon-rust/horizon/blob/main/benchmarks/model-state-parse-2026-10-14.md Commands to run the model_states_bench example and validation tests. Set CARGO_TARGET_DIR to a writable path; the example creates and removes fixtures in the system temporary directory. ```sh export CARGO_TARGET_DIR=/home/bob/Documents/horizon/target export CARGO_INCREMENTAL=0 cargo run -p horizon-client --profile fast --example model_states_bench -- 15 cargo test -p horizon-client --profile fast --example model_states_bench cargo clippy -p horizon-client --all-targets --profile fast -- -D warnings cargo fmt --all -- --check ``` -------------------------------- ### horizon-server cmd pregen start 2500 Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Runs the pregen command to generate the world around spawn ahead of players. Requires 'horizon-pregen = true' under [properties] in server.toml; otherwise it is off. ```text horizon-server cmd pregen start 2500 ``` -------------------------------- ### Build Horizon from source for other systems Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Builds Horizon client and server from source for systems not covered by the install scripts, such as Linux on ARM. Both programs must be kept in one folder. ```sh cargo build --release -p horizon-client --bin horizon-client -p horizon-server ``` -------------------------------- ### GET /api/mods/auth/login Source: https://github.com/horizon-rust/horizon/blob/main/crates/horizon-mod-registry/README.md Starts the GitHub sign-in flow. The optional `back` query parameter specifies the page to return to after authentication. ```APIDOC ## GET /api/mods/auth/login ### Description Starts the GitHub sign-in flow. The optional `back` query parameter specifies the page to return to after authentication. ### Method GET ### Endpoint /api/mods/auth/login ### Parameters #### Query Parameters - **back** (string) - Optional - The page to return to after sign-in, e.g., `/mods/` or `/mods`. ### Response Redirects to GitHub for authentication. ``` -------------------------------- ### horizon-controller.txt configuration example Source: https://github.com/horizon-rust/horizon/blob/main/docs/controllers.md Controller settings are stored in horizon-controller.txt next to options.txt. Only bindings that differ from defaults are written. Deadzones are radial and look uses a squared curve. ```plaintext enabled:true vibration:true adaptiveTriggers:true lightbar:health lookSensitivity:0.5 invertX:false invertY:false moveDeadzone:0.15 lookDeadzone:0.12 triggerThreshold:0.4 toggleSneak:true glyphs:auto bind_key.jump:south bind_pad.hotbarNext:rb ``` -------------------------------- ### horizon-launcher instance list Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Lists all instances with their game folders, marking the one that Play starts with an asterisk. ```APIDOC ## horizon-launcher instance list ### Description Lists all instances, each with its game folder. The instance that Play starts is marked with an asterisk (*). ### Command `horizon-launcher instance list` ### MCP `instance_list` ### Parameters None ### Response A list of instances with their game folders, the Play instance marked with *. ``` -------------------------------- ### Initialize a new server directory with horizon-server init Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Creates a new server folder and runs the interactive `horizon-server init` command. The init command asks five questions (EULA agreement, world name/seed, port, whitelist, operator) and writes `server.toml`. Only agreeing to the Minecraft EULA writes `eula=true`. ```sh mkdir my-server && cd my-server horizon-server init ``` -------------------------------- ### horizon-launcher game-args Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Show or set the extra arguments the game starts with (for example --server-thread); quotes group a word with spaces in it. ```APIDOC ## horizon-launcher game-args ### Description Show or set the extra arguments the game starts with (for example --server-thread); quotes group a word with spaces in it. ### Usage `horizon-launcher game-args [ARGS]` ### Parameters - `ARGS` (string) - Optional - Omit to show the current arguments ### MCP `game_args` ``` -------------------------------- ### Build and run graphics benchmark Source: https://github.com/horizon-rust/horizon/blob/main/docs/graphics.md Builds the client binary and runs the graphics benchmark tool. The first command compiles the client. The second runs the benchmark on a virtual screen with lavapipe for CPU-side numbers. The third runs it offscreen on the desktop's RTX 4080. The fourth compares two benchmark results and outputs a markdown table. ```sh cargo build --release -p horizon-client --bins ``` ```sh python3 tools/graphics_bench.py --label mine # lavapipe on vscreen: CPU-side numbers ``` ```sh python3 tools/graphics_bench.py --label mine-gpu --offscreen # the desktop's RTX 4080 ``` ```sh python3 tools/graphics_bench.py --compare baseline-4080 mine-gpu # markdown table ``` -------------------------------- ### horizon-launcher game-args Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Show or set the extra arguments the game starts with (for example --server-thread); quotes group a word with spaces in it. Omit ARGS to show the current arguments. ```text horizon-launcher game-args [ARGS] ``` -------------------------------- ### Run horizon-server init non-interactively with flags Source: https://github.com/horizon-rust/horizon/blob/main/docs/hosting.md Runs `horizon-server init` from a script using flags for every question. `--eula` accepts the EULA, `--world` sets the world name, `--seed` sets the seed, `--port` sets the port (default 25565), `--whitelist` enables the whitelist, `--player` adds a player, `--op` makes the first player an operator, and `--yes` confirms all prompts. `--no-whitelist` disables the whitelist and `--offline` disables online mode. ```sh horizon-server init --eula --world survival --seed 12345 --port 25565 --whitelist --player Alex --op Alex --yes ``` -------------------------------- ### Run explore benchmark at equal rate Source: https://github.com/horizon-rust/horizon/blob/main/benchmarks/server-equal-work-2026-10-17/README.md Runs the explore benchmark with a fixed explore speed of 0.8 blocks per second for both servers, using fewer bots and the same SSH setup. ```bash python3 tools/server_bench.py --servers horizon,vanilla --bots 1,10,25 --behaviour explore \ --explore-speed 0.8 --gamerule locator_bar=false --nice 19 ... --out explore-equal-rate.json ``` -------------------------------- ### GET /v1/aggregate Source: https://github.com/horizon-rust/horizon/blob/main/docs/telemetry.md Returns anonymous aggregate totals used by the website's results page. The response includes breakdowns of play sessions by hardware class, with installs, sessions, hours, and mean p50 and p99 frame times. ```APIDOC ## GET /v1/aggregate ### Description Returns anonymous aggregate totals used by the website's results page. The response includes breakdowns of play sessions by hardware class, with installs, sessions, hours, and mean p50 and p99 frame times. ### Method GET ### Endpoint /v1/aggregate ### Response #### Success Response (200) - **breakdowns** (object) - Breakdown of play sessions by hardware class, each with installs, sessions, hours, and mean p50 and p99 frame times. ``` -------------------------------- ### Example .hpack manifest (horizon-modpack.toml) Source: https://github.com/horizon-rust/horizon/blob/main/docs/api/mod-index.md Defines a modpack zip's manifest. The mods are not inside; the launcher downloads each from the index and checks it. Unknown keys are refused. `overrides/` may hold only specific files, each at most 64 MiB and 256 MiB in all. ```toml format = 1 id = "cozy" # [a-z0-9_]{1,64}: the profile's folder name = "Cozy" version = "1.0.0" description = "Coordinates and a calm render distance." authors = ["Horizon"] game = "26.3" [[mods]] id = "coords_hud" version = "0.1.0" sha256 = "e1135345692f6dd8fd4c51920151944b82333e17049c9bb7d756f27b8deefc53" on = true # optional, default true: turned on in the profile's horizon-mods.txt ``` -------------------------------- ### horizon-launcher modpack port Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Gets the jars of what this computer can port and carries them over. The PACK argument is the pack's folder name as shown by list. Use --from to specify a folder with your own jars (an installed instance or downloads folder). MCP: modpack_port. ```bash horizon-launcher modpack port ``` -------------------------------- ### horizon-launcher versions Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Lists Horizon releases or installed versions. Use --installed to only show versions installed locally without network access. ```text horizon-launcher versions ``` -------------------------------- ### Build Horizon binaries for benchmark Source: https://github.com/horizon-rust/horizon/blob/main/benchmarks/server-equal-work-2026-10-17/README.md Builds the required Horizon client, server, and bots binaries in release mode before running the benchmark. ```bash cargo build --release -p horizon-client --bin horizon-client -p horizon-server -p horizon-bots ``` -------------------------------- ### horizon-launcher install Source: https://github.com/horizon-rust/horizon/blob/main/docs/launcher-commands.md Downloads and installs a release specified by a tag (e.g., v2026.10.13) or 'latest'. ```text horizon-launcher install ``` -------------------------------- ### Reproduce benchmark with tools/perf_bench.py Source: https://github.com/horizon-rust/horizon/blob/main/docs/benchmark.md Runs the benchmark for Horizon, vanilla, and modded vanilla, then generates a comparison table. Requires Horizon built with 'cargo build --release -p horizon-client --bins', resources from your own copy of 26.3, Java 25 with javac, and Python 3.10+. Results are saved to 'benchmarks/perf/' with labels like '