Sl0ptiminer

Options and commands

sloptiminer --help prints this list.

Commands

CommandWhat it does
sloptiminer mine -a ALGO -o POOL -u WALLET.WORKER [options]Mines the algorithm on the pool for your address.
sloptiminer check-config -a ALGO -o POOL -u WALLET.WORKER [options]Checks the same arguments as mine and prints the same messages, then stops. It connects to nothing and mines nothing.
sloptiminer tuneMeasures this CPU and remembers the best thread count. mine does this by itself on the first start.
sloptiminer ui --demoShows the screen with simulated numbers. Nothing is mined or sent.
sloptiminer ui --feed FILEShows the screen of a miner that runs elsewhere on the machine with --state-file FILE, for example as a service. q closes the view and leaves the miner running.
sloptiminer haSets up Home Assistant: asks for the broker and login, tests them and saves them. ha test tests the saved setup, ha off turns it off.
sloptiminer control statusShows whether a local hold is on, and the state of the running miner.
sloptiminer control hold on / hold offPauses mining, or lets it mine again, like p on the screen. The hold stays after a restart.
sloptiminer control offTurns Home Assistant off and pauses mining; a running miner also removes the rig from it.
sloptiminer share --showPrints the exact data a benchmark share would send, from the last measurement. It sends nothing.
sloptiminer reportShows the report of the last fault and sends it only when you answer yes. --send sends without asking. --link sends nothing and prints a link for sending it from another device. Exit code 1: asked to send, and nothing was sent.
sloptiminer verify-package --sums SHA256SUMS --sig SHA256SUMS.minisig --file FILEChecks a downloaded package against the signed checksum list with the release key inside the miner. Exit code 0: ours and whole. 1: not ours. 2: could not be checked, try again. The updater uses it.
sloptiminer --versionPrints the version.
sloptiminer --licensesPrints the third-party licences.
sloptiminer --helpPrints the usage text.

Options given without a command are taken as mine options.

The pool address

POOL is HOST:PORT or stratum+tcp://HOST:PORT. A TLS pool is stratum+ssl://HOST:PORT, and stratum+tls://, stratum+tcps://, ssl:// and tls:// work the same way. Pools and connections explains TLS.

Options for mine and check-config

OptionMeaningDefault
-a ALGOThe algorithm to mine, by its id: algorithms lists them. Also --algo ALGO. Saved settings never supply it: every start command names it.required
-o POOLThe pool's stratum address, as above. Repeat -o for backup pools: the first is the primary, then up to 9 backups in priority order.required
-u WALLET.WORKERYour address for the coin you mine, then a dot and a worker name. The worker name is optional. One -u serves every pool; a backup pool takes its own from a -u right after its -o.required
-p PASSThe pool password.x
-t NHashing threads. A count above what this machine allows is lowered to it, with a note. Not with --cpu-percent.the tuned count
--cpu-percent PUse P % (1 to 100) of the tuned thread count. Not with -t.off
--cpus LISTLinux only. Mines only on these CPUs, numbered as lscpu lists them: 64-127 for one socket of a two-socket machine, or 64-127,192-255. Tuning and the thread count then use that set alone.every CPU the system lets the miner use
--devices LISTcpu mines on the processor only, gpu on the graphics cards only.the CPU and every usable graphics card together
--lineOne status row instead of the full screen. For logs and rig managers.off
--no-bannerNo banner above the screen. The banner stands there only when the start-up intro is off.off
--no-introNo start-up intro. Any key skips the intro anyway.off
--state-file PATHRewrites PATH every 2 s with the miner's state as one JSON line. Not with --json-stats.off
--json-statsPlain JSON counter lines instead of the screen. Not with --state-file.off
--duration SStops after S seconds.runs until stopped
--retuneMeasures this CPU again before mining.off
--on-overheat ACTpause or warn when the CPU stays above its heat limit. A pause stops CPU mining only and ends by itself 5 °C below the limit.warn on HiveOS and mmpOS, which have their own overheat settings; pause elsewhere
--temp-limit CLowers the processor's temperature limit to C °C (40 to 110). It can only lower the limit, never raise it.the processor's own limit
--share-benchmarksSends each 5-minute benchmark result to sl0ptiminer.com once per miner version: the processor's, and one for each graphics card model. Every start says that sharing is on. What is sent and published.off
--no-share-benchmarksNever sends a benchmark result, never asks, and keeps the share link out of the log. Wins over --share-benchmarks.off
--update-notices Wimportant or all: which new versions the miner tells you about. Update notices.important: security, network and fault fixes
--no-update-checkNo news of new versions. The signed file is still fetched once a day, for the minimum supported version and the 30-day contact rule.off
--verboseAccepted, and changes nothing in a released version: its extra lines are for test builds.off
--tls-insecureFor a TLS pool with a self-signed certificate: skips the certificate check and prints a warning. Anyone between you and the pool can then pose as the pool. Only with a TLS pool address.off

Without -a the miner does not start. It stops at once with exit code 2 and says:

No algorithm (-a).
Why: The miner does not guess what to mine.
To fix: Add -a hoohash (on HiveOS: Hash algorithm in the flight sheet, or -a hoohash in Extra config arguments).

Troubleshooting has the other messages about -a.

Home Assistant options

sloptiminer ha sets all of this up and saves it: Home Assistant. These options are for scripts and special setups. On the command line they win over the saved settings and are not saved.

OptionWhat it doesDefault
--mqtt / --no-mqttTurns Home Assistant on or off.off
--mqtt-broker HOST:PORTYour MQTT broker. No mqtts:// and no login here. An IPv6 address goes in brackets.none
--mqtt-credentials FILEFull path of the login file, readable only by you: {"username": "…", "password": "…"}.none
--mqtt-ca FILECA certificate for a self-signed or local broker certificate. With TLS the certificate is always checked.built-in web roots
--mqtt-name NAMEThe rig's name in Home Assistant, 1 to 64 bytes. Needed when the pool login has no worker name.the worker name of -u
--mqtt-control MODEoff, pause-only or pause-resume: what Home Assistant may do.off
--mqtt-profiles IDSThe device choices Home Assistant may switch between, separated by commas, at most 32.the start-up choice
--mqtt-cpu-max NThe highest CPU thread count Home Assistant may set.the start-up thread count
--mqtt-loss-policy MODEpause or keep: what the rig does when the broker is lost. Reconnecting never resumes mining by itself.keep when set up by sloptiminer ha, otherwise pause (keep with pause-only)
--mqtt-loss-grace SSeconds to wait after losing the broker before the loss policy applies, 0 to 300.30
--mqtt-ha-lease S0, or 90 to 300: the rig pauses when Home Assistant itself has not been heard from for S seconds.0 (off)
--mqtt-interval SSeconds between reports, 5 to 60.10
--mqtt-prefix PREFIXTopic prefix of the rig's state.sloptiminer
--mqtt-discovery-prefix PREFIXHome Assistant's discovery prefix.homeassistant
--mqtt-ha-status TOPICHome Assistant's status topic.homeassistant/status

Examples

Mine with the tuned thread count:

./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1

ALGORITHM is the algorithm you mine, for example hoohash; algorithms lists them with their address forms.

Mine on a pool's TLS port:

./sloptiminer mine -a ALGORITHM -o stratum+ssl://HOST:PORT -u YOUR_ADDRESS.rig1

Use three quarters of the tuned threads and print one status row, for a log:

./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 --cpu-percent 75 --line

Mine with a backup pool:

./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 -o BACKUP_HOST:PORT

Mine on the graphics cards only, not on the CPU (without --devices the miner mines on both):

./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 --devices gpu

Check a command without mining:

./sloptiminer check-config -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 -t 8

Write the state to a file that another program reads:

./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 --state-file /run/sloptiminer/state.json

Exit codes

CodeMeaningA restart helps
0Stopped normally: q, Ctrl-C on the screen, or --duration ended. check-config found nothing wrong.not needed
1Runtime error (pool, input and output).maybe
2Install or configuration problem: the package, the CPU, an option or the address. For example a wrong CPU for this build, a changed package, an unknown option, a missing algorithm, pool or address, or a pool that refused your address three times in a row.no
128+NEnded by signal N: 130 is SIGINT, 143 is SIGTERM. A shell shows these numbers. systemd records the signal instead and counts systemctl stop as a clean stop.not needed

A pool that cannot be reached does not end the miner: it keeps retrying by itself. A service manager should not restart on exit code 2, because the same files and options will fail the same way. The Linux guide shows this for systemd.

Option mistakes

A wrong option or value stops the miner at once with exit code 2 and three lines: what happened, why, and what to do. An unknown option names the closest valid one:

Option --thread is not known.
Why: Sl0ptiminer only accepts the options in sloptiminer --help.
To fix: Did you mean -t? Fix the option (on HiveOS: Extra config arguments).

With --line the three parts come on one line.

With the default device choice, a GPU failure switches mining to the CPU. Explicit --devices gpu stops if no usable GPU remains. Restart to retry a disabled GPU. CPU limits apply to CPU mining, including fallback: -t N or --cpu-percent P (choose one). GPU feeders may temporarily reduce the active CPU count below that ceiling. There is no GPU limit option.