Get started

Quick start

Install valkyr, start the server with a generated config, send your first events and read a verdict, in about five minutes.

1. Install

Pick one. All of them give you the same two programs, valkyr and valkyr-server, plus the C library.

  • Setup app. Download valkyr-setup for your system from the latest release. It installs for your user only, without admin rights, and checks every file against the signed manifest.
  • Native package. MSI on Windows, pkg or dmg on macOS, AppImage, deb or rpm on Linux. See Downloads.
  • Archive. A zip or tar.gz per target, for servers and CI.
  • Container. docker pull ghcr.io/kwy404/valkyr-server:latest.
  • From source. cargo build --release -p valkyr-server in a checkout of the repository.

Check the download with SHA256SUMS from the same release:

ShellShell
sha256sum -c SHA256SUMS --ignore-missing

2. Write a config and start the server

terminalShell
# 1. Write a config with fresh random API keysvalkyr init --path valkyr.toml # 2. Run the server (listens on 127.0.0.1:7420 by default)valkyr run --config valkyr.toml # 3. From another terminal: it answers without a keycurl -s http://127.0.0.1:7420/v1/health

valkyr init writes a commented valkyr.toml with fresh random API keys: one for the game server (ingest), one for read access, one for a juror, one for moderation and one admin key. Keep the file private.

The health endpoint needs no key:

JSONJSON
{"status":"ok"}

3. Send events from your game server

The game server posts batches of events for a match. Use the ingest key from valkyr.toml:

ShellShell
curl -s http://127.0.0.1:7420/v1/matches/m1/events \  -H "Authorization: Bearer $VALKYR_INGEST_KEY" \  -H "Content-Type: application/json" \  -d '{"events":[{"type":"frame","player":7,"seq":1,"client_time_ms":0,"server_time_ms":30,"position":{"x":0,"y":0,"z":0},"yaw":0,"pitch":0,"on_ground":true,"jump":false}]}'

The response lists any verdicts the batch produced. Each verdict carries the rule, a one line summary, the evidence with observed values and limits, the player's trust and the recommended action.

Use a bridge

For an existing game you do not write this yourself. Install the bridge for your platform from the Games section; it sends the events and applies actions for you.

4. Read what valkyr thinks

ShellShell
curl -s http://127.0.0.1:7420/v1/players/7/trust    -H "Authorization: Bearer $VALKYR_READ_KEY"curl -s http://127.0.0.1:7420/v1/players/7/verdicts -H "Authorization: Bearer $VALKYR_READ_KEY"

Bridges poll GET /v1/actions to learn which players to warn, kick or ban, or you can receive the same decisions as webhooks.

5. Turn on enforcement slowly

Start with logging only. Watch the verdicts for a few days, compare them with what your moderators see, then let the bridge act on kick and later on restrict. Permanent bans stay off unless you set a threshold for them in engine.trust.policy.

Try it without a game

The simulator runs whole matches with honest players and cheaters and prints the report:

ShellShell
valkyr simulate --seed 1 --matches 20

Edit this page on GitHub