RigForge reads a small config.json in the repo root. It holds only what the script can't infer. The
rest (CPU profile, thread count, HugePage sizing) is detected and applied for you.
On first run, if there's no config.json, setup creates a minimal one interactively (it asks for
your pool URL and optional stratum password). For an .onion host it explains that you must
install and run Tor yourself, defaults socks5 to 127.0.0.1:9050, and offers a validated
interactive override (Enter or EOF keeps the default). LAN pools get no proxy prompt or key.
You can also pre-create one from
config.minimal.json.
Setup validates every field when it parses the config. A malformed pool URL, an out-of-range port, a
bad hostname, a non-boolean flag, or an unsafe HOME_DIR stops setup with a message rather than
producing a config the miner would reject.
The only required field is the pool. RigForge uses XMRig's native pools array, and a pool only needs
its url (a host:port). Everything else falls back to a default:
{
"pools": [
{ "url": "<YOUR_POOL_HOST>:3333" }
]
}That's a complete config. Replace <YOUR_POOL_HOST>:3333 with your pool's host and port (Pithead's
proxy listens on 3333). The interactive first-run setup writes this minimal shape for a LAN pool without a password.
Mining to a public pool like SupportXMR? A
urlalone isn't enough: public pools also need your Monero wallet as the pooluser(and usually a TLS port). See Connecting to a public pool for a copy-paste example.
Two-tier config (like Pithead): keep
config.jsonminimal and add only the keys you want to change.config.reference.jsonlists every key with its default. Copy in what you need; anything you omit keeps the default. The reference table below documents each key.
Key naming: the three legacy keys (ACCESS_TOKEN, DONATION, HOME_DIR) keep their historical
SCREAMING names forever — renaming them would break deployed fleets, and aliasing would double the
documented surface. Every other documented key, and every future one, is lowercase snake_case,
matching Pithead. (RIG_NAME is a reserved SCREAMING name seeded by the appliance image build; it is
not read by parse_config today, so it isn't in the table below.)
| Key | Default | What it does |
|---|---|---|
pools |
(required) | XMRig's native pools array — the pool(s) to mine to. Each entry needs a url (host:port); every other field falls back to a Pithead default. A pool's user is the rig's dashboard label (defaults to the hostname). List multiple entries for failover. See Pools. |
| — | — | Unknown RigForge keys warn and are ignored (with a did-you-mean for near-misses) — a typo'd key, especially ACCESS_TOKEN, must never silently not apply. Keys inside xmrig are passed to XMRig; an undocumented name warns but is not refused. Keys starting with _ are comments. |
api |
"disabled" |
"enabled" serves the sister API: a second read-only port with XMRig's /1/summary+/2/summary passed through verbatim plus a namespaced rigforge object (tune state, RAPL watts, firmware/health probes, pinned versions), and /health + /tune endpoints. One tiny persistent stdlib server; a systemd timer refreshes its data every 15 s, so requests never touch the miner (see operations › sister API). Gated by ACCESS_TOKEN or any named ACCESS_TOKENS entry; Linux-only. control: "enabled" implies this (control is unobservable without the read feed) — but api is not itself in control's writable key set, so a Pithead stack can never turn it on remotely; it only ever comes on from local config. |
api_port |
8081 |
Sister API port (8080 is rejected — that's XMRig's own API). |
api_bind |
"0.0.0.0" |
Sister API listen address. |
control |
"disabled" |
"enabled" serves the writable control path (#236): a separate authenticated port that lets a Pithead stack apply config changes through RigForge, so config.json stays the source of truth (the producer for pithead Worker Inspect). Implies api: "enabled" — control has no read side of its own, so Pithead confirms an applied change through the sister API's enriched feed; no need to also set api by hand. Fail-closed: enabling it requires both ACCESS_TOKEN and api_allow_from — a writable API with no token or no pinned source is refused with a hard error. Only pools, DONATION, autotune, watchdog(+watchdog_interval_min), and max_temp_c are writable through it; anything else is rejected. In appliance mode, requests containing pools are also rejected with appliance-pools-read-only: change the pool in Pithead configuration (rig.json for the rig role), which owns it across boots. A change touching only watchdog_interval_min and/or max_temp_c applies without restarting XMRig (#381) — every other key restarts it. The remote path additionally refuses to disable watchdog or to unset / out-of-band max_temp_c — a rig's thermal protection can only be removed by a local rigforge.sh apply on the box (#257). While tor_socks5 is set it also refuses any DONATION write above 0 — the donation pool would dial direct (#696). Each change is validated, the old config is snapshotted to config-backups/ first, and a change that doesn't come back live is rolled back. The receiver holds no privilege and stages off the request path, so writes never touch mining. Linux-only. See Operations › Control path. |
control_port |
8082 |
Control path port (rejects 8080 and the api_port). |
control_bind |
"0.0.0.0" |
Control path listen address. Pair with api_allow_from (required) to pin who may write. |
miner_user |
"" (root) |
Run the miner as this dedicated non-root system user (created at setup, nologin). RigForge applies the CPU's MSR preset root-side before start; on families without a known preset the ~10-15% MSR boost is skipped — which is why this ships opt-in. Lowering privilege changes nothing else: HugePages come from the boot reservation, tune/doctor/apply all keep working. |
api_allow_from |
"" (off) |
Restrict the API port(s) — :8080, :8081 when the sister API is on, :8082 when the control path is on — to a single IPv4 or IPv6 address/CIDR (plus loopback), via an own nftables table (renders ip saddr or ip6 saddr per family). SSH and mining are never touched. For IPv6 to be reachable-and-scoped, set api_bind/control_bind to :: (the servers then bind dual-stack). Needs nft; Linux-only. |
rig_id |
"" |
Optional label the sister feed echoes verbatim as rigforge.rig_id so a coordinator can show which configured rig it is talking to (an appliance sets it on its rigs). RigForge never invents one, and an empty or whitespace-only value stays absent (null on the feed). It is identity, not a credential: it is never accepted as authentication anywhere. |
ACCESS_TOKEN |
"" (open) |
The master bearer token, and the only one XMRig itself carries. Unset leaves the read APIs open. When set, it is the token rendered into XMRig's own :8080 API, the one RigForge's own liveness/rollback probe uses when the control path restores pools after a failed apply, and an accepted bearer on :8081/:8082 like any ACCESS_TOKENS entry. Read-only :8081 also accepts its scoped HMAC-derived read bearer for Pithead 2.0 when the token is a randomly generated 32+ character value (openssl rand -hex 16). Short legacy tokens remain raw-client compatible but get no derived bearer. A stack that probes :8080 directly must hold this one — a named token cannot be honoured there, because XMRig takes exactly one http.access-token. See Pithead Integration. |
ACCESS_TOKENS |
{} (none) |
Optional name → token map: one token per Pithead stack that consumes this rig, so rotating one stack's token never touches another's and no stack needs another stack's credential (#516). Every entry is accepted on the read-only sister API (:8081) and the writable control path (:8082) exactly as ACCESS_TOKEN is — raw match on both, plus that entry's own scoped HMAC-derived read bearer on :8081 under the same 32+ ASCII character rule. Entries grant no access to XMRig's :8080 and are never used for the control path's pools restore; both stay ACCESS_TOKEN's. Names are yours (e.g. {"prod": "…", "bench": "…"}); values take the same characters ACCESS_TOKEN does (letters, digits, . _ - : @ +). Tokens are read once at service start, so revoking an entry means removing it and running sudo rigforge.sh apply. rigforge.sh doctor reports how many are configured and which one XMRig carries. |
DONATION |
0 |
XMRig donation percentage, an integer 0–100. Omitted values default to zero; explicit values are preserved. The compiled minimum is always zero, so lowering the runtime value takes effect on apply (which restarts XMRig), without a rebuild. Existing builds rebuild once on upgrade to install the zero minimum. While tor_socks5 is set, DONATION must be 0: a donation pool is a direct connection, so setup, upgrade, apply and remote DONATION writes refuse any non-zero value (appliance rigs get the Tor default automatically, so they require 0 unless tor_socks5 is explicitly set to null). |
HOME_DIR |
DYNAMIC_HOME |
Where worker files live. DYNAMIC_HOME puts them in data/worker inside the repo; set an absolute path to use <path>/worker instead. |
autotune |
"disabled" |
Periodic live tuning, as a target: "disabled" (default) installs no timer; "performance" schedules a periodic tune for raw hashrate; "efficiency" schedules one for hashrate-per-watt (needs a power source, built-in RAPL or TUNE_POWER_CMD, else it falls back to performance with a warning). Legacy booleans still parse (true → performance, false → disabled). This key controls the schedule; to run one live pass by hand, use tune --now (or tune --now --long for a full all-knob sweep). See Operations › Live auto-tuning. |
watchdog |
"disabled" |
"enabled" installs a systemd timer that health-checks the miner every watchdog_interval_min minutes and restarts it when it's wedged — process alive but two consecutive checks see 0 H/s or an unreachable API (the case Restart= can't catch). One bad check never restarts (it could be a restart-in-progress). Legacy booleans parse (true → enabled); a typo hard-errors rather than silently disabling recovery. Linux-only. See Operations › Watchdog. |
watchdog_interval_min |
5 |
Watchdog check cadence in minutes (1–1440). |
max_temp_c |
"" (off) |
Optional thermal cutoff for the watchdog: above this °C the miner is stopped, and started again once the rig cools 5 °C below it (fixed hysteresis). Empty = no thermal logic. The sensor is /sys/class/thermal/thermal_zone0/temp when it exists, else the CPU hwmon (k10temp/coretemp) — and k10temp reports Tctl, a control temperature that runs high by design (a loaded EPYC reads ~90 °C Tctl in normal operation). Check the live reading before choosing a cutoff (THERMAL_ZONE overrides the path). Accepts 40–110. |
hugepages_reserve_extra_mb |
0 |
MB of HugePages to leave for the rest of the box when RigForge sizes its reservation — for co-locating a miner on a busy host (e.g. a Pithead stack, whose 2MB pages come from the same kernel pool). RigForge stays the sole writer of the reservation; this key just declares how much of it isn't the miner's. Added to both the boot reservation and the runtime pool. When the box's existing reservation already covers stack + miner and its 2MB component respects any explicit hugepages_pool_ceiling_mb, RigForge changes nothing and needs no reboot. |
hugepages_pool_ceiling_mb |
0 (no ceiling) |
A hard cap, in MB, on the 2MB HugePages pool RigForge will reserve — the opposite direction from hugepages_reserve_extra_mb, which adds to the computed requirement rather than bounding it. Set it on a RAM-constrained co-resident box: the runtime vm.nr_hugepages write is never grown past the ceiling, and neither is the hugepages= RigForge merges into the GRUB cmdline, so the pool does not come back up over the ceiling after a reboot (the grow-only runtime write could never bring it down again). An odd MB value floors to the 2MB page below (5121 → 5120 MB effective) — a cap rounds toward less memory, never more. The 1GB dataset reservation is a separate pool this key does not bound, so a ceiling below a box's 1GB reservation still leaves it holding more hugepage memory than the ceiling names. |
threads |
"" (auto) |
A ceiling on the RandomX thread count — min(auto-detected, threads), never a raise. A co-located miner sets it (e.g. nproc-2) to leave the stack its cores. Both the generated cpu.rx and the HugePages sizing honour it, so the reservation matches the threads actually run. |
xmrig |
{"randomx":{"mode":"fast","init":-1,"init-avx2":-1}} |
Optional XMRig config overlay for keys RigForge does not model. It must be an object and is deep-merged after tuned overrides but before the threads cap. The root keys pools, http, donate-level, donate-over-proxy, opencl, and cuda are protected and refused even when their value is null, false, or empty. randomx, when present, must be an object, and three of its keys are validated: mode accepts "auto", "fast" (the default), or "light"; init accepts -1 (automatic, the default) or an integer from 1 through 2147483647; init-avx2 accepts -1 (automatic, the default), 0 (off), or 1 (on, when the CPU supports AVX2). A smaller init, such as 2, reduces dataset-initialization contention on a co-located stack and after thermal resume. Wrong types and out-of-range values for these three stop setup. cpu.rx may also be an array or object that pins threads: an array entry is -1 (any core), a core index below the host's logical CPU count, or an [intensity, affinity] pair ("cpu":{"rx":[0,2,4,6]} runs four threads on cores 0, 2, 4 and 6), and an object takes threads and an affinity core mask. A wrong type or a core beyond the host's logical CPUs stops setup with a message naming xmrig.cpu.rx. A pinned cpu.rx is excluded from tune, and an array longer than the threads cap, or than XMRig's auto-detected thread count, is cut to its leading entries (an array at or under both is kept as written). See RandomX mode and initialization and XMRig's config reference. |
shared_host |
false |
Opt-in bounded coexistence profile. Set an object with cpu_quota_percent (1–10000, percentage of one CPU), memory_max_mb (3072–1048576 MiB), and optional existing_host_tuning: "preserve" for an explicit dedicated-to-shared transition. Requires Linux systemd with unified cgroup v2; it disables global tuning and uses ordinary pages. See Shared-host profile. |
tor_socks5 |
null (direct) on a plain host; 127.0.0.1:9050 on an appliance rig |
RigForge's own fetches go through one SOCKS5 proxy at host:port, e.g. "127.0.0.1:9050" for a local Tor client: upgrade --check (the GitHub releases API), the pinned XMRig source clone in setup and upgrade, and the git fetch of the remote-upgrade oneshot (control_upgrade) — and, when set, setup's package-manager installs (apt, dnf, pacman, brew). Same address rules as a pool's socks5 (host:port, not a URL; an empty string, a non-string or a bad port is refused by parse_config). Names resolve at the proxy (socks5h for git, curl's --proxy socks5h://, apt's Acquire::http::Proxy/Acquire::https::Proxy, dnf's --setopt=proxy, ALL_PROXY for pacman and brew), and with the key set these fetches and installs fail closed: an unreachable proxy is an error, never a direct connection. They ignore NO_PROXY, ~/.curlrc, and git's system and global config, git speaks only https (a non-https origin is refused by control-upgrade), and a config.json that cannot be read is refused rather than read as "no proxy". The oneshot reads the key from config.json itself, so nothing is exported to the unit and an edit takes effect on its next run. Appliance rigs are Tor-only: when the key is absent, setup writes the local Tor client's 127.0.0.1:9050 into config.json, so the default is carried by the file and survives re-runs; an explicit null is the deliberate opt-out to direct. An appliance never runs a package manager at all — the toolchain is baked into the image and setup refuses installs rather than reaching apt. While the key is set, DONATION must be 0: a non-zero donation makes XMRig dial its donation pool directly, and setup, upgrade, apply and remote DONATION writes refuse it (see the DONATION and control rows). This is separate from a pool's socks5, which only carries stratum for the miner. The jq bootstrap in setup runs before config.json can be read and stays the operator's to route. doctor reports the key (or the appliance default) and whether its port answers. RigForge does not install or run Tor. |
add_to_path |
false |
When true, setup installs a rigforge command on your PATH (a symlink in /usr/local/bin) so you can run sudo rigforge <cmd> from any directory. Off by default. uninstall removes it. Ignored on a package install (a .rigforge-package marker), where the package owns the command. |
RigForge generates the live XMRig config.json in the worker root. There is no template file;
supported operator settings belong in your repo-root config.json. Every run (re-runs included)
rebuilds the config from five sources:
- Your
config.json: thepoolsarray (with connection defaults filled in and supported optional fields preserved), thedonate-level, and thehttpAPI block (bound to the LAN, read-only, open by default; setACCESS_TOKENfor a bearer token). These are the keys documented in the reference table. - Detected hardware: the per-CPU
cpu/randomxtuning (thread count,asm, MSR, NUMA, HugePages). RigForge uses XMRig's own cache-aware auto-detection rather than a CPU-model table, so it stays correct for CPUs it's never seen. See Hardware Requirements. - Static defaults: the fixed knobs every worker shares, emitted directly:
autosave: false,watch: false,print-time: 60,health-print-time: 60,colors: false(Linux only),randomx.mode: fast,randomx.init: -1,randomx.init-avx2: -1,opencl/cudaoff, and thehttpport8080. - Tuned overrides (if present): if you've run
tune, its winning knobs intune-overrides.jsonare merged next, so tuning changes only the keys it measured and never edits yourconfig.json. - Your
xmrigoverlay (if non-empty): its nested objects are deep-merged over the generated and tuned values. Its validatedrandomx.mode,randomx.initandrandomx.init-avx2(or their defaults) are then applied, and in light mode RigForge forces1gb-pages: false, including over a tuned or overlay value, because light mode has no dataset to put in 1 GB pages. Thethreadscap is applied last, so it remains a hard ceiling.
The effective order is generated < tuned overrides < xmrig overlay < threads cap. If a step
fails, for example because tune-overrides.json replaced randomx with a non-object, the render stops
with a warning and the previous generated config.json stays in place; a tune candidate that cannot
be rendered is skipped rather than benchmarked. A knob set in xmrig is operator-owned: tune leaves
it out of the trial grid and seeds, scheduled autotune does not change it, and tune --history
identifies the excluded key. doctor reports the overlay's dotted key names so an operator can see
what is pinned.
The overlay is an escape hatch to XMRig's own parser, not a second strict XMRig schema. RigForge warns
with the names of keys absent from XMRig's published config reference, but still lets XMRig decide
whether they are valid. The protected root keys are the exception: pools, http, donate-level,
donate-over-proxy, opencl, and cuda are refused because RigForge owns their safety and product
semantics.
apply and apply --dry-run require the built XMRig executable and validate a staged copy with
XMRig's --dry-run parser before replacing the live config. A parser failure prints XMRig's message
and leaves the live config and service untouched; preview mode also leaves them untouched. The
validation copy disables background, log writers, and the CPU memory pool so preview does not write
logs or reserve HugePages. At least one pool must be enabled: XMRig otherwise falls back to another
config instead of validating the candidate.
RigForge owns the generated config: XMRig neither saves its auto-detected settings back into it nor
hot-reloads hand edits. Edit your repo-root config.json (including its xmrig object, or use tune)
and run apply to regenerate the file and restart the miner. A direct restart can load a hand edit,
but the next regeneration overwrites it. On Linux, XMRig resolves the automatic thread profile again
at each start.
Each generation records SHA-256 fingerprints of the source config.json and the presence and
contents of tune-overrides.json, plus a UTC timestamp, in xmrig/build/.rigforge-apply.json under
the worker root. doctor and status compare those fingerprints with the current sources: a match
is OK, a change warns with sudo ./rigforge.sh apply, and a missing or unreadable stamp is
informational. Older installs gain a stamp on their next generation. Restarting the service alone
does not regenerate its config or refresh this stamp.
This is a conservative source-file check: whitespace edits and changes to settings outside XMRig (including restart-free watchdog updates) also warn. It does not prove which config a running process loaded. An unreadable or invalid tune overlay, or source fingerprints that differ between parsing and generation, cannot establish a new stamp. Avoid editing sources during generation: changes that revert before the final fingerprint check are not detected. The API's writable-config revision and provenance remain separate.
fast remains the default and uses the full dataset for maximum hashrate. light uses one shared
256 MiB cache and is intended for hosts that cannot spare the dataset memory; it is substantially
slower. auto starts with fast, but when RigForge detects that available memory is below the ~2080 MiB
threshold it automatically picks light mode, turns 1 GB pages off, and logs an info message — there is
no hard floor or refusal. The rendered miner config then carries mode: light. While a fast or auto miner is running, its
dataset memory is in use, so auto keeps the auto mode instead of re-reading memory; a running light miner
holds only its small cache, so memory is checked as usual and auto returns to fast once enough is available. Light mode runs on any
machine with enough RAM for a 256 MiB cache, at a fraction of fast-mode hashrate (expect it to be several
times slower; it is not measured here). A CPU without AES-NI or AVX2 is likewise only a warning, with lower
hashrate.
Choosing light explicitly skips the memory check entirely and uses the smallest possible HugePages
reservation (2 MB only). auto does the same thing under the hood when memory is low.
Changing xmrig.randomx.mode and running apply immediately renders the new miner config. On Linux,
re-run setup and reboot as well to resize the persistent HugePages reservation. Runtime reservation is
grow-only, and the co-resident-host guard keeps an existing sufficient pool, so switching to light does
not reclaim a larger live pool automatically.
doctor reports the configured mode. With the service stopped, it also warns before a fast start
when MemAvailable (or MemFree on older kernels) plus free HugePages is below the 2080 MiB dataset
lower bound. This is an early dataset warning, not an estimate of whether the cache, per-thread
scratchpads, or every NUMA replica will fit. For auto, it reports the chosen mode (fast or light)
and the available memory; for auto with low memory it notes the degraded-performance path without
refusing to start.
Don't put a wallet address in the worker
userwhen using Pithead. The stack handles payouts centrally; the pooluseris just a rig label (it defaults to the hostname so you can tell workers apart on the dashboard).
The pool target uses XMRig's native pools array with the supported fields below.
Only url is required; every other field has a default, so you specify only what
you care about:
| Field | Default and meaning |
|---|---|
url |
(required) — host:port (e.g. pool.supportxmr.com:443 or your-stack:3333). For an IPv6 literal, use the bracketed [2001:db8::1]:3333 form. |
user |
the machine hostname. This remains the pool login when rig-id is set. For Pithead this is the rig's dashboard label; for a public pool set it to your Monero wallet address (see below). |
pass |
"x" — the stratum password / worker name. For an open Pithead stack the default works; if the operator enabled the stack's p2pool.stratum_password, set this to that secret or the proxy rejects the rig. See Pithead Integration › Stratum authentication. |
rig-id |
null (unset) — a separate worker label for pools that support XMRig's rig identifier. It accepts the same characters as user and may be empty. It coexists with user: user remains the pool login and keeps its hostname default. |
nicehash |
false — enable the NiceHash Stratum protocol, where the pool assigns the nonce. Accepts only JSON true or false. |
algo |
null (automatic) — pin a RandomX algorithm. Accepted values are rx/0, rx/2, rx/wow, rx/arq, rx/graft, rx/sfx, and rx/yada; any other value is rejected. |
coin |
null (automatic) — let XMRig choose the algorithm for a RandomX coin by case-insensitive name or code: monero/XMR, arqma/ARQ, graft/GRFT, wownero/WOW, zephyr/ZEPH, townforge, or yadacoin/YDA. Unknown values and non-RandomX coins such as Sumokoin and Ravencoin are rejected. |
keepalive |
true — send Stratum keepalive requests to prevent an idle connection timing out. |
tls |
false — set true when you connect on the pool's TLS/SSL port. |
tls-fingerprint |
null (no pin) — the pool cert's SHA-256 as 64 hex chars. XMRig does no CA validation on stratum TLS, so the pin is the only server authentication; without it, TLS encrypts but doesn't authenticate. Requires "tls": true. An empty string is refused rather than dropped: XMRig compares an empty pin with every certificate and matches none, and dropping the key would turn that into no verification at all. See Pithead Integration › Stratum over TLS. |
sni |
false — send the pool hostname through TLS SNI for a name-based TLS endpoint. Accepts only JSON true or false; use it with tls. |
socks5 |
null (direct connection) — dial this pool through a SOCKS5 proxy at host:port, e.g. "127.0.0.1:9050" for a local Tor client. Same address rules as url. XMRig sends the pool's hostname to the proxy rather than resolving it first, so a v3 .onion stratum works with no extra setting — and a normal hostname never leaks to a local resolver, which is why a remote pool is better over 127.0.0.1:9050 than direct when the rig runs Tor. An empty string is refused rather than read as unset. RigForge points the miner at a proxy; running one is yours to arrange. A direct pool remains allowed by owner choice: pair tls: true with tls-fingerprint so a direct connection is at least encrypted and pinned to the cert you checked. |
enabled |
true — allow XMRig to connect to this entry in the failover list. |
daemon |
Omitted for Stratum; a strict boolean. Set true for solo mining. A daemon+ URL implies true; explicit false with that scheme is refused. |
daemon-poll-interval |
Omitted; XMRig defaults to 1000 milliseconds. A positive JSON integer no greater than 9007199254740991, only valid for a daemon pool. |
daemon-job-timeout |
Omitted; XMRig defaults to 15000 milliseconds. A positive JSON integer no greater than 9007199254740991, only valid for a daemon pool. |
daemon-zmq-port |
Omitted; optionally use the node's ZMQ notifications. An integer in 1–65535, only valid for a daemon pool. |
Absent or null rig-id, nicehash, algo, coin, and sni values are omitted from the generated config.
For nicehash and sni, an explicit false is preserved while null means unset. The algorithm and
coin allowlists are pinned to XMRig v6.26.0's src/base/crypto/Algorithm.cpp and
src/base/crypto/Coin.cpp at commit b2ca72480c58d197e18c885d9fc1a0c8d517e60a.
XMRig defers to the pool when it supports algorithm negotiation, ignoring algo and coin.
Avoid coin with NiceHash, where the pool controls which coin is mined.
status and doctor report the live algorithm when it is not rx/0. HugePages sizing and the
offline tune benchmark remain based on rx/0; RigForge makes no performance guarantee for another
RandomX variant.
Two common setups follow; pick the one that matches where you're mining.
Pithead handles pool selection, payouts, and the
P2Pool/XvB split centrally, so the worker only needs the stack host and its proxy port (3333). The
user is just a label for the dashboard, so don't put a wallet address here:
{
"pools": [
{ "url": "stack.lan:3333", "user": "garage-rig" }
]
}user is optional (it defaults to the hostname); set it to tell workers apart on the dashboard. See
Pithead Integration for discovery and the API token.
A public pool pays you, so it needs your Monero wallet address as the login (user) and almost always a
TLS port. RigForge builds stock upstream XMRig, so it speaks standard Stratum to any RandomX pool. Fill
in the pool's endpoint and your wallet:
{
"pools": [
{
"url": "pool.supportxmr.com:443",
"user": "YOUR_MONERO_WALLET_ADDRESS",
"pass": "garage-rig",
"tls": true
}
]
}useris your Monero wallet address. This is who gets paid. Many pools also acceptWALLET.workernamehere to label the rig in their dashboard.passis a worker name (or just"x"; most public pools ignore the password).url+tlsis the pool's stratum endpoint. Use the pool's TLS/SSL port (often:443or:5555) with"tls": true; a plain, unencrypted port needs notls. For a self-signed or internal cert, addtls-fingerprintto pin it. Your pool's Getting started / Connect page lists its exact host, ports, and whether it wantswalletorwallet.worker.
Save that as config.json, then sudo ./rigforge.sh apply (a fresh setup picks it up too).
The pool host must be an IP or DNS-resolvable hostname; allow its Stratum port through any firewall.
Use a Monero-compatible node that you operate. RigForge does not install, run or supervise the
node. Put this pool object in pools, replacing <NODE_AUTHORITY> with its host and RPC port
and <PAYOUT_USER> with your payout identity:
{
"url": "daemon+http://<NODE_AUTHORITY>",
"user": "<PAYOUT_USER>",
"daemon": true,
"daemon-poll-interval": 1000,
"daemon-job-timeout": 15000
}daemon+https:// is also accepted, as is a bare host and port with "daemon": true (and
"tls": true for HTTPS). Host validation follows the existing hostname, IPv4 and bracketed IPv6
rules. Credentials, paths, queries and fragments in the URL are refused. A scheme implies
daemon: true because the pinned XMRig build requires the flag to choose daemon mode.
Remove the timing keys to keep XMRig's defaults. The payout identity must be valid for your node;
RigForge's default machine label is intended for Stratum workers.
Integral decimal and exponent values are written in integer notation for XMRig. Timer values
are limited to 9007199254740991 milliseconds so they stay exact across supported platforms.
The pinned miner ignores socks5 and tls-fingerprint for daemon pools, so RigForge refuses
those combinations. Its daemon HTTPS transport encrypts traffic without authenticating the peer;
use a trusted network or an authenticated tunnel. Doctor's HTTPS RPC check uses curl's normal CA
verification, so a certificate curl does not trust produces a warning even if the miner connects.
Doctor checks get_info with a bounded timeout and reports the node's height and sync state in
the pool-connection check.
An unreachable, slow or invalid RPC response produces a warning. Apply checks the same node RPC.
RPC reachability describes the node; it does not prove that the miner is hashing or earning a
reward. The sister feed labels daemon connections with connection.mode: "daemon"; RigForge
adds no mode field for Stratum connections. Existing miner statistics are preserved.
self-select, submit-to-origin and spend-secret-key remain unsupported: they warn and are
dropped. Do not put a spend key into the configuration. These modes need a separate trust and
secret-handling review.
List multiple entries. XMRig tries them in order and fails over to the next if one is unreachable, handy for a primary stack with a public-pool fallback:
{
"pools": [
{ "url": "stack.lan:3333" },
{ "url": "pool.supportxmr.com:443", "tls": true }
]
}Here the worker mines to stack.lan:3333 and falls back to pool.supportxmr.com:443 over TLS, with
user/pass/keepalive filled in for both.
Edit config.json, then apply it in one step:
sudo ./rigforge.sh applyapply re-reads config.json, regenerates the live XMRig config, and restarts the service, with no
recompile. It's the path for a pools change, a new rig label, TLS, failover pools, and the like. (On
macOS (best effort) there's no service, so apply
regenerates the config and you restart the miner yourself; see
Operations › Running on macOS.)
You can also re-run full setup (sudo ./rigforge.sh), but that re-provisions the whole worker
(dependencies, build, kernel tuning, service). On Linux, setup restarts the service when the binary
was rebuilt or the generated config changed, including on an already-built appliance worker.
An unchanged setup re-run ensures the service is started without restarting a running miner.
If kernel tuning requires a reboot, setup only enables the service for the next boot.
Use apply for config edits without re-provisioning. Both commands skip the recompile when the
pinned XMRig is already built.
DONATION defaults to zero when omitted. Set it to a nonzero percentage to support the XMRig
developers. Upgrade an existing build once to install the compiled minimum of zero; the build marker
records that minimum. Afterward, changing DONATION in either direction takes effect with apply
without rebuilding. doctor warns if XMRig's reported donate_level differs from the configured value.
A non-zero DONATION makes XMRig dial its donation pool directly, so while tor_socks5
is set — including the appliance-rig default — DONATION must be 0; setup, upgrade,
apply and remote DONATION writes refuse anything else.
- Getting Started — first-run setup.
- Hardware Requirements — the auto-detected tuning that drives the generated
cpusection. - Pithead Integration — the API token and discovery rules.