Skip to documentation
Pro 2.1.2
SquidSolver Pro / CLI reference

Configuration reference

Reference for the JSON that defines a SquidSolver Pro solve: players, stack and pot units, exact-card ranges and action-tree rules, with examples and a JSON schema.

Pro 2.1.2Updated Read as text
On this page

Example configurations and JSON schema

DownloadContents
NLH river3 BB pot, 20 BB stacks, full ranges, half-pot bet.
NLH preflopNarrow ranges and explicit flop, turn and river continuations.
PLO 4 river3 BB pot, 4 BB stacks and a small weighted range.
Starter JSON schemaDraft-07 schema for new setups, including the examples above.

The starter schema covers the settings used in these examples. Run squid config schema to see all settings accepted by your installed version.

Configuration file structure

JSON
{
  "scenario": {
    "name": "river-study",
    "street": "river",
    "big_blind": 1.0,
    "dead_money": 3.0
  },
  "productMetadata": {}
}

This is a structure illustration, not a complete runnable file. Start from a downloaded example, which also contains players, board, ranges and the action tree. Ordinary NLH can use an empty productMetadata object. Keep the PLO example’s omahaSolver settings for a first PLO run.

Use a new ID made from letters, digits, underscores or hyphens. --id overrides an ID in the file; --name sets the display name. Check solve list before creating an ID that might already exist.

Units, stacks and the pot

FieldMeaning
big_blindSet to 1.0 for a configuration denominated in big blinds.
players[].stackStack at the start of this setup, including any forced blind or ante entered for that player.
players[].blind / anteThat player’s forced posts. Use zero for a normal postflop root.
dead_moneyMoney already in the pot. At a postflop root, enter the existing pot here once.
first_playerZero-based index of the player who acts first.
players / rangesMatching arrays: ranges[0] belongs to players[0], and so on.

Stack and pot amounts are rounded to 0.01. Position names are bu, co, mp, ep, u3, u2, u1, bb and sb. Use bu for the button, not btn.

Cards and ranges

Cards use ranks 2–9, T, J, Q, K, A and suits c, d, h, s. A JSON board is an array such as ["As","Kd","7c","2h","9s"]. Preflop has no board; flop has three cards, turn four and river five. Cards cannot repeat.

JSON
{"combos":[{"cards":"AhAd","weight":1.0},{"cards":"QhQd","weight":0.5}]}

Use exact two-card NLH or four-card PLO combinations. Weights are frequencies between 0 and 1. Shorthand such as AA, AKs, 22+ or a range percentage is not accepted in this JSON format. Expand hand classes into their individual combinations.

Use {"uniform_all":true} for all hands. When uniform_all is true, a combos list is ignored. Avoid empty or all-zero ranges, duplicate hands and impossible deals. There must be enough compatible hands across players after the board’s cards are removed.

The CLI --board argument uses one concatenated string, AsKd7c2h9s, rather than a JSON array. A later readout board must extend the starting board.

Action-tree rules

actionTree.rules contains the actions to offer. A rule’s streets array is ordered preflop, flop, turn, river. Its betActions rows instead describe successive bets and raises.

Row indexPostflopPreflop
0Opening betUnused
1First raiseOpening raise
2Second raiseThree-bet
3Third and later raisesFour-bet
JSON
{"betActions":[[{"size":"50%"}],[],[],[]],"streets":[false,true,true,true]}

This rule fragment offers a half-pot opening bet on each postflop street. Merge it into a complete example rule. Empty rows offer no sizes. A positive cap stops aggression at that slot: cap 1 allows only the opening bet postflop; cap 2 allows only the opening raise preflop. cap 0 adds no extra cap.

SizeMeaning
50% / 100%Pot-based size, written as an integer percentage.
2.5bbTotal commitment on this street in big blinds.
3xRaise multiplier.
2eGeometric sizing over the specified number of streets.
Min / All-inMinimum legal size or all-in, subject to the game’s limits.

positions contains ten booleans ordered bu, co, mp, ep, u3, u2, u1, reserved, bb, sb. Use all true for an unrestricted rule. relativePosition is null for either, 0 for in position and 1 for out of position. playerCount 0 or null means any count. potType selects unraised, single-raised, three-bet and four-bet-or-higher pots.

The legal actions also depend on stack and pot limits, call controls, all-in settings and size merging. Keep the example’s populationOptions while learning the format. New configurations should use capBoundaryAllInMode finalAllowedAggression.

Solving and saved readouts

FieldUse
saveEvFour entries ordered preflop, flop, turn, river. Positive entries retain EV for that street; the examples use 1000. Zero disables it.
saveStrategyFour booleans in the same street order. Keep the streets you want to study or export enabled.
training.threadCountA positive CPU thread count. Default is 1.
training.seedUnsigned integer seed. Multiple threads are not guaranteed to produce bit-for-bit identical runs.
training.iterationsDoes not automatically start a CLI-created solve. Set the run target with --iterations or --add.

Estimate again after changing ranges or the action tree. For advanced configuration fields, use the installed schema together with help for solve estimate and solve create.

Need help with a setup? support@squidsolver.com