Download

Options

Commands and essential flags

Default command: run. Inspection & setup commands: devices (--list-devices), algorithms (--list-algorithms), kernels (--list-kernels), oc (oc show, oc test, oc bench, oc reset, oc profiles), setup (--setup), and ctl (controls a running miner, see Remote control). Listing and oc read/bench commands support --json.

SRBMiner-Multi command lines work too: unused CPU flags warn and are ignored; flags that disable NVIDIA are rejected.

Option Aliases Purpose
-a, --algo <ALGO> --algorithm, --algorithm-gpu, -ag Algorithm: pearl (also pearlhash, prl).
-o, --url <URL> --pool host:port (auto TLS), stratum+tcp:// or stratum+ssl:// (optional ?pin=SHA256). Repeat or separate with ,/! for failover.
-u, --user <LOGIN> --wallet Wallet or full login (comma/! list per pool).
-w, --worker <NAME> Appended unless -u already contains . or / (comma/! list per pool).
-p, --pass <PASS> --password Pool password (default x; ! separates pools, #! is literal !).
-c, --config <FILE> Config file (default katzeminer.conf beside the binary).
-h, --help Help (-h compact).
-V, --version Version.

Configuration (katzeminer.conf & env)

One CLI option per line (# starts a comment). Precedence: CLI > KATZEMINER_* env > config file (CLI and env override [gpu ...] sections too; in a comma list, an empty slot defers that card to its section). Env example: KATZEMINER_OC_PROFILE=balanced, KATZEMINER_POOL=url1,url2.

Put [gpu <selector>] sections last in katzeminer.conf (single value per option; specificity: UUID/PCI > model > index):

-a pearl
-o stratum+ssl://prl.kryptex.network:8048
-o stratum+ssl://prl.suprnova.cc:3374
-u YOUR_PRL_WALLET
-w rig1
--oc-profile balanced
--temp-stop 85

[gpu "RTX 5090"]
--oc-profile power:normal
--fan-target 65

[gpu 0]
--pl 400

Pools and network

Option Aliases Purpose
--tls <LIST> Force TLS per pool (true/false comma list).
--job-timeout <SECS> Reconnect after no new job (default 1800, 0 off).
--keepalive [<BOOL>] Send mining.ping after 20 s idle (default off; bare flag = true).
--retries <N> --give-up-limit Failed connects per pool before failover (default 3).
--retry-time <SECS> Same-pool reconnect delay (default 1 s, doubles to 15 s).
--failover-return <SECS> --main-pool-reconnect Time on backup before retrying primary (default 600, min 60, 0 stay).
--proxy <URL> SOCKS5 proxy for pools: [socks5://][user:pass@]host:port.
--doh <MODE> --dns-over-https DNS over HTTPS: off (default), on, strict, google (0), cloudflare (1).

Devices and performance

Option Aliases Purpose
-d, --devices <LIST> --device, --gpu-id all (default), indices (0,2), PCI IDs (01:00.0), UUID prefixes (GPU-5f1c), or exclude (!1).
-i, --intensity <LIST> --gpu-intensity Intensity 1–100 per card (0 default; slows below ~45).
--gpu-kernel <LIST> Per card: auto (default), perf, eff, compat, or exact name from katzeminer kernels (e.g. perf-2,,auto). Mixed rigs supported; unsupported name exits 2.
--yield-to-apps [<MODE>] Pause when another app uses GPU: off (default), auto (keep VRAM), auto-freevram (free VRAM + stock clocks unless --default-* set).
--yield-after <SECS> Busy time before yielding (default 0 s).
--yield-hold <SECS> Idle time before resuming (default 10 s).
--yield-busy-pct <PCT> Other app's SM load threshold, 1–100% (default 5%).
--yield-vram-floor <SIZE> auto-freevram: free VRAM to leave for other programs (512M, 2G, 0; default 2G).
--yield-vram-need <SIZE> auto-freevram: free VRAM needed before a card reopens (e.g. 3G).
--yield-keep-clocks Keep the mining OC clocks while yielding instead of switching to stock on every pause.
--priority <N> --miner-priority Process priority 1 (lowest) to 5 (highest), default 3.

External workload watcher

Share cards with an AI inference server, a render queue or your own script: the miner asks a watcher and steps aside in milliseconds while the other workload is busy (examples in Reliability and kernels).

Option Aliases Purpose
--yield-http <URL> HTTP/HTTPS endpoint polled to tell whether another service is busy.
--yield-http-metric <METRICS> Comma list of Prometheus metric names to sum (busy when the sum > --yield-http-above).
--yield-http-json <PATH> Dotted JSON path to read (.length/.len supported; busy when the value > --yield-http-above).
--yield-http-above <NUM> Busy threshold (default 0).
--yield-http-header <HEADER> Extra header Name: Value; repeat for more.
--yield-http-poll <SECS> Seconds between polls, 0.01–60 (default 0.05).
--yield-http-timeout <SECS> Request timeout, 0.05–30 s (default 0.5).
--yield-cmd <CMD> Command run periodically: exit 0 = idle, non-zero = busy, or a directive on stdout.
--yield-cmd-poll <SECS> Seconds between runs, 0.05–60 (default 0.5).
--yield-cmd-timeout <SECS> Command timeout, 0.05–30 s (default 2).
--yield-stream <CMD> Long-running command writing one directive per line (pause, resume, …).
--yield-gpus <GPUS> Cards the watcher controls (comma list; default all).
--yield-free-vram Release VRAM while paused by the watcher (slower resume).
--yield-on-error <POLICY> When a probe fails or times out: pause (default, fail-safe) or ignore.

Reliability and logs

Option Aliases Purpose
--watchdog <MODE> --disable-worker-watchdog, --disable-gpu-watchdog (for off) on (default), exit (exit 42 when reboot needed), off.
--reboot-script <FILE> --reboot-script-gpu-watchdog Run script instead of restart on GPU/miner failure.
--startup-script <FILE> --a0-oc-script Run once before mining on each start.
--max-rejects <N> --max-rejected-shares Consecutive rejects before leaving pool (default 50, 15 with --restart-on-rejects, 0 off).
--restart-on-rejects --enable-restart-on-rejected Restart miner when --max-rejects is hit.
--max-no-response <N> --max-no-submit-responses Unanswered submits before reconnect (default 10, 0 off).
--no-share-restart <SECS> --max-no-share-sent Restart after N s without an accepted share (default 0, off).
--temp-stop <LIST> --gpu-off-temperature Pause GPU at core temp °C.
--temp-resume <LIST> Resume GPU at °C (default --temp-stop minus 15).
--shutdown-temp <LIST> --shutdown-temperature Shut host down if any GPU hits °C.
--errors-alert <N> --gpu-errors-alert Warn after N invalid results on a card (0 off).
--no-sensors --gpu-sensors-disable Disable temp/fan/power polling and thermal rules.
--state-dir <DIR> Directory for state.json and oc.json.
--no-telemetry Disable 30-min anonymous usage report (see Devfee & privacy).
--log-file <FILE> Mirror console output (no ANSI colors) to file.
--log-mode <MODE> --log-file-mode truncate (0, default), append (1), rotate (2).
--log-file-max-size <MB> Rotate threshold in MiB (default 50, 0 off).
--log-file-keep <N> Rotated log files to keep (default 5).
--verbose --extended-log Log every job, share latency, [devfee] window and card transition.
--report-interval <SECS> Console table period, 5–3600 s (default 30).
--title <TEXT> --set-console-title Console window title.
--background Detach console (pair with --log-file).
--forced-shutdown Exit immediately without OC restore or share drain.

API

Option Aliases Purpose
--api-bind <ADDR> --api Bind host:port (default 127.0.0.1:4068, 0 off).
--api-enable Enable read-only API (on by default).
--api-port <PORT> Override API port on --api-bind host.
--api-token <TOKEN> Enable POST /control/* (>= 12 chars, Authorization: Bearer TOKEN).
--api-allow-host <NAMES> Extra allowed Host DNS names besides IPs/localhost (e.g. rig1.lan).
--rig-name <NAME> --api-rig-name Rig name in API and console.

Overclocking

Full OC help: katzeminer --help-oc. Per-card flags take one value, a comma list (*/empty skips), or one value inside [gpu ...].

Option Aliases Purpose
--oc-profile <LIST> stock (default), eco, balanced, power, with optional :safe, :normal, :pro or :extreme.
--oc-tier <LIST> Default tier for eco/balanced/power: safe, normal (default), pro or extreme.
--pl <LIST> --gpu-plimit0 Power limit in watts (400) or percent (80%).
--core-offset <LIST> --cclk, --gpu-coffset0 Flat core clock offset, MHz (exclusive with --vf-points).
--vf-points <LIST> Per-point V/F offsets (45-76:+300, / separates bands, 0 resets; exclusive with --core-offset).
--mem-offset <LIST> --mclk, --gpu-moffset0 Memory clock offset, MHz.
--lock-core <LIST> --lock-cclk, --gpu-cclock0 Locked core MHz (2895) or MIN:MAX (180:2940); 0 unlocks.
--lock-core-mode <LIST> --gpu-cclock-mode 0 standard lock (default), 1 dynamic ceiling.
--lock-mem <LIST> --lock-mclk, --gpu-mclock0 Locked memory MHz (405, 810, 7001; 405 requires --mem-offset 0/unset); 0 unlocks.
--vddc-offset <LIST> --gpu-vddc-offset0 Core voltage offset, -500..=0 mV (use =: --vddc-offset=-35; needs --lock-core; blocked on RTX 5060 / 5060 Ti / PRO 6000; Blackwell only).
--fan <LIST> --gpu-fan0 Fixed fan speed 0–100% (exclusive with --fan-target).
--fan-target <LIST> Hold core temp 40–85 °C (exclusive with --fan).
--no-oc --gpu-disable-oc Ignore all OC options and profiles.
--oc-reset --gpu-reset-oc Reset all GPUs to driver defaults at start and exit.
--help-oc Print all overclocking options.
--oc-delay <SECS> Wait 0–120 s after OC before mining (default 0).
--oc-core-delayed --oc-coffset-delayed Apply core lock/offset after mining starts (default --oc-delay 3 s).
--oc-guard <MODE> Step down failing profile cards in oc.json: auto (default), on (also monitors manual cards), off (hold immediately).
--default-oc-profile <stock> Switch paused cards to pre-miner settings (stock); other --default-* layer on top.
--default-pl <LIST> Paused power limit (watts or %).
--default-core-offset <LIST> Paused core offset, MHz.
--default-vf-points <LIST> Paused V/F curve offsets (0 resets).
--default-mem-offset <LIST> Paused memory offset, MHz.
--default-lock-core <LIST> Paused core lock, MHz or MIN:MAX (0 unlocks).
--default-lock-mem <LIST> Paused memory lock, MHz (0 unlocks).
--default-vddc-offset <LIST> Paused voltage offset, -500..=0 mV (needs --default-lock-core).
--default-fan <LIST> Paused fixed fan, 0–100%.
--pause-tune <SECS> Settle delay 0–120 s after restoring mining OC (default 0).

Overclocking tools

Offline commands (no pool/wallet; accept -a, -d, -c). oc test and oc bench restore GPUs on exit.

Command / option Purpose
oc show Read-only bounds, current state, guard step and OC preview (accepts all run OC flags).
oc show --vf Show 127-point V/F curve offsets per card.
oc show --state-dir <DIR> Directory holding oc.json.
oc show --json JSON output.
oc test Test manual OC flags on a synthetic job (rate, watts, eff, temp, validity).
oc test --secs <N> Measure window 5–3600 s (default 60, after 5 s warm-up).
oc test --json JSON output.
oc bench Benchmark OC and kernel modes offline; saves nothing.
oc bench --modes <LIST> Comma list of stock, eco, balanced, power (:safe/:normal/:pro/:extreme), perf/eff/compat, or oc:kernel pairs.
oc bench --duration <SECS> Measure window per mode, 5–120 s (default 15).
oc bench --warmup <SECS> Warm-up per mode, 2–60 s (default 5).
oc bench --no-oc Compare kernels at current GPU settings.
oc bench --json NDJSON output per mode + summary.
oc reset Reset selected GPUs to driver defaults and guard step 0.
oc reset --forget Also delete the card's entry from oc.json.
oc reset --state-dir <DIR> Directory holding oc.json.
oc profiles Built-in calibrated profiles for installed GPUs.
oc profiles --all All calibrated models in this build.
oc profiles --json JSON output.

Remote control (ctl)

katzeminer ctl talks to a running miner over its HTTP API (API). The miner needs --api-token; ctl reads the address and token from --api/--token or KATZEMINER_API_BIND/KATZEMINER_API_TOKEN.

Command / option Purpose
ctl --api <HOST:PORT> Miner API address (default KATZEMINER_API_BIND or 127.0.0.1:4068).
ctl --token <TOKEN> Bearer token for control commands (default KATZEMINER_API_TOKEN).
ctl --timeout <SECS> Request timeout (default 5).
ctl status Rig and per-card mining/pause state (GET /summary).
ctl status --json Raw /summary JSON.
ctl pause Pause all cards or one (POST /control/pause).
ctl pause --gpu <ID\|all> Card device_id from status, or all (default).
ctl pause --secs <SECS> Resume by itself after N s (a lease: a crashed hook never leaves the card paused).
ctl pause --free-vram Release VRAM while paused (slower resume).
ctl resume Resume all cards or one (--gpu <ID\|all>).
ctl intensity <1-100> Set the duty cycle of all cards or one (--gpu <ID\|all>).
ctl restart Ask the watchdog to restart the miner (needs --watchdog on).

For KatzeMiner 0.2.3.