ValAgentBridge
For mod developers: lets an AI agent automate and monitor mod testing in a running Valheim (enter worlds, act as the player, run console commands and test scripts, read logs). Needs GABS and Claude Co
模組介紹 作者原文
ValAgentBridge
ValAgentBridge was made to help with modding Valheim: it lets an AI agent automate and monitor the testing of mods.
Instead of launching the game, loading a world and checking things by hand after every change, you ask the agent
(Claude Code, through the GABS MCP server) and it does it in the running game.
For mod developers. Needs GABS (not) and an AI agent such
as Claude Code. Setup, the full tool list and test scripts: GitHub.
Best with ValPerfMonitor
ValAgentBridge pairs well with ValPerfMonitor, which measures what
each installed mod and each part of Valheim costs: CPU time, memory allocations, load times and network. With both in
the same profile, the monitor adds its own perf/* tools to the bridge, so an agent can run a whole performance
measurement without anyone at the keyboard: get into the world, run the monitor's test suite or a live A/B test of a
change, and read the results. Optional: the bridge works on its own.
Features
- Game: enter a world in one call, create characters and worlds, load, save, log out
- Movement: walk, pathfind, jump, look, teleport
- Player actions: attack, block, interact, pick up, drop, equip, eat, craft, repair, build, press keys, click menus
- Console commands: any game or mod command, with its output
- Test setup: give items, spawn creatures, clear enemies, time, weather, health, god/ghost mode, game speed, mod
settings, live values
- Lookups: player state, inventory and backpacks, nearby objects, locations, items and recipes
- Monitoring: screenshots, log, on-screen messages, player events, live code inspection, method watches
- Test scripts: JSON steps and checks with pass/fail reports
- Stuck detection: no frames, waiting popups, stalled loads
- Other mods: list mods and settings, use commands they add
Cheat console commands run only with allowCheats or when devcommands is already on.
Clearing hostile creatures is off by default. When testing starts the agent offers to turn it on, so a creature
can't kill the character mid-test; say no if you are testing creatures.
What you need
- Claude Code (or another MCP client)
- GABS 1.1 or newer (download from its releases page), which starts the game and
connects the agent to ValAgentBridge
Started without GABS, ValAgentBridge does nothing: no patches, no listener, no per-frame work.
Setup
- Install ValAgentBridge in a profile with your mod manager.
- Register GABS as an MCP server: claude mcp add --scope user gabs -- \gabs.exe server.
- GABS game config, %USERPROFILE%\.gabs\config.json: a game valheim that starts valheim.exe with
--doorstop-enabled true --doorstop-target-assembly \BepInEx\core\BepInEx.Preloader.dll.
- Ask the agent to start Valheim (games_start valheim), then world/enter to load into a world. It finds every
tool and its arguments itself.
The full tool list is also in TOOLS.md in this package.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: