Loading...
Loading...
Command-line interface for Slay the Spire 2 - Control the real game through a local bridge mod HTTP API. Reads normalized game state and sends action commands for combat, navigation, rewards, and menu management.
npx skill4agent add hkuds/cli-anything cli-anything-slay-the-spire-iiSTS2_Bridgelocalhost:15526https://github.com/HKUDS/CLI-Anythinggit clone https://github.com/HKUDS/CLI-Anything.git
cd CLI-Anything/slay_the_spire_ii/agent-harness
pip install -e ..NET 9cd CLI-Anything/slay_the_spire_ii/agent-harness/bridge/plugin
./build.sh
cd ../install
./install_bridge.shSTS2_GAME_DATA_DIRSTS2_GAME_DATA_DIR="/path/to/data_sts2" ./build.shSTS2_Bridgecli-anything-sts2 stateSTS2_Bridge.NET 9 SDK# Read normalized game state (always start here)
cli-anything-sts2 state
# Start interactive REPL mode (default)
cli-anything-sts2
# Show all available commands
cli-anything-sts2 --help| Command | Description |
|---|---|
| Normalized state with |
| Raw bridge JSON |
| Command | Description |
|---|---|
| Continue a saved run |
| Start a new run |
| Abandon the current save |
| Return to menu from any screen |
IRONCLADSILENTDEFECTNECROBINDERREGENT| Command | Description |
|---|---|
| Play a card from hand |
| Use a potion |
| End the current turn |
| Command | Description |
|---|---|
| Select a map node |
| Leave the current room |
| Command | Description |
|---|---|
| Claim a combat reward |
| Pick a card reward |
| Skip the card reward |
| Claim a treasure relic |
| Select a relic |
| Skip relic selection |
| Command | Description |
|---|---|
| Choose an event option |
| Advance dialogue-only events |
| Choose a campfire action |
| Command | Description |
|---|---|
| Buy from the shop |
| Command | Description |
|---|---|
| Select a card in overlay |
| Confirm the current selection |
| Cancel the current selection |
| Select a card during combat overlay |
| Confirm combat card selection |
| Command | Description |
|---|---|
| Send a raw bridge action |
statedecision| Decision | Meaning | Typical Next Commands |
|---|---|---|
| Main menu | |
| In combat, your turn | |
| Card selection overlay | |
| Map node selection | |
| Run ended | |
| Post-combat rewards | |
| Card reward pick | |
| Event screen | |
| Campfire | |
| Shop screen | |
| Card selection screen | |
| Relic selection | |
| Treasure room | |
| Option | Default | Description |
|---|---|---|
| | Bridge API URL |
| | HTTP timeout in seconds |
statedecision