Send what the server knows
Positions after your movement code ran, shots your server accepted, spawns, item moves. JSON over HTTP, or the C ABI in process.
Server authoritative anti-cheat, open source
valkyr watches what your game server already knows: movement, shots, aim, timing and economy. Every verdict names the rule and the numbers behind it, a single flag never bans anybody, and nothing runs with admin rights on the player's machine.
0.32Review false positives per 1000 honest player matches
16cheat types simulated, with the hard ones published too
3protection tiers. Only the server tier is required; client and kernel stay opt in.
Live simulation
Eight players, one hall. Every signal adds evidence to a player’s ledger, old evidence fades, and a verdict falls only when the probability crosses a threshold you set. Send in a cheater and watch it happen.
Send in a cheater
0.6 review0.85 shadow queue0.97 kick
Simulated in your browser with the default thresholds from valkyr.toml: review at 0.6, shadow queue at 0.85, kick at 0.97, permanent bans off. The weights are illustrative; the engine itself is Rust and runs on your server. The recorded match in the next section is real engine output.
Threat radar
A top down replay of ten players. Three of them cheat. Every pop up is a verdict exactly as the Rust engine exported it: the rule, the measured values, the limit, the trust score and the action the policy picked.
Recorded from the deterministic valkyr simulation (seed 77, 50 s, 10 players) and replayed in your browser from docs/
How it works
Your game server sends events it already produces. The engine runs every detector, turns flags into evidence in a Bayesian trust ledger, and a policy you configure picks the action. Client heartbeats can add hints, never verdicts.
Positions after your movement code ran, shots your server accepted, spawns, item moves. JSON over HTTP, or the C ABI in process.
A flag names its rule, like movement.speed, and lists the measured value, the limit and the unit. No black box verdicts.
Flags add log likelihood ratios to a per player ledger. Evidence fades with a 30 minute half life and kick or restrict needs two distinct rules.
Log, review, shadow queue, kick or restrict at thresholds you set. Permanent bans stay off unless you turn them on.
Protection tiers
Start on the server, where cheats cannot hide their effects. Add the client scanner when you want it. Keep the kernel sensor optional, off by default and consented by the player.
Tier 1, the main defense
valkyr-core and valkyr-server run next to your game server, in user mode, on Windows, Linux or macOS.
Tier 2, optional
The valkyr-client SDK and the valkyr-scan real time scanner run inside the game process, in user mode. They report signed findings; the client never bans or blocks.
Tier 3, opt in
The valkyr-guard kernel sensor: a KMDF driver on Windows that each studio signs and ships, and an eBPF sensor on Linux. Off by default.
Anything on a player's machine can be bypassed by someone determined. That is why tier 1 carries the verdict and tiers 2 and 3 only raise the cost of casual cheats.
Real time detection
The optional valkyr-guard layer watches the game process from the inside and streams signed findings to your server every few seconds. Pick an attack to follow it from the cheater's desk to the verdict.
A memory scanner opens a handle to the game, searches for the ammo or health value and freezes it.
The deep pass lists processes, windows and memory handles. A known tool from the signed pack, or a foreign process holding a write handle, becomes a finding. With the kernel sensor armed, the handle is stripped and reported too.
known_known_memory_
Each batch is signed with a per session Ed25519 key, chained to the previous batch by SHA-256, carries a sequence number and echoes a fresh server nonce. Replays, gaps and forged batches are rejected.
POST /v1/
client.
another process opened or accessed game memory
Client evidence is a hint. A verdict built only from client signals is capped at review unless you list the signal type as strong in the guard section, so server truth (aim, movement, economy) has to agree before anyone is kicked.
A trainer patches a few bytes of the game's code section, or hooks an exported function, to skip recoil or damage checks.
Section hashes from the baseline are rechecked in shuffled 256 KiB chunks with jittered timing, and watched function prologues and import tables are compared, so restoring bytes just before a check does not work.
code_rodata_inline_import_
Each batch is signed with a per session Ed25519 key, chained to the previous batch by SHA-256, carries a sequence number and echoes a fresh server nonce. Replays, gaps and forged batches are rejected.
POST /v1/
client.
game files or code differ from the signed manifest
Client evidence is a hint. A verdict built only from client signals is capped at review unless you list the signal type as strong in the guard section, so server truth (aim, movement, economy) has to agree before anyone is kicked.
An injector starts a remote thread at LoadLibrary, or manually maps a cheat module so it never shows in the module list.
The fast pass catches new modules and threads that start outside any module or at LoadLibrary. The deep pass finds PE images and executable memory that no file backs.
loadlibrary_foreign_manual_preload
Each batch is signed with a per session Ed25519 key, chained to the previous batch by SHA-256, carries a sequence number and echoes a fresh server nonce. Replays, gaps and forged batches are rejected.
POST /v1/
client.
code was started inside the game by another process
Client evidence is a hint. A verdict built only from client signals is capped at review unless you list the signal type as strong in the guard section, so server truth (aim, movement, economy) has to agree before anyone is kicked.
A debugger attaches to step through the game, or sets hardware breakpoints to read values without touching memory.
Debugger state, debug registers and an unusual exception count are checked on the fast pass; on Linux a tracer attached to the process is reported.
debugger_hardware_unexpected_tracer
Each batch is signed with a per session Ed25519 key, chained to the previous batch by SHA-256, carries a sequence number and echoes a fresh server nonce. Replays, gaps and forged batches are rejected.
POST /v1/
client.
a debugger attached to the game
Client evidence is a hint. A verdict built only from client signals is capped at review unless you list the signal type as strong in the guard section, so server truth (aim, movement, economy) has to agree before anyone is kicked.
A cheat loads a known vulnerable signed driver to read game memory from the kernel.
Loaded drivers are matched against the abused driver list in the signed pack; the kernel sensor reports driver loads as they happen.
known_
Each batch is signed with a per session Ed25519 key, chained to the previous batch by SHA-256, carries a sequence number and echoes a fresh server nonce. Replays, gaps and forged batches are rejected.
POST /v1/
client.
a known vulnerable kernel driver loaded
Client evidence is a hint. A verdict built only from client signals is capped at review unless you list the signal type as strong in the guard section, so server truth (aim, movement, economy) has to agree before anyone is kicked.
The cheater suspends or kills the scanner thread, or blocks its traffic, hoping the server just sees nothing.
Silence is a signal. The server raises a flag when batches stop arriving, when the client clock runs at under half speed, when the pass counter stops or when findings were dropped.
silentfrozenstalled
Each batch is signed with a per session Ed25519 key, chained to the previous batch by SHA-256, carries a sequence number and echoes a fresh server nonce. Replays, gaps and forged batches are rejected.
POST /v1/
client.
the protection layer stopped answering
Client evidence is a hint. A verdict built only from client signals is capped at review unless you list the signal type as strong in the guard section, so server truth (aim, movement, economy) has to agree before anyone is kicked.
Discord overlays, Steam, virtual machines and remappers are normal. Those signals have low caps on purpose and only add context. Local names never leave the machine in clear text: a finding carries a pack entry id or a hash salted per session.
| Signal | Rule | Severity | Weight (LLR) |
|---|---|---|---|
integrity_game files or code differ from the signed manifest | client. | 0.5 | 0.8 |
injected_code was started inside the game by another process | client. | 0.6 | 1 |
memory_another process opened or accessed game memory | client. | 0.5 | 0.8 |
debuggera debugger attached to the game | client. | 0.4 | 0.6 |
heartbeat_the protection layer stopped answering | client. | 0.3 | 0.4 |
vulnerable_a known vulnerable kernel driver loaded | client. | 0.4 | 0.6 |
unsigned_an unsigned kernel driver loaded | client. | 0.3 | 0.4 |
event_sensor events were dropped because of a flood | client. | 0.2 | 0.3 |
Generated from crates/
Aimbots and wallhacks
Aim leaves a trace in the view angles the server receives. Wallhacks need information, so the best defense is not to send it.
Human aim is a chain of overlapping corrections: a reaction delay, a fast flick that overshoots, small fixes, tremor. Aimbots skip the chain. valkyr measures snaps that land on a target inside one frame, trigger delays, reaction times and the Fitts law fit of every acquisition.
The culling helper decides, per viewer, which players the server should send at all, with a field of view margin and look ahead so nobody pops in late. Information that never reaches the client cannot be drawn by a wallhack, radar or ESP.
The server can send a fake player to one client at a time, somewhere an honest player could never see it. Honest clients never render it. A cheat that draws every entity draws the decoy, and tracking it twice raises info.decoy, one of the strongest pieces of evidence in the ledger.
For what culling must leave visible, valkyr compares a player's behavior toward hidden enemies with the same enemies seconds earlier, so map knowledge and common angles cancel out. The published evaluation shows this is still hard: see the table below.
Published numbers, including the bad onesMachine learning aim model
The aim models score how human an engagement looks. They run on the server, ship as plain JSON in the repository, explain every score, and are only one input to the trust ledger next to the rules and the population statistics.
The real view movement of every player in the recorded match. Pick a player: honest players move in bursts with curves and corrections, the aimbot snaps in one tick. Markers show when each flag fired.
Player 2 review
aim.snapnoneaim.modellogaim.snapreviewPlayer 5 shadow queue
network.timescale lognetwork.timescale reviewnetwork.timescale shadow queuePlayer 8 shadow queue
movement.teleport logmovement.teleport logmovement.teleport shadow queuemovement.teleport shadow queuePlayer 1 none
No flags in this match.
Player 3 none
No flags in this match.
Player 4 none
No flags in this match.
Player 6 none
No flags in this match.
Player 7 none
No flags in this match.
Player 9 none
No flags in this match.
Player 10 none
No flags in this match.
aim.seq15 inputs per server tick: view angle rates, acceleration, the angle to the nearest visible enemy and its rate, visibility, shots and hits.
yaw_pitch_speedacceloffgriderr_err_errerr_err_visibleon_since_shothit
64 ticks before and 16 after each shot or target acquisition are scored by a small 1D temporal convolution network in plain Rust.
Window scores are calibrated with Platt scaling on held out data, clipped, and averaged over the highest scoring share of a player's windows. aim.seq needs a minimum number of windows before it can fire.
The evidence lists the top windows and the inputs that mattered most: how much the score drops when one input is replaced by its training mean.
The learned and statistical aim rules measure the same engagements, so they form one group: the strongest signal plus 0.5 of the others, capped at 4.5 log odds. The group counts as one independent source, so enforcement still needs a second kind of evidence.
aim.modelaim.seqstats.aim.aim.
Generated from crates/
Two players from the same simulated match, scored tick by tick by the sequence model. The aimbot glues the crosshair to the target after each acquisition; the aggregate crosses the threshold only after enough windows agree.
Final aggregate log odds -2.62 over 23 windows.
Final aggregate log odds 2.25 over 19 windows.
Scores precomputed by the real Rust model and replayed here. Not computed in your browser.
Each curve ranks every honest player match against the cheaters of one family. Higher and further left is better. AUC in the legend.
Logistic aim model on its held out test set: logistic, 14 features, AUC 0.875, threshold 0.97
| aim cheaters above the threshold | 29 / 120 | 24.2% |
|---|---|---|
| honest players above the threshold | 0 / 1120 | 0% |
| Honest player matches that reached Review | 1 / 3100 | 0.3 / 1000 |
| Threshold | False positives per 1000 | Blatant aimbot | Humanized aimbot | Low FOV aim assist | Triggerbot |
|---|---|---|---|---|---|
| 0 | 2.13 (95% bound 5.32) | 100% | 78% | 75% | 83% |
| 0.7724 | 0 (95% bound 1.92) | 100% | 72% | 57% | 82% |
| 1 | 0 (95% bound 1.92) | 100% | 69% | 46% | 81% |
| 1.2724 | 0 (95% bound 1.92) | 100% | 63% | 39% | 79% |
| 1.7724 * | 0 (95% bound 1.92) | 100% | 46% | 25% | 78% |
| 2 | 0 (95% bound 1.92) | 100% | 44% | 21% | 76% |
| 2.2724 | 0 (95% bound 1.92) | 100% | 42% | 18% | 72% |
| 2.7724 | 0 (95% bound 1.92) | 100% | 31% | 6% | 67% |
| 3 | 0 (95% bound 1.92) | 100% | 26% | 3% | 64% |
1408 honest player matches from seeds never seen in training. The marked row is the threshold the engine uses.
Honest evaluation
Every number comes from a deterministic simulation you can rerun with one command: 300 mixed matches, 100 honest only matches, 10 players each, 120 s per match.
| Cheat | Player matches | Detected (Review or stronger) | Any flag | Median time to detection | Main rules |
|---|---|---|---|---|---|
| Blatant aimbot | 57 | 100% | 100% | 19.4 s | aim.seq 905 aim.snap 598 |
| Humanized aimbot | 57 | 21.1% | 45.6% | 68.4 s | aim.seq 98 stats. 3 |
| Low FOV aim assist | 57 | 1.8% | 21.1% | 70.9 s | aim.seq 22 stats. 3 |
| Triggerbot | 57 | 66.7% | 89.5% | 51.5 s | aim.seq 269 aim. 46 |
| Wallhack | 56 | 0% | 5.4% | not detected | info.decoy 2 stats. 1 |
| closet_wallhack | 56 | 0% | 3.6% | not detected | info.decoy 2 |
| Radar | 56 | 0% | 0% | not detected | |
| ESP (with decoys) | 56 | 3.6% | 28.6% | 58.4 s | info.decoy 16 stats. 3 |
| Speed hack | 56 | 100% | 100% | 17 s | network. 735 info.decoy 3 |
| Fly | 56 | 100% | 100% | 22.4 s | movement.jump 480 movement.fly 455 |
| Teleport | 56 | 100% | 100% | 35.1 s | movement. 429 info.decoy 1 |
| Bunny hop script | 56 | 96.4% | 100% | 40.4 s | movement.bhop 427 info.decoy 1 |
| Fake lag | 56 | 5.4% | 58.9% | 72.9 s | network. 36 combat. 28 |
| Replayed packets | 56 | 100% | 100% | 20.1 s | network. 1038 network. 28 |
| Fire rate | 56 | 85.7% | 100% | 33.9 s | combat. 424 info.decoy 4 |
| Item duplication | 56 | 100% | 100% | 25.3 s | economy.dupe 333 info.decoy 1 |
| Archetype | Player matches | Review false positives per 1000 | Any flag per 1000 |
|---|---|---|---|
| Casual | 517 | 0 | 21.3 |
| Average | 517 | 0 | 40.6 |
| Skilled | 517 | 0 | 30.9 |
| Pro | 517 | 1.9 | 50.3 |
| Bad connection | 516 | 0 | 52.3 |
| Scroll wheel hopper | 516 | 0 | 42.6 |
| All honest players | 3100 | 0.3 | 39.7 |
Reproduce: cargo run -p valkyr-sim --release -- eval
Machine: AMD Ryzen 7 7800X3D (8 cores, 16 threads), 16 GB RAM, Windows 10, release build, 8 worker threads
Why valkyr
If you can change what your server does, valkyr gives you the detection layer the big platforms keep to themselves, in the open.
Ship fair matches without licensing a closed anti-cheat. The kernel layer stays optional and needs the player to say yes.
Bridges for popular server platforms, plus a plain HTTP protocol for everything else.
Economy invariants, duplication checks and teleport detection for persistent worlds.
Evidence bundles, a weighted review jury and audit logs that hold up when a result is disputed.
An auditable second opinion next to the anti-cheat you already run, with numbers you can verify.
No product names: categories, described by what is publicly typical for them. Individual products vary.
| A fair comparison by category | valkyr | Kernel client anti-cheats | Server side ML systems | League client anti-cheats | Plugin based server anti-cheats |
|---|---|---|---|---|---|
| Cost | Free, MIT or Apache 2.0 | Licensed per title or bundled with a platform | Usually commercial | Run by the league, players install it | Often free or low cost |
| Open source and auditability | Full source, rules and model weights in the repo | Closed by design | Usually closed models | Usually closed | Varies |
| Privacy and data collected | Server state plus a listed, minimal set of client signals | Deep system access by design | Gameplay data on the server | Broad client access during matches | Server side only |
| Kernel requirement and player trust | Optional kernel sensor, off by default | Requires a kernel driver | No driver | Often requires a driver | No driver |
| Platforms | Windows, Linux, macOS servers and a C ABI | Mostly Windows clients | Depends on the integration | Mostly Windows | One game or mod platform |
| Setup time | Server side in an afternoon | Vendor onboarding and client work | Integration project | Every player installs a client | Drop in plugin |
| False positive transparency | ROC curves and false positive rates published | Rarely published | Sometimes in talks or papers | Rarely published | Rarely measured |
| ML aim model | Transparent models that list their top factors | Varies | Core of the product | Varies | Mostly fixed thresholds |
| Server authority (culling, honeypots) | Culling helper and decoy entities | Client focused | Analysis rather than culling | Client focused | Some games have culling plugins |
| Community review | Weighted jury with accuracy and collusion checks | Not offered | Varies | Admin review | Admin tools |
| Webhooks and API | Signed webhooks and an OpenAPI 3.1 HTTP API | Vendor dashboards | Vendor APIs | Varies | Game specific commands |
| Self hosting | Single binary on your hardware | Vendor hosted | Usually vendor hosted | Platform hosted | Runs on your server |
| Game coverage | Any engine that can send events | Titles that integrate the SDK | Titles that integrate it | Games the league supports | One game |
Comparison by category, based on publicly documented behavior. It is not a claim about any specific product.
Combine it: keep valkyr as the server side verdict layer and run a client anti-cheat for the parts only a client can see. Its signals can feed the same trust ledger through the client report event.
Run valkyr-server, send frames and shots from your server, watch the first verdicts.
Add the client SDK for signed heartbeats and build integrity checks.
Turn on the opt in kernel sensor, signed by your studio, for competitive queues, or keep a client anti-cheat you already use.
Enforcement
valkyr recommends, you decide. Every action carries its evidence, and the strongest ones are off until you switch them on.
The trust ledger picks an action from your policy. Bridges poll the action feed or receive a webhook.
/v1/actions /v1/players/{player}/verdicts /v1/players/{player}/evidence verdictaction
Uncertain cases go to a jury of trusted players, with collusion checks and juror accuracy tracking.
/v1/review/cases /v1/review/cases /v1/review/cases/{case_id} /v1/review/cases/{case_id}/votes /v1/review/cases/{case_id}/close review.
Warnings, kicks, timed and permanent bans with scopes, shadow queues and ban waves, each with its evidence.
/v1/bans /v1/bans /v1/bans/{ban_id} /v1/bans/{ban_id} /v1/bans/{ban_id}/appeals kickwarningban.ban.ban.ban.ban.wave.
A banned player files one statement; a moderator or the jury decides, and every step is a webhook.
/v1/bans/{ban_id}/appeals /v1/appeals /v1/appeals/{appeal_id}/decision appeal.filedappeal.
Remove the player from the current match. Needs evidence from two distinct rules by default.
Tell the player their behavior is under review without restricting them.
Restrict for a set time, 24 hours by default, for example from ranked play.
Never chosen unless you configure a threshold. Keep a human in the loop.
Match suspected players with each other while evidence builds.
Apply an action to one game, one server, a league or globally.
Hold confirmed bans and release them together, so cheat makers cannot tell which build was detected.
Every flag with its numbers, the trust history and a replay reference, ready for review or appeal.
Players appeal, reviewers decide, and a granted appeal clears the player's evidence.
Trusted players vote on evidence. Votes are weighted by trust and measured accuracy, hidden until close, and collusion is reported.
Storage
Everything stays on hardware you control. One server keeps its state in a single SQLite file; a network of servers shares one PostgreSQL database.
Trust, population baselines, moderation records and the review board are loaded on start and saved every save_ and on shutdown. Only rows whose content changed are written.
Every action and decision is stored as it happens; the newest entries are served by GET /v1/.
Match state stays in memory with limits on matches, sessions and idle time, so a busy server cannot be pushed to exhaust its RAM.
[server]
state_dir = "/var/lib/valkyr"
save_interval_secs = 60
[storage]
backend = "sqlite" # or "postgres", "files"
# postgres: export VALKYR_DATABASE_URL=postgres://user:pass@db:5432/valkyr
Default for one server
One file, <state_dir>/valkyr.db, with no extra service to run. Schema migrations are embedded in the binary and run on start.
Networks and leagues
Set backend to postgres and keep the URL with its password in VALKYR_DATABASE_URL. Several valkyr servers share one database, in its own schema if you want.
Node SDK and FiveM roleplay servers
The optional Node store and FiveM RP store keep a ban cache, a trust cache and an offline queue in MySQL, MariaDB, Postgres or SQLite through Kastor, a TypeScript ORM with readable SQL migrations. Without a database they fall back to memory.
Upgrades
The JSON files written by earlier versions still load with backend files.
Integrations
Server side bridges that read state your server already has. Nothing is installed on players' machines.
Shooters
untested example
Method: CounterStrikeSharp plugin (C#)
Install guide: Counter-Strike 2 (CounterStrikeSharp)Custom game modes
untested example
Method: Custom game VScript (Lua)
Install guide: Dota 2 custom gamesRoleplay
untested example
Method: Server resource (Lua)
Install guide: FiveMSandbox and survival
untested example
Method: Server side Lua addon
Install guide: Garry's ModAny server
experimental
Method: Plain HTTP and JSON
Install guide: Generic HTTP bridgeSandbox and survival
untested example
Method: Paper plugin (Java)
Install guide: Minecraft (Paper)Sandbox and survival
untested example
Method: Oxide/
Your own game
Use the C ABI, the C# or C++ wrappers, the Godot bridge or plain HTTP.
Install guide: UnityYour own game
Use the C ABI, the C# or C++ wrappers, the Godot bridge or plain HTTP.
Install guide: Unreal EngineYour own game
Use the C ABI, the C# or C++ wrappers, the Godot bridge or plain HTTP.
Install guide: GodotYour own game
Use the C ABI, the C# or C++ wrappers, the Godot bridge or plain HTTP.
Install guide: Custom engineGame and platform names belong to their owners and are used only to describe compatibility. valkyr is not affiliated with them.
Downloads
A branded setup app, native packages for every desktop system, portable archives and a container image. Every release lists SHA-256 checksums, a signed manifest and build provenance.
Choose your system
All formatsVerify with SHA256SUMS from the same release. Releases also carry build provenance attestations, checkable with gh attestation verify. SHA256SUMS
docker pull ghcr.io/kwy404/valkyr-server:latest A small user mode installer: no admin rights, picks only the components you want, downloads them one file at a time and checks each against the signed manifest. Run it again to repair, update or remove.











valkyr-setup-linux-x64valkyr-setup-linux-arm64valkyr-linux-x64.AppImage valkyr-linux-arm64.AppImage valkyr-linux-x64.debvalkyr-linux-arm64.debvalkyr-linux-x64.rpmvalkyr-linux-arm64.rpmvalkyr-x86_64-unknown-linux-gnu.tar.gz valkyr-aarch64-unknown-linux-gnu.tar.gz Run the setup app, install the native package or unpack the archive for your system. Each holds valkyr, valkyr-server and the C library.
valkyr init writes a config with fresh API keys, valkyr run starts it on 127.0.0.1:7420.
Install a bridge for your platform or post events from your own server code.
Verdicts come back in the events response and from the player verdicts endpoint.
Add a [[webhooks]] entry and receive signed verdict, action and review events.
# 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
Tray app and dashboard
Two separate companion projects, both open source.
Part of valkyr-guard. Shows players which tiers are active, what is collected and asks before the optional kernel tier runs. It talks only to the local agent.
valkyr-dashboard is one static page for live matches, trust, verdicts and the review queue, on top of the valkyr-server API.


Command center: players online, detections per minute, the trust distribution and the newest alerts.

Each case shows the evidence bundle, the replay windows and the jury votes.

Trust over time, every verdict with its rule and numbers, linked accounts and standing.

Scoped bans, waves and the appeals waiting for a decision.

Every detection rule, its weight and how often it fired.

Which protection tiers your game asks for and how many players run each.

Signed webhooks per event type with delivery history.

Every live match with its players and the latest flags.
Screens of valkyr-dashboard running on demo data.
Code
Real snippets from the repository, highlighted at build time.
private void FixedUpdate(){ if (engine == null) return; ulong now = (ulong)clock.ElapsedMilliseconds; foreach (var p in players) { if (p.body == null) continue; Vector3 pos = p.body.position; double yaw = Coords.YawFromUnityEulerY(p.body.eulerAngles.y); double pitch = p.head != null ? Coords.PitchFromUnityEulerX(p.head.localEulerAngles.x) : 0.0; bool grounded = p.controller != null && p.controller.isGrounded; // client_ms: use the timestamp the client sent with its input // when you have one; the server time is a stand in here. int flags = engine.Frame(p.playerId, p.seq++, now, now, pos.x, pos.y, pos.z, yaw, pitch, grounded, false); if (flags > 0) { OnVerdicts(p, engine.LastVerdicts()); } }}valkyr::Engine engine;if (!engine) { std::fprintf(stderr, "engine: %s\n", valkyr::last_error().c_str()); return 1;}// A wall 10 m in front of the origin.engine.set_world(R"({"colliders":[{"min":{"x":-1,"y":0,"z":9},"max":{"x":1,"y":3,"z":10}}]})"); // Positions come from an Unreal style world (cm, Z up): 2000 cm per// 100 ms forward is 20 m/s, far above the default limit.int32_t flags = 0;for (uint64_t i = 0; i < 60; ++i) { valkyr::Vec3 p = valkyr::from_unreal_cm(static_cast<double>(i) * 200.0, 0.0, 0.0); int32_t n = engine.frame(3, i, i * 100, i * 100 + 20, p.x, p.y, p.z, valkyr::yaw_from_unreal(0.0), valkyr::pitch_from_unreal(0.0), true, false); if (n < 0) { std::fprintf(stderr, "frame: %s\n", valkyr::last_error().c_str()); return 1; } flags += n;}std::printf("cpp flags raised: %d\n", flags);if (auto t = engine.trust(3, 6000)) { std::printf("cpp trust: probability=%.3f trust=%.1f action=%d\n", t->probability, t->trust, static_cast<int>(t->action));}@onready var valkyr = $ValkyrBridge func _ready(): valkyr.action_received.connect(_on_valkyr_action) func _physics_process(_delta): for p in players: # your server side player nodes valkyr.report_frame(p.peer_id, p.last_input_client_ms, p.global_position, p.rotation.y, p.camera.rotation.x, p.is_on_floor(), p.jumped_this_tick) func _on_valkyr_action(player: int, action: String, reason: String): if action == "kick": multiplayer.multiplayer_peer.disconnect_peer(player)use valkyr_core::{Engine, Config, Event, Frame, Vec3}; let mut engine = Engine::new(Config::default());for i in 0..100u64 { // A player that covers 1 m every 50 ms: 20 m/s, far above 7 m/s. let frame = Frame { player: 7, seq: i, client_time_ms: i * 50, server_time_ms: i * 50 + 30, position: Vec3::new(i as f64, 0.0, 0.0), yaw: 0.0, pitch: 0.0, on_ground: true, jump: false, }; for verdict in engine.ingest(&Event::Frame(frame)) { for flag in &verdict.flags { println!("{}: {}", flag.rule, flag.summary); } }}assert!(engine.trust(7, 5000).probability > 0.1);```KEY=replace-with-an-ingest-keyBASE=http://127.0.0.1:7420 # Health (no key needed)curl -s $BASE/v1/health # Level geometry (optional, enables line of sight and noclip checks)curl -s -X PUT $BASE/v1/matches/m1/world \ -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"colliders":[{"min":{"x":-1,"y":0,"z":9},"max":{"x":1,"y":3,"z":10}}],"occluders":[],"floor_y":0.0}' # A batch of eventscurl -s -X POST $BASE/v1/matches/m1/events \ -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"events":[ {"type":"spawn","player":7,"server_time_ms":0,"position":{"x":0,"y":0,"z":0},"team":1}, {"type":"frame","player":7,"seq":1,"client_time_ms":0,"server_time_ms":50, "position":{"x":0,"y":0,"z":1},"yaw":0,"pitch":0,"on_ground":true,"jump":false} ]}'# -> {"accepted":2,"verdicts":[]} # Enforcement queuecurl -s "$BASE/v1/actions?since=0&limit=100" -H "Authorization: Bearer $KEY"# -> {"actions":[{"id":12,"player":7,"action":"kick","reason":"...","match_id":"m1","at_ms":123}],"cursor":12} # End of matchcurl -s -X POST $BASE/v1/matches/m1/end -H "Authorization: Bearer $KEY"curl -X POST http://127.0.0.1:7420/v1/matches/match-1/events \ -H "Authorization: Bearer $VALKYR_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},{"type":"shot","player":7,"server_time_ms":1200,"client_time_ms":1170,"weapon":1,"yaw":90,"pitch":-2.5,"target":8,"bone":"head","latency_ms":35}]}'curl http://127.0.0.1:7420/v1/players/7/trust \ -H "Authorization: Bearer $VALKYR_KEY"curl http://127.0.0.1:7420/v1/actions \ -H "Authorization: Bearer $VALKYR_KEY"import { createHmac, timingSafeEqual } from 'node:crypto'; // header: the Valkyr-Signature value. body: the raw request bytes (Buffer).export function verifyValkyr(secret, header, body, toleranceMs = 5 * 60 * 1000) { const parts = header.split(',').map((p) => p.trim().split('=')); const t = parts.find(([k]) => k === 't')?.[1]; const sigs = parts.filter(([k]) => k === 'v1').map(([, v]) => v); if (!t || !/^\d+$/.test(t) || sigs.length === 0) return false; if (Math.abs(Date.now() - Number(t)) > toleranceMs) return false; const expected = createHmac('sha256', secret).update(`${t}.`).update(body).digest(); return sigs.some((hex) => { const got = Buffer.from(hex, 'hex'); return got.length === expected.length && timingSafeEqual(got, expected); });}import hashlibimport hmacimport time def verify_valkyr(secret: bytes, header: str, body: bytes, tolerance_ms: int = 300_000) -> bool: """header: the Valkyr-Signature value. body: the raw request bytes.""" fields = [p.strip().split("=", 1) for p in header.split(",") if "=" in p] t = next((v for k, v in fields if k == "t"), None) sigs = [v for k, v in fields if k == "v1"] if t is None or not t.isdigit() or not sigs: return False if abs(int(time.time() * 1000) - int(t)) > tolerance_ms: return False expected = hmac.new(secret, t.encode() + b"." + body, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, s) for s in sigs)package valkyrhook import ( "crypto/hmac" "crypto/sha256" "encoding/hex" "strconv" "strings" "time") // Verify checks a Valkyr-Signature header against the raw request body.func Verify(secret []byte, header string, body []byte, tolerance time.Duration) bool { var ts string var sigs []string for _, part := range strings.Split(header, ",") { k, v, ok := strings.Cut(strings.TrimSpace(part), "=") if !ok { continue } switch k { case "t": ts = v case "v1": sigs = append(sigs, v) } } t, err := strconv.ParseInt(ts, 10, 64) if err != nil || len(sigs) == 0 { return false } if d := time.Since(time.UnixMilli(t)); d > tolerance || d < -tolerance { return false } mac := hmac.New(sha256.New, secret) mac.Write([]byte(ts + ".")) mac.Write(body) expected := mac.Sum(nil) for _, s := range sigs { got, err := hex.DecodeString(s) if err == nil && hmac.Equal(got, expected) { return true } } return false}using System;using System.Linq;using System.Security.Cryptography;using System.Text; public static class ValkyrWebhook{ // header: the Valkyr-Signature value. body: the raw request bytes. public static bool Verify(byte[] secret, string header, byte[] body, long toleranceMs = 300_000) { var fields = header.Split(',') .Select(p => p.Trim().Split(new[] { '=' }, 2)) .Where(p => p.Length == 2) .ToList(); var t = fields.FirstOrDefault(p => p[0] == "t")?[1]; var sigs = fields.Where(p => p[0] == "v1").Select(p => p[1]).ToList(); if (t == null || !long.TryParse(t, out var ts) || sigs.Count == 0) return false; if (Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() - ts) > toleranceMs) return false; using var hmac = new HMACSHA256(secret); var expected = hmac.ComputeHash(Encoding.ASCII.GetBytes(t + ".").Concat(body).ToArray()); foreach (var s in sigs) { if (s.Length != 64) continue; byte[] got; try { got = Convert.FromHexString(s); } catch (FormatException) { continue; } if (CryptographicOperations.FixedTimeEquals(got, expected)) return true; } return false; }}FAQ
Short answers. The docs have the long ones.
Not by default. The server tier does the deciding and runs in user mode. The client scanner runs inside the game process without admin rights. A kernel sensor exists (a KMDF driver on Windows, eBPF on Linux), but it is off by default, the player opts in from the tray app, and its signals are hints the server weighs, never a ban on their own.
The server receives every view angle and every shot. Aimbots snap to targets inside a single frame, react faster than people and skip the overshoot and corrections of human aim. valkyr measures those traces with rules and a transparent aim model.
The reliable way is visibility culling: the server does not send players the viewer cannot see, so there is nothing to draw. valkyr ships a culling helper and honeypot decoys for ESP. Detecting wallhack behavior alone is still hard, and the evaluation says so.
Not permanently. The default policy logs, reviews, shadow queues, kicks and restricts at rising thresholds, kick needs two distinct rules, and permanent bans are off unless you set a threshold.
Signed heartbeats with a session id, counters, clock values, build and manifest hashes and a small set of tamper signals about the game process. Module and window checks are off unless the game opts in, and even then only hashes leave the machine.
Any game whose server can send JSON over HTTP or call a C library: Unity, Unreal, Godot and custom engines, plus example bridges for several community server platforms.
In the published simulation, blatant cheats like speed hacks, fly, teleport, blatant aimbots and fire rate hacks reached Review in every match and no honest player match did. Humanized aimbots, wallhacks and radar were not detected. All numbers are on this page.
Nothing. valkyr is MIT or Apache 2.0 licensed and you host it yourself.
With the optional valkyr-guard layer, yes: it reports known tools, foreign memory handles, code edits, remote threads and manually mapped modules as signed findings. They count as hints, so the server still needs its own evidence before it kicks anyone.
On your own machines. A single server saves its trust ledger and review board to a folder and writes an audit log as JSON lines. Database backends for networks are in development.
Yes, through server side resources for FiveM, RedM, alt:V and RAGE:MP. The FiveM roleplay resource has adapters for ESX, QBCore, Qbox, ox_core and vRP, an event firewall with honeypots and economy checks.
Nothing. valkyr is open source under MIT or Apache 2.0, you host it yourself and there is no paid tier.
Run the server, send your first events and read the first verdict this afternoon.