Confirm with your password

ModTestBridge

For mod developers: drive Valheim from scripts or an AI agent (run console commands, read the log, restart into a world). Off by default; dev profiles only.

Client-only

· Website

Stars
0
Downloads
2
Version
0.1.0
Updated
Author
Spronglehump
Virus scan
✓ Scan successful
Runs on
Client-only

Description

ModTestBridge

For mod developers, not players. If you just play Valheim, you don't need this.

This mod lets scripts, or an AI coding agent such as Claude Code, drive Valheim while you develop a mod:

  • run console commands and get back what they printed;
  • read the BepInEx log;
  • see whether you're at the menu or in a world, and where;
  • quit cleanly, saving first;
  • relaunch straight into a test world with an existing character, with no menus.

Your mod keeps its own in-game test commands; the bridge just runs them and reads the results. So you build, restart, test and read the failures without clicking through anything.

⚠️ Development profiles only

  • Off until you turn it on: set Enabled = true in BepInEx/config/Spronglehump.ModTestBridge.cfg.
  • It listens on 127.0.0.1 only, and every request needs a random token.
  • Even so, anything on your computer with that token can run console commands. Never install it on a server or on a profile you play on.

Everything else is on GitHub

https://github.com/tmac1973/ModTestBridge

You'll find:

  • setup and the full guide: the HTTP API, autostart, backups;
  • mtb, the command-line client: mtb restart, mtb run "mymod_test all" "[TEST] done", mtb doctor...;
  • the Claude Code plugin, a skill that teaches Claude to test your mod in-game: /plugin marketplace add tmac1973/ModTestBridge;
  • how to write in-game tests for your mod, with an example mod and a test-runner script.

Changelog

0.1.0 Latest
  • First release: a local HTTP bridge (127.0.0.1, token) to run console commands and get their output, read the BepInEx log, see the game's state, and quit cleanly.
  • Autostart (-mtb-world, -mtb-character) straight into a single-player world with an existing character.
  • mtb, the command-line client: run and wait for results, restart into the world with save backups, doctor.
  • A Claude Code plugin (skill + mtb) for testing mods with an agent.
  • Off by default: set Enabled = true on your development profile.

Full version history & older downloads →

Manual installation instructions
1

Install BepInExPack Valheim

BepInExPack Valheim is required to run mods in Valheim.

Download BepInExPack Valheim 5.4.2351 · View mod page

Check out the mod page for detailed installation instructions.

2

Install ModTestBridge

This mod only needs to be installed on the client.

Download ModTestBridge 0.1.0

Extract the ZIP and place the file(s) into the BepInEx/plugins/ folder inside your Valheim game folder.