Repository navigation
v0.1.0 — Initial Release
SpireBridge v0.1.0
WebSocket bridge mod for Slay the Spire 2 — programmatic game control for AI agents.
Install
- Download
SpireBridge.dllbelow - Copy it to your game mods folder:
- macOS:
~/Library/Application Support/Steam/steamapps/common/Slay the Spire 2/SlayTheSpire2.app/Contents/MacOS/mods/ - Windows:
<Steam>/steamapps/common/Slay the Spire 2/mods/
- macOS:
- Create the
mods/folder if it doesn't exist - Launch the game — you should see
RUNNING MODDED! — Loaded 1 modsin the log - Connect via WebSocket:
ws://127.0.0.1:38642
Features
- Full game state via
get_state— cards, enemies, intents, powers, relics, potions, deck, map, everything available_actionson every response — agents always know what's valid- All screens: combat, map, events, rewards, card selection, shop, rest site, treasure, game over
- Card details: name, description, damage, block, cost, keywords (Exhaust/Ethereal/Retain/etc), X-cost flag
- Enemy intents: attack damage, hit count, buff/debuff types
- Shop: buy cards/relics/potions, card removal
- Reward descriptions: "Take 44 Gold", "Take Fire Potion potion", "Take Burning Blood relic"
- Push events: combat start, turn start, room changes — no polling needed
- Console cheats: godmode, kill, teleport, spawn items for testing
- Potion management: use (targeted + untargeted) and discard
- Run management: start/abandon with full menu navigation
- 6 characters: Ironclad, Silent, Defect, Regent, Necrobinder, Deprived
Quick Test
# Requires websocat (brew install websocat / cargo install websocat)
echo '{"action":"get_state"}' | websocat ws://127.0.0.1:38642See README for full API docs.