Configuration
The miner keeps its settings in a single TOML file. This page lists every field the daemon parses, the environment variables it reads at startup, and what each network value does. The last section covers which settings you can change freely and which ones decide whether your work passes verification.
Where the config lives
The default path is ~/.aetron-miner/config.toml. The daemon resolves it from $HOME, so HOME must be present in the environment the daemon runs under. The same directory holds the keystore, the local state database, and the log file, unless you have moved them elsewhere.
The init wizard writes the file, and the daemon rewrites it every time it saves settings, so hand edits live only until the next save. Old configs still load: a wallet key from the earlier layout is accepted and ignored, and missing optional keys fall back to their defaults instead of failing the parse.
Configuration fields
| Field | Type | Default | What it sets |
|---|---|---|---|
neuronet_id | integer | required | On-chain id of the Neuronet the miner joins. |
model_path | path | required | Path to the model weights the runner loads. |
keystore_dir | path | ~/.aetron-miner/keystore/ | Directory holding the encrypted wallet key of the miner. |
coldkey_ss58 | string | unset | Optional SS58 address of the registration owner for register-prepare, which prepares nothing. |
cache_dir | path | ~/.aetron-miner/cache/ | Where models and datasets are cached. |
max_cache_gb | integer | unset | Soft cap on cache size in gigabytes. |
resource_limit_pct | integer 0-100 | unset | GPU usage cap. Unset means no limit. |
network | mainnet, testnet, local | testnet | Which AETRON network the miner targets. |
node_url | string | per network | Substrate node endpoint. Overrides the network default. |
registry_url | string | per network | Model registry that weights are resolved through. |
task_id | integer | 0 | On-chain task the miner registers against. |
mesh_listen | multiaddr | /ip4/0.0.0.0/tcp/4101 | libp2p address for receiving jobs from the gateway. |
work_pull | boolean | true | Requests jobs from the gateway over the mesh. |
witness_validate | boolean | false | Opts in to re-checking the training steps of other miners. |
runner_binary | path | unset | Path to a signed release binary of the runner. |
rewards | table | see below | Automatic claim of miner rewards: auto_claim (default true) and claim_threshold_planck (default 1000000000, 1 AET). |
telemetry_enabled | boolean | true | Reports the state of this machine to the network gateways. See the Telemetry section below. |
telemetry_detail | exact, buckets | exact | What the Neuronet owner sees of that report: exact values or ranges only. |
gpu_devices | string | unset | GPUs this miner uses, in the same notation as CUDA_VISIBLE_DEVICES (indices or UUIDs). Unset uses every GPU. |
fake_chain | table | unset | Simulation parameters, see below. |
A few fields need a word of their own.
keystore_dir holds hotkey.json (encrypted) and meta.json, which carries the public SS58 address so the interface can show your identity before the key is unlocked. If the field is missing from the file entirely, serde falls back to the relative path .aetron-keystore rather than a $HOME path, and that is worth knowing for anyone writing a config by hand.
coldkey_ss58 sets an optional account address for register-prepare when --coldkey is not passed; register-prepare prepares nothing. The field holds no private key and does not change the account that signs register and work operations. In the standard setup, leave it unset.
cache_dir can point at another volume, for example a second SSD, when model weights do not fit on the system disk. The same serde fallback applies here: a missing key resolves to the relative .aetron-cache.
max_cache_gb is a warning threshold, not a hard quota. The daemon warns on download when the cache goes over it and keeps running. The init wizard suggests roughly half of the free space on the volume that holds cache_dir.
resource_limit_pct accepts values from 0 to 100. A value that is too low is a verification risk: a throttled machine may miss the timing of the task.
runner_binary points at a compiled release runner. When the field is set, the daemon verifies the signature of the binary against the sidecar .digest, .sig, and .pub files before launching it, and refuses to start if the check fails. It will not silently fall back to the development path. When the field is unset, the daemon runs the runner from Python sources in development mode.
mesh_listen defaults to /ip4/0.0.0.0/tcp/4101: the miner listens on TCP port 4101 on all IPv4 interfaces. If the field is missing, including in an old config, this address is used. To change the bind address or port, set another libp2p multiaddr. Job delivery and peer discovery are covered in Peer-to-peer.
work_pull is enabled by default. The miner requests jobs from the gateway over the mesh. Inference requests come from the gateway; chain state is not a queue for such requests. AETRON_WORK_PULL takes priority over this setting.
witness_validate is off by default because it spends your GPU on other miners' work. Answers to challenges about your own training runs always happen and are not controlled by this flag. Validating other miners needs a real chain connection, because there is nothing to read on a simulated one.
rewards controls the automatic claim of miner rewards. With auto_claim = true the daemon claims on its own when the miner account owns its own registration (that is how new registrations work) and the amount to pay out reaches claim_threshold_planck, set in planck (1 AET is 1000000000). For an old registration with a separate owner account it never claims the reward, because only the owner account can withdraw what has accumulated on that account. Older configs have no such table, and the defaults apply. AETRON_AUTO_CLAIM and AETRON_CLAIM_THRESHOLD_PLANCK override it. See Miner rewards and claiming.
[rewards]
auto_claim = true
claim_threshold_planck = 1000000000
registry_url points at the model registry through which the client resolves weights. If unset, testnet and mainnet use https://app.aetron.io/registry/models.json, and local uses nothing at all, so a dev stand needs the registry placed by hand or an explicit URL set here.
Network selection
network accepts mainnet, testnet, or local, and defaults to testnet. Parsing ignores case and surrounding whitespace.
Each value resolves to a default node endpoint, which the node_url field overrides when it is set:
network | Default endpoint |
|---|---|
mainnet | wss://entrypoint-mainnet.aetron.ai |
testnet | wss://entrypoint-test.aetron.ai |
local | ws://127.0.0.1:9944 |
The miner connects over subxt and submits real calls in all three cases. Earlier builds returned nothing for testnet and mainnet and silently simulated work. Both networks are deployed now, and a client that cannot reach them has to say so.
Failing to connect to a public network does not drop the miner into simulation either. An unregistered or unreachable miner shows as offline: the chain sees nothing from it, so there is no "Mining" label in that case.
network also picks the libp2p bootstrap and relay addresses and the Kademlia namespace, so miners from different networks will not find each other by accident.
To sign without a human at the keyboard, the daemon reads the wallet password at startup from the file wallet.pass in its working directory (~/.aetron-miner/wallet.pass) or from the file that AETRON_WALLET_PASSWORD_FILE points to. The file must be readable by its owner only (chmod 600), otherwise the daemon refuses it and writes the reason to the log. Without a password file the daemon starts read-only and signs nothing until you run aetron-miner wallet unlock. The old AETRON_WALLET_PASSWORD variable is ignored, and the daemon warns when it is set.
Environment variables
Environment variables override config values where both exist.
| Variable | What it does |
|---|---|
AETRON_HOME | Replaces $HOME/.aetron-miner as the working directory of the daemon. |
AETRON_WALLET_PASSWORD_FILE | Path to the wallet password file read at startup. Defaults to wallet.pass in the working directory. The variable holds a path, not the password. |
AETRON_STATE_DB | Path to the state database. Defaults to ~/.aetron-miner/state.db. |
AETRON_MESH_LISTEN | Multiaddr for the mesh. Takes priority over mesh_listen in the config. |
AETRON_WORK_PULL | Overrides work_pull: 0, false, no, off disable it; 1, true, yes, on enable it. Case is ignored. With any other value, or without the variable, the config setting is used. |
AETRON_RUNNER_BINARY | Path to the release runner. Takes priority over runner_binary. |
AETRON_RELEASE_PUBKEY | Path to a pinned public key for release verification instead of trusting the sidecar .pub. |
AETRON_RUNNER_TOKEN | Token the daemon passes to the runner for the IPC channel. |
AETRON_MODEL_PATH | Path to the model passed to the runner process. |
AETRON_CANONICAL_DTYPE | Precision in which the runner loads the model. On a real chain it is set automatically from the canonical spec of the task, and a manually set value is left alone. |
AETRON_CHECKPOINT_ROOT | Root directory of training checkpoints. |
AETRON_WEIGHTS_REGISTRY_BASE | Base URL for resolving model weights. |
AETRON_BOOTSTRAP_ADDRS | Seed peers for the first entry into the DHT. |
AETRON_RELAY_ADDRS | Relay addresses for peers behind NAT. |
AETRON_PEER_CACHE_PATH | Peer cache file. If the variable is unset, aetron_miner_peer_cache.json in the working directory is used. An empty string or off disables the cache. |
AETRON_NETWORK_ID | Suffix of the Kademlia protocol name that separates DHT namespaces. |
AETRON_LANG | Interface language of the CLI. Falls back to the OS locale, then to English. |
AETRON_AUTO_CLAIM | Overrides rewards.auto_claim: 0, false, no, off disable automatic claiming; 1, true, yes, on enable it. With any other value, or without the variable, the config setting is used. |
AETRON_CLAIM_THRESHOLD_PLANCK | Overrides rewards.claim_threshold_planck with a whole number of planck. |
AETRON_TELEMETRY_DETAIL | Overrides telemetry_detail with exact or buckets. Other values are ignored. |
AETRON_MESH_PING_TELEMETRY | gateways, the default: only the network gateways get the telemetry. all: any peer that pings the miner gets it. |
AETRON_GPU_DEVICES | Overrides gpu_devices. |
The peer cache is a disk copy of recently seen peers. It holds up to 256 peers with eight addresses each, ignores records older than seven days, and dials the 8 freshest peers on startup. Once it fills up, the bootstrap addresses matter only for the very first run of the node.
Be careful with AETRON_NETWORK_ID: two miners with different values end up on different DHT protocol names and will not find each other.
Telemetry
The miner reports the state of its machine to the gateways of its network, and the Neuronet owner sees that report in the console, marked as sent by the miner. Telemetry is on by default in every network. The gateway uses it to send less work to an overloaded machine, never more, and rewards never depend on it.
The report is the miner's answer to a ping from the gateway; the miner sends nothing on its own. The report carries:
- The machine: CPU load, RAM used and total, uptime, and the used and total space of the disk that holds the model cache.
- Each GPU, up to 16: load, video memory used and total, temperature, power draw and its limit, performance state, fan, and whether it is throttling.
- The work: jobs running and the maximum number of them, the queue length, tokens produced, the hash of the loaded model, and training steps and loss.
- A machine passport, when the gateway asks for it: miner version, operating system and architecture, CPU model and thread count, total RAM and disk, the inference backend, the driver, CUDA or ROCm version, the engine, and the name, video memory, and power limit of each GPU.
The report holds no host name, account, IP address, serial number, or GPU UUID. Only a gateway gets it: a peer on the gateway list of the network, or a peer that has sent the miner authorized work. Any other peer that pings the miner gets the answer of a miner with telemetry off.
telemetry_enabled = falseturns it off. The reply then says only that telemetry is off, with no values and no passport, so the owner can tell a miner that reports nothing from an idle one. Every reply still carries whether the miner is busy, its uptime, and the protocol versions it supports. The setting does not cover what goes on chain: registration records the GPU architecture and count, and the chain stores the video memory of the largest card.telemetry_detail = "buckets"leaves the report as it is, because the gateway routes on exact values, but the console then shows the Neuronet owner only ranges, without model names or power figures.- A change takes effect when the daemon starts. After editing
config.toml, runaetron-miner daemon restart. aetron-miner telemetryprints what the miner would report right now. See the CLI reference.
telemetry_enabled = false
Fake chain parameters
The fake_chain table tunes the simulation and is hidden from both the wizard and the setup screen. It applies only when the miner is not connected to a real chain. Defaults: job_rate_per_sec = 0.5, epoch_length_blocks = 100, emission_per_block_aet = 1.5, block_time_secs = 12, pulse_cycle_secs = 600, and first_pulse_delay_secs = 60. The delay of the first Pulse is clamped to the cycle length if you set it higher. None of these numbers mean anything on a real network.
What is safe to change
Some settings are local operational choices. Others affect the execution that the network re-checks, and an error in them silently leads to failed verification.
Safe to change at any time:
cache_dirandmax_cache_gb: cached files can be downloaded again, and the cap only warns.keystore_dir, if the key files move with it.coldkey_ss58does not change existing registrations or the account the daemon signs with.AETRON_LANG,AETRON_STATE_DB, and the log location.fake_chainvalues, which never touch a real network.rewards: this table only decides when the daemon claims a reward. Rewards do not expire, so switching automatic claiming off only delays the payout and loses nothing.telemetry_enabledandtelemetry_detail: they decide what the gateways and the Neuronet owner see, and never change rewards.
Change with care:
resource_limit_pct. Throttling the machine so hard that it misses the task timings costs you the reward even though the results themselves are correct.mesh_listenand the peer discovery variables. A mistake cuts you off from job delivery, and a mismatchedAETRON_NETWORK_IDseparates you from the DHT entirely.witness_validate. Turning it on gives your GPU to checking other miners; that is paid work, but it competes with your own jobs.
Affects verification directly:
model_path. The network compares against the model the task declares. Pointing at different weights, a different quantization, or a different revision gives a result that will not match a replay.AETRON_CANONICAL_DTYPE. The canonical spec of the task fixes the precision. Overriding it by hand gives you a runner that loads the model at a precision the checkers do not expect, and honest work is flagged as a mismatch. Leave it to the automatic path unless you are debugging.neuronet_idandtask_id. They decide which canonical spec your work is checked against. A mismatch means you run the settings of one task while you are checked against another.runner_binaryandAETRON_RELEASE_PUBKEY. They control which runner code executes and how its signature is checked. Here the daemon fails closed on purpose.
Parameters that change how the model is loaded or how the computation runs are part of what is verified and are set by the task. The parameters a replay depends on are described in the Execution spec. How the comparison is made is explained in Inference verification.
Where to go next
- CLI reference: commands that read and write these settings.
- How to start mining: what you need before the first run.
- Troubleshooting: common failures and what they point to.
- Peer-to-peer: how job delivery over the mesh and peer discovery work.