CLI Flags Reference

Complete reference for all ikasolver command-line flags, organized by category.

Input / Output

FlagDescriptionDefault
--tree <PATH>Path to the .tree file to solve. Required unless using --serve.(none)
-o, --output <PATH>Output file path for the solved .iks strategy file.(none)
--table-dir <DIR>Directory for caching rank tables and bucket tables. Reusing this directory across runs avoids regenerating expensive lookup tables.tables

Solver

FlagDescriptionDefault
-i, --iterations <N>Number of CFR iterations to run.100000
--in <N>Iterations per node. Total iterations = this value x info set count. Overrides -i when specified. Accepts decimal values (e.g., 2.5).(none)
-j, --threads <N>Number of worker threads.CPU core count
--debugEnable diagnostic trace output including RNG seeds, regret checksums, and per-iteration traces. Primarily for development and debugging.off
--optimize-sizesAfter solving, find the optimal single raise size per node and simplify the tree. Removes raise actions used less than 2% of the time. See Optimise Sizes.off

Abstraction

Controls how hands are grouped into buckets to reduce memory usage. See Abstraction for a detailed explanation.

FlagDescriptionDefault
--flop-buckets <N>Number of flop abstraction buckets.30
--turn-buckets <N>Number of turn abstraction buckets.30
--river-buckets <N>Number of river abstraction buckets.30
--flop-texture <TYPE>Flop texture resolution.perfect
--turn-texture <TYPE>Turn texture quality.small
--river-texture <TYPE>River texture quality.small
--abstraction <VER>Abstraction version: v1 or v2.v1

Flop Texture Values

ValueFlop TypesDescription
perfect1,755All canonical flops
subset-487487Large weighted subset
subset-373373Medium weighted subset
subset-198198Small weighted subset
none1No texture differentiation

Turn Texture Values

ValueDescription
noneNo turn texture grouping
smallSmall number of turn groups
mediumMedium turn groups
largeMany turn groups
perfectFull turn resolution

River Texture Values

ValueDescription
noneNo river texture grouping
smallSmall number of river groups
largeMore river groups

Abstraction Version Values

ValueAlgorithmNotes
v1Linear HistogramFaster setup, hierarchical [N, 4] bucketing. General-purpose default.
v2K-Means DistributionsMore accurate equity-based clustering, flat bucketing. Better for postflop analysis.

Rake

FlagDescriptionDefault
--rake <FRACTION>Rake as a decimal fraction (e.g., 0.05 for 5%).0.0
--rake-cap <CHIPS>Maximum rake in chips. 0 means no cap.0

Note: the CLI takes rake as a decimal fraction (0.05), while the GUI takes it as a percentage (5). They represent the same thing.

Server

FlagDescriptionDefault
--serve [PORT]Start as a remote solver WebSocket server. If PORT is omitted, defaults to 9876.(none)
--token <TOKEN>Authentication token for --serve mode. If omitted, a random 32-character token is generated and printed to stderr.(random)

See Remote Solving and CLI Usage for details.

Bounty

FlagDescriptionDefault
--squid-config <PATH>Path to a JSON file containing bounty (PKO) configuration. Specifies bounty price, totals, per-player markers, multipliers, and payout rules for progressive or standup bounty formats.(none)

License

FlagDescription
--remove-licenseDeactivate the license on this device. Can only be done once every 30 days. The CLI exits after deactivation.

Utility

FlagDescription
--ramEstimate RAM usage for the given tree and settings, print the breakdown, and exit without solving. Useful for checking memory requirements before committing to a long solve.

Examples

# Basic solve with defaults
ikasolver --tree game.tree -i 100000 -o result.iks

# High-accuracy solve
ikasolver --tree game.tree -i 5000000 -j 16 \
  --flop-buckets 50 --turn-buckets 50 --river-buckets 50 \
  --abstraction v2 -o result.iks

# Cash game with rake
ikasolver --tree game.tree -i 1000000 \
  --rake 0.05 --rake-cap 60 -o raked.iks

# Check RAM before solving
ikasolver --tree big_tree.tree --ram

# Remote server
ikasolver --serve 9876 --token mysecret

# PKO bounty solve
ikasolver --tree pko.tree --squid-config bounty.json \
  -i 1000000 -o pko.iks

# Size optimization
ikasolver --tree preflop.tree -i 500000 \
  --optimize-sizes -o optimal.iks

# Per-node iteration scaling with custom table cache
ikasolver --tree game.tree --in 10 \
  --table-dir /mnt/fast/tables -o result.iks