Skip to content

Settings

Thermite’s three services read their settings from environment variables when they start: control (the dashboard, API and MCP), and the two containers of each rig: the harness, where the judge and the agents work, and the supervisor, which relays to control. This page lists every variable each one reads, grouped by what it is for.

Terminal window
THERMITE_CONTROL_PORT=8801 THERMITE_MAX_TRIALS=2 docker compose up -d

Settings that belong to one campaign live in its contract or in the command that starts its run: budgets, limits, the trial length and the run’s promotion policy. Those come before the rig’s defaults on this page.

  • Files for secrets. A variable ending in _FILE names a file. Thermite reads the value from the file and trims spaces and line ends. No setting holds a secret’s value itself.
  • Hashes for control’s tokens. A variable ending in _SHA256 holds a token’s SHA-256 as 64 hexadecimal characters, not the token. thermite token new prints it. See Tokens and roles.
  • Empty values. A variable that is left out always takes its default, and so does a number setting that is empty. Path and name settings use an empty value as it is. An empty THERMITE_DEV_GPU_INDEX or THERMITE_GPUS is an error.
  • Numbers. The Type column says what each number setting takes. A value that is not a number, or is outside that, stops the service at start with the setting’s name and what it takes, for example THERMITE_POLL_SECONDS takes a number of seconds above 0, not "30s". Fractions work unless the type says integer or whole.
  • Required settings. A missing required setting stops the service at start with missing environment variable <NAME>. A required secret file that is empty stops it with secret file for <NAME> is empty.
  • Addresses. A _LISTEN setting is host:port. An empty host means every interface (0.0.0.0). A bad value stops the service with bad listen address <value>.
  • Logs. Every service writes one JSON object per line to its output: {"at", "level", "component", "msg", ...}, with the run, trial, attempt, command or rig the line is about among its fields. level is debug, info, warn (something went wrong and the service goes on: a refusal, a retry, a fallback) or error (something failed). A service writes the lines at its THERMITE_LOG_LEVEL and above. While it runs, its level changes without a restart: control’s by its own setting, kept across its restarts (Control’s log level), and a rig’s harness’s or supervisor’s by the signed command log_level, until another changes it or the part restarts. SIGUSR2 switches a running service between its level and debug, and back; sent to a rig’s broker, it reaches the rig’s harness and supervisor too. Each change is said in a line, log level now <level>.

The “Secret” column says whether a value is secret: no; a path to a secret (the file must be kept private); a hash (safe to keep in plain configuration); a directory with secrets (a volume that holds keys); or a one-time code, which is good for one enrollment only.

VariableTypeDefaultSecretMeaning
THERMITE_LOG_LEVELdebug, info, warn or errorinfonoThe lowest level of the log lines the service writes, from its start. Anything else stops the service at start with THERMITE_LOG_LEVEL takes debug, info, warn, error, not "<value>". Control’s own setting, when the owner set one, comes over it; a log_level command changes a rig part’s until the part restarts
VariableTypeDefaultSecretMeaning
THERMITE_CONTROL_LISTENhost:port0.0.0.0:8800noWhere control serves the dashboard, the REST API and MCP
THERMITE_CONTROL_DIRpath/var/lib/thermite-controldirectory with secretsControl’s state: its store (control.db, which also holds Thermite’s knowledge base), its command-signing key pair (control-signing.key and .pub, made at first start), the secrets key when THERMITE_CONTROL_SECRETS_KEY_FILE is not set, the message bus’s certificate authority (bus-ca.pem and .key) and the backup’s key on it (bus-backup.seed), the kits written on the New campaign page (kits/), the exports rigs without a results repository send it (exports/), and the knowledge base’s files, each once by its SHA-256 (kb-files/). thermite backup and thermite restore read it too (Back up and restore control)
THERMITE_CONTROL_PUBKEY_EXPORTpathnot setnoA second place to write control’s command-signing public key, so that rigs can verify signed commands. The local compose file writes it to a volume the harness reads
THERMITE_CONTROL_SECRETS_KEY_FILEpathsecrets.key in THERMITE_CONTROL_DIR, made on first usepath to a secretThe key that encrypts what control keeps for you: model providers’ keys and sign-ins, Git access, GPU cloud keys, machines’ SSH keys, cluster kubeconfigs, and MCP servers’ keys, client secrets and sign-ins. It must hold a 32-byte key in base64. Without the same key, the stored secrets cannot be read. The compose files set it to /var/lib/thermite-control-secrets/secrets.key, on a volume of its own (control-secrets). When it names a file other than the default, control moves a key still in THERMITE_CONTROL_DIR there at start, and refuses to start when both hold different keys. A backup never holds it
THERMITE_CONTROL_STALE_SECONDSseconds, above 0180noA rig that has sent no report for this long shows as stale: Stale on Rigs, stale in the rig lists. A stopped RunPod pod shows Stopped on Rigs instead
THERMITE_CONTROL_OFFLINE_SECONDSseconds, above 0900noA rig that has sent no report for this long is offline in the rig lists of the REST API, MCP and thermite rig list, and on its page, and Offline on Rigs. A value below THERMITE_CONTROL_STALE_SECONDS counts as that value
THERMITE_CONTROL_SESSION_DAYSdays, above 030noHow long an unused dashboard sign-in lasts
THERMITE_DISK_FLOOR_GIBGiB, 0 or more5noThe free space control keeps on its state folder (THERMITE_CONTROL_DIR) and in the message bus’s store, the room JetStream has left under its limit as the server’s monitoring gives it. Control looks every minute. Below it on either, control holds new runs: Start a run, thermite run start and assign_campaign are refused with the reason (409 over REST), Needs you shows a card with what is full and what to do, its health says "degraded":true with the reading and still answers 200, and /metrics gives thermite_control_disk_free_bytes and thermite_control_disk_low. It drops nothing: reports, commands and the runs under way go on. It lets go once each place has 1 GiB more than the floor. The same setting and default as a rig’s (Places, exports and the broker). Fractions work. 0: no floor. It is a mechanical limit, never a limit on research (Troubleshoot)
THERMITE_CONTROL_KB_ORPHAN_HOURShours, 0 or more0noThe default of the knowledge base’s setting Orphan files kept, in hours, which the owner can change on control (The knowledge base’s settings): how long control keeps a knowledge-base file that no item names (an orphan: its item never arrived, or was refused), counted from when control kept it. Control looks at its start and every hour after, and removes each orphan older than the setting then, with kb_file_removed in its audit log. Fractions work. 0: every file is kept, for good. The knowledge base’s other setting, the largest file it takes, has no environment variable: it has no limit until the owner sets one

Each role takes one of its two variables: a hash, or a file that holds the token. Tokens and roles has the rules.

VariableTypeDefaultSecretMeaning
THERMITE_CONTROL_ADMIN_TOKEN_SHA256SHA-256required, this or the nexthashThe owner’s token, as its hash. Without either variable control stops at start with control needs the owner's credential: THERMITE_CONTROL_ADMIN_TOKEN_SHA256 (from `thermite token new`) or THERMITE_CONTROL_ADMIN_TOKEN_FILE
THERMITE_CONTROL_ADMIN_TOKEN_FILEpathrequired, this or the previouspath to a secretThe owner’s token, as a file. Meant for local development
THERMITE_CONTROL_OPERATOR_TOKEN_SHA256SHA-256not sethashThe operator’s token, as its hash
THERMITE_CONTROL_OPERATOR_TOKEN_FILEpathnot setpath to a secretThe operator’s token, as a file
THERMITE_CONTROL_AGENT_TOKEN_SHA256SHA-256not sethashThe agent’s token, as its hash
THERMITE_CONTROL_AGENT_TOKEN_FILEpathnot setpath to a secretThe agent’s token, as a file
THERMITE_CONTROL_READ_TOKEN_SHA256SHA-256not sethashThe reader’s token, as its hash
THERMITE_CONTROL_READ_TOKEN_FILEpathnot setpath to a secretThe reader’s token, as a file
THERMITE_CONTROL_REQUIRE_KEY_ACCEPT1offno1: control takes no report from a new rig until the owner accepts the rig’s report-signing key on the dashboard. A change of a rig’s key always waits for the owner. See Accept a rig’s key

Setting both variables of one role stops control at start with set THERMITE_CONTROL_<ROLE>_TOKEN_SHA256 or _FILE, not both. A _FILE whose file is missing or empty counts as not set.

VariableTypeDefaultSecretMeaning
THERMITE_CONTROL_PUBLIC_URLURLnot setnoControl’s address as rigs and machines reach it, for example https://control.example.com. Rigs that control sets up register their keys on the message bus there, and send their large files; they report on the bus. Without THERMITE_NATS_PUBLIC_URL, its host with port 4222 is also the bus’s address for rigs. An http:// address must name this computer (localhost, 127.0.0.1, [::1]) or a name with no dot, as compose names a service (http://control:8800), unless THERMITE_CONTROL_ALLOW_PLAIN_HTTP is 1: otherwise control stops at start with THERMITE_CONTROL_PUBLIC_URL is "<address>", plain http to another host: … set THERMITE_CONTROL_ALLOW_PLAIN_HTTP=1 to allow plain http on a network you trust. Not set: Add a rig and join commands are blocked, a machine’s check skips the “reaches control” test, and a cluster rig’s image update is refused. It is also where an MCP server’s OAuth sign-in page sends your browser back (/v1/mcp-oauth/callback). Not set, a sign-in works only when you reached control as localhost, 127.0.0.1 or [::1], and the browser comes back there; at any other address it is refused with An MCP server's sign-in sends your browser back to control: set THERMITE_CONTROL_PUBLIC_URL to the address you reach control at. …
THERMITE_CONTROL_ALLOW_PLAIN_HTTP1offno1: control may take an http:// THERMITE_CONTROL_PUBLIC_URL on another host, such as an address on a home network you trust. Rigs then send their tokens, and rigs off the message bus get their keys, over plain HTTP. Off: control takes http:// only for this computer or a compose service’s name
THERMITE_RIG_HARNESS_IMAGEimage referencenot setnoThe harness image for CPU rigs that control sets up on machines and clusters. Needs THERMITE_RIG_SUPERVISOR_IMAGE too: without both, control can’t set rigs up
THERMITE_RIG_SUPERVISOR_IMAGEimage referencenot setnoThe supervisor image for those rigs
THERMITE_RIG_HARNESS_CUDA_IMAGEimage referencenot setnoThe harness image for rigs with GPUs. A release’s compose.yaml sets the CUDA 12 image (-cuda), for Pascal to Hopper (The CUDA harness). A rig control sets up on a machine over SSH that needs CUDA 13 takes this image while THERMITE_RIG_HARNESS_CUDA13_IMAGE is not set, so a deployment that set the CUDA 13 image (-cuda13) here for its Blackwell GPUs or DGX Sparks keeps working. Not set: a rig with GPUs is refused with “Control has no CUDA harness image configured (THERMITE_RIG_HARNESS_CUDA_IMAGE).”
THERMITE_RIG_HARNESS_CUDA13_IMAGEimage referencenot setnoThe CUDA 13 harness image (-cuda13), for a rig on a cluster added with cuda: "13" over MCP (add_cluster_rig): Turing to Blackwell, and the DGX Spark on arm64. A rig control sets up on a machine over SSH takes it too when the machine is arm64 or one of the rig’s GPUs is a Blackwell. Each update of such a rig moves it onto this image; control records the rig’s CUDA, so an update keeps it on CUDA 13 when the machine’s facts no longer name its GPUs. A release’s compose.yaml sets the release’s CUDA 13 image. Not set: such a rig on a cluster is refused with “Control has no CUDA 13 harness image configured (THERMITE_RIG_HARNESS_CUDA13_IMAGE).”; such a rig on a machine takes THERMITE_RIG_HARNESS_CUDA_IMAGE instead, and moves onto this image at its first update after it is set.
THERMITE_RUNPOD_TEST_IMAGEimage referencenot setnoThe image a RunPod test pod runs when the test names none. It must be an image RunPod can pull. A release’s compose.yaml sets it to the release’s published rig image, pinned by digest
THERMITE_RUNPOD_RIG_IMAGEimage referencenot setnoThe one-container rig image (CUDA) a rig launched on RunPod runs when the launch names none. It must be an image RunPod can pull. Not set, and none given: the launch is refused. A release’s compose.yaml sets it to the release’s published rig image, pinned by digest

Without THERMITE_RIG_HARNESS_IMAGE and THERMITE_RIG_SUPERVISOR_IMAGE, Add a rig says “Control has no rig images configured (THERMITE_RIG_HARNESS_IMAGE, THERMITE_RIG_SUPERVISOR_IMAGE), so it can’t set rigs up yet.” Without THERMITE_CONTROL_PUBLIC_URL it says “Control’s address for rigs is not set (THERMITE_CONTROL_PUBLIC_URL), so a rig would not know where to report.”

A rig keeps the images it was set up with. When control restarts with other image names in these settings, each rig it set up on a cluster offers the new images on its page: “Control now deploys other images:”, the two names and Update to these images. The MCP tool update_rig_images does the same. When the last change to the rig’s pods failed, the page offers control’s images again with Try the update again. A rig that is still being set up is not offered them. A rig with GPUs is compared with THERMITE_RIG_HARNESS_CUDA_IMAGE, any other with THERMITE_RIG_HARNESS_IMAGE, and both with THERMITE_RIG_SUPERVISOR_IMAGE. Control compares the names, not the images’ contents. A rig control set up on a machine or a cluster whose Thermite version is behind control’s, or which control refuses for an older version, also offers Update to control’s version on its page, which moves it onto these images (A rig’s page). Joined rigs are not offered an update (goal 035).

The addresses that cluster rigs’ harnesses may reach beside DNS and the internet, such as a model server on a Tailscale address, are no setting of the environment. The owner keeps them on Settings › Addresses rigs may reach, or with PUT /v1/reachable-addresses and MCP’s set_reachable_addresses; control keeps them in its store and writes them into each cluster rig’s network rules (Reach a model server on a private or Tailscale address).

A lifecycle driver lets control restart a rig’s containers: the button Restart the rig’s containers on the rig’s page, and the last step of a full reset. Without a driver, the rig’s page says No deployment driver: restarts are not available., and a full reset still ends: the rig’s containers restart themselves after the wipe. See Stop, restart, remove or reset a rig.

VariableTypeDefaultSecretMeaning
THERMITE_LIFECYCLEcompose or kubernetesnot set: no drivernoWhich driver control uses. Any other value counts as not set
THERMITE_ENGINE_SOCKETpath/run/engine.socknocompose: the container engine’s API socket (Docker, or Podman’s Docker-compatible API) inside control’s container. Meant for local development
THERMITE_COMPOSE_PROJECTstringthermitenocompose: the compose project the rigs’ containers belong to
THERMITE_COMPOSE_SERVICESJSON{}nocompose: each rig’s service names, as {"<rig>": {"harness": "<service>", "supervisor": "<service>"}}
THERMITE_K8S_APIURLhttps://<KUBERNETES_SERVICE_HOST>:<KUBERNETES_SERVICE_PORT>, else https://kubernetes.default.svcnokubernetes: the cluster’s API server
THERMITE_K8S_TOKEN_FILEpath/var/run/secrets/kubernetes.io/serviceaccount/tokenpath to a secretkubernetes: control’s service account token. Read again at each restart, so a rotated token is used; an empty file is refused (secret file for THERMITE_K8S_TOKEN_FILE is empty), and nothing is sent
THERMITE_K8S_CA_FILEpath/var/run/secrets/kubernetes.io/serviceaccount/ca.crtnokubernetes: the API server’s certificate authority
THERMITE_K8S_NAMESPACEtemplatethermite-{rig}nokubernetes: each rig’s namespace. {rig} is replaced with the rig’s name. A template that names {unit}, the placeholder’s name before v0.1.0, stops control at start. Empty counts as not set
THERMITE_K8S_SELECTOR_HARNESSlabel selectorapp.kubernetes.io/component=harnessnokubernetes: how control finds a rig’s harness pods
THERMITE_K8S_SELECTOR_SUPERVISORlabel selectorapp.kubernetes.io/component=supervisornokubernetes: how control finds a rig’s supervisor pods
KUBERNETES_SERVICE_HOST, KUBERNETES_SERVICE_PORTaddress, portset by Kubernetes in every pod; port 443noRead for the default of THERMITE_K8S_API

The kubernetes driver restarts a component by deleting its pods, which the rig’s Deployment then makes again. Its service account lists and deletes pods in each rig’s namespace. It is for rigs deployed on Kubernetes by other means. Rigs that control sets up on a cluster don’t use it: control restarts them with the cluster’s kubeconfig (Restart them on the rig’s page), and names the namespaces it creates from the cluster’s Namespace for each rig, thermite-{rig} by default, the same as the driver’s default. If your rigs’ namespaces have other names, set THERMITE_K8S_NAMESPACE to match them.

Rigs’ reports, live lines, screens and figures reach control over a message bus, a NATS server with JetStream, and control’s commands and each rig’s config reach the rigs over it as soon as control has them: the one way a rig and control talk, but for the registration of a rig’s keys, its large files and the kits it fetches. Control needs it: it keeps every rig’s events there, and writes what it derives from them from there (Control’s events on the message bus). The compose stack runs the bus beside control. Control says who may use the bus: it writes the server’s users file and has the server reload it. Every connection to the bus is over TLS: control makes its own certificate authority, signs the server’s certificate with it, and hands the authority’s certificate to every rig it sets up. See Run the message bus, Reports over the message bus, Commands over the message bus, Live lines over the message bus and Who may use the message bus.

VariableTypeDefaultSecretMeaning
THERMITE_NATS_URLnats:// addressnot setnoRequired: the NATS server control keeps every rig’s events on, reads rigs’ reports from and sends commands on, as control reaches it: nats://nats:4222 in the compose stack, which fixes it. Control connects over TLS, and trusts the server only through its own certificate authority (below). Control makes the EVENTS stream there, copies every event it takes to it, and writes what it derives from the events from it, in its order. Control makes the REPORTS stream there, an inbox that keeps each report until control has taken or refused it, and reads it as each report arrives, with its checks: the only way a rig reports. It also makes the COMMANDS stream, and publishes each command it issues to the rig’s subject there, the only way a command reaches a rig, and publishes its pending commands there again as it starts; a command the bus does not take is held, published again every 10 seconds, and logged as command held: the bus did not take it or command held: too many wait their turn for the bus. It makes the LIVE stream too, and folds the rigs’ live lines from it into its live view, with its checks; a message it refuses is logged as live lines from the bus refused, and passed over. It answers each rig’s asks on the rig’s own subjects: its figures, the screens watched, its daily report and a command’s newest form. It makes the CONFIG stream, and every 5 seconds writes each rig’s model route, advisors’ routes, MCP servers and Git accesses there, each sealed to the rig’s seal key, when a value changed; a value it can’t make is logged once as a rig's config not written: control can't make it, and one the bus does not take as a rig's config not written to the bus; trying again. Every 5 seconds, too, it makes the two consumers of each rig with a user on the bus, of its commands and of its config, and every minute it looks at every rig’s again; one it can’t make is logged once as a rig's consumers on the bus not made; trying again. A server it can’t reach is tried again every 5 seconds; its log says so once, as following failed; trying again or making the stream failed; trying again, until it works. Control signs in with its own key, which it makes at its first start with the setting and keeps sealed in its store. Not set stops control at start with control needs its message bus: set THERMITE_NATS_URL to its NATS server, such as nats://nats:4222. Control keeps every rig's events in the bus's EVENTS stream and derives its records from them there, and its rigs reach it only on the bus. Anything but a nats:// address stops control at start with THERMITE_NATS_URL takes a nats:// address, such as nats://nats:4222, not "<value>"
THERMITE_NATS_CONFIG_DIRpathnot setnoRequired: the folder control writes the bus’s server’s files to, which the server’s settings include, /nats-config in the compose stack. users.conf (0644) names control’s own user, which may do everything on the bus; a user for each rig whose supervisor registered its key, which may publish only its own reports and the live lines of its own runs and its own, take only its own commands, and ask its own runner processes; a user for each runner process whose supervisor registered its key, which may only take its core’s asks on its own subject and answer each; and control’s system user, which only asks the server to reload and for its figures (its monitoring’s VARZ, JSZ, CONNZ and LEAFZ, for control’s disk floor and Metrics). Each is a NATS user’s public key, with no seed. server-cert.pem (0644) and server-key.pem (0640, for the server to read through control’s group) are the server’s TLS certificate and its key: control signs the certificate with its own authority, for the host of THERMITE_NATS_URL and of the rigs’ address (THERMITE_NATS_PUBLIC_URL), valid for 397 days, and makes a new one at start or at its next look when the names change, the authority changed, or it ends within 30 days; its log says the bus's server certificate made, with why. Control writes the users at start, when a rig’s key is new or changed, when a rig is retired or brought back, and when control’s run registry gives a rig a run (it looks every 5 seconds); each time a file changed, it asks the server to reload, and its log says the bus's server reloaded its users. A reload that fails is tried again at the next look, with the bus's server did not reload its users; trying again in the log once, until one works; a file it can’t write, with the bus's files not written; trying again. Not set stops control at start with control needs THERMITE_NATS_CONFIG_DIR: the folder control writes the bus's users and TLS certificate to, which the server's configuration includes
THERMITE_NATS_PUBLIC_URLnats:// addressthe host of THERMITE_CONTROL_PUBLIC_URL, port 4222noThe bus as the rigs control sets up reach it, on machines, on clusters and where the owner joins them: for example nats://control.example.com:4222. Control gives it to each of those rigs’ supervisors with its authority’s certificate, and names its host in the server’s certificate. Without it and without THERMITE_CONTROL_PUBLIC_URL, control sets up no rig on a machine or a cluster, makes no join command and updates no such rig: Control has no address for rigs on its message bus (THERMITE_NATS_PUBLIC_URL, or the host of THERMITE_CONTROL_PUBLIC_URL with port 4222), so a rig could not reach it: a rig works only on the bus. A rig on RunPod never uses it: control’s server dials the pod’s leaf node. Anything but a nats:// address stops control at start, as for THERMITE_NATS_URL
THERMITE_NATS_CA_EXPORTpathnot setnoA file control also writes its authority’s certificate to at each start (0644), for rigs beside control that read it from there: /keys/bus-ca.pem in the compose stack, on the volume the supervisors mount

Control keeps its own certificate authority for the bus in its state folder, beside its signing key: bus-ca.pem, its certificate, and bus-ca.key (0600), its key. Control makes them at its first start with the bus, valid for 10 years, and never makes another by itself. A state folder with one of the two, or with two that don’t make one authority, stops control at start with the bus's certificate authority … delete both bus-ca.pem and bus-ca.key from control's state folder for a new one, then move every rig on the bus onto its images again, so that it gets the new certificate.

The harness container runs a broker, which runs as root and starts the other processes as separate users, and the controller, which is the harness service itself. Both read the variables below.

VariableTypeDefaultSecretMeaning
THERMITE_RIG_IDstringrequirednoThe rig’s name, as control knows it
THERMITE_TARGETcpu or cuda-gpucpunoThe target driver. Anything else stops the harness with no target driver <value>; this build has cpu and cuda-gpu
THERMITE_TARGET_CLASSstringgeneric-cpu on cpu, cuda-gpu on cuda-gpunoA name for the kind of device. The dashboard shows it with the rig’s hardware, and the New campaign page and the smoke check copy it into the contracts they write. Nothing compares it
THERMITE_CONTROL_PUBKEY_FILEpathrequirednoControl’s command-signing public key, to verify signed commands. The harness waits up to 120 seconds for the file to appear, then stops with timed out waiting for <path>. In the one-container rig image in pull mode, the broker writes it from enrollment before it starts the harness
THERMITE_LISTENhost:port0.0.0.0:8700noWhere the harness serves its API, for the rig’s supervisor, a proposer’s thermite submit and the agents’ tools. Rigs that control sets up expect port 8700
THERMITE_ROLErunner or not setnot setnorunner: the harness serves its target resources to its rig’s core, one run at a time on each: a build, a measurement with its check, a baseline’s folder, and a lane’s command on its change. It keeps its own builds, kits, model files and kept baselines, and no run of its own: no scheduler, planner, judge’s queue or agents. Not set: the harness is the rig’s core, as always
THERMITE_RUNNERS<name>=<pool>[+<pool>…], separated by commasnot setnoOn a rig’s core: its runner processes when it starts, the rig’s runners setting until the owner sets one (A rig’s settings), each with the pool of each runner it serves, in its order (at most 8): judge, the judge’s alone; shared, the judge’s and every lane’s, first come, first served; lanes, every lane’s and never the judge’s; or one lane’s, such as lane-2. A runner takes one run at a time: the judge holds it for a whole job, a lane for one dev run. The judge has an executor on each runner of the judge’s or shared, which builds and measures there; a lane with a runner of its own, a lanes’ one or a shared one runs its dev runs there, its own first, then the lanes’, then a shared one, with its change carried and applied to its parent in a workspace the runner keeps for the trial, and the core’s supervisor carries the asks on the bus. The core checks each runner process every 15 seconds, waiting 20 seconds for its answer: it takes runs once it answers with at least as many runners as it is given pools, and with the core’s kind of target when the judge measures on the core too, else with its other runners’ kind, and a runner process that fails two checks in a row is away until it answers again. A run waits while no runner of its pool is up and free. Anything else stops the harness with THERMITE_RUNNERS: "<part>" is not <name>=<pool>[+<pool>…], each judge, shared, lanes or lane-<n>, at most 8, or THERMITE_RUNNERS: at most 16 runner processes, each named once. Not set: none, and the core runs on its own runner alone until the setting gives it some
THERMITE_LOCAL_JUDGE0 or not setnot setno0 when the judge measures only on the runners, none of it on the core’s own machine. The rig then measures on its runners’ kind of target, which a campaign’s kit must measure on: a core on a CPU machine judges on runners with GPUs. Until a runner of the judge’s or the shared pool answers, the judge’s jobs wait in its queue. The core then keeps no copy of a run’s model files: its supervisor downloads none, and its runners fetch them (Model files on a rig)

The one-container rig image sets THERMITE_ONE_CONTAINER itself, with the places it uses. The broker then also reads the supervisor’s THERMITE_SUPERVISOR_HOME and THERMITE_INBOX_DIR, to prepare them, and the isolation selftest probes them. In pull mode, which the image turns on, the broker also reads THERMITE_TUNNEL_ENROLLED_DIR and THERMITE_TUNNEL_CONTROL_KEY_SHA256, and starts the harness once the pod is enrolled (How it starts).

VariableTypeDefaultSecretMeaning
THERMITE_ONE_CONTAINER1offno1: the rig’s supervisor runs in this container. The broker prepares its places and its token, and starts it as its own user. A broker that is not root then stops with fatal: the one-container image must run as root, and one without THERMITE_SUPERVISOR_TOKEN_FILE with fatal: the one-container image needs THERMITE_SUPERVISOR_TOKEN_FILE. With THERMITE_TUNNEL_PORT set too, it starts the harness only once root has checked control’s key from enrollment against the launch’s SHA-256 and copied it to THERMITE_CONTROL_PUBKEY_FILE

Where a host empties the container’s disk when it stops, as RunPod does, the broker keeps the rig’s state on that disk and a sealed snapshot of it on the host’s volume. The one-container rig image sets THERMITE_STATE_SNAPSHOT_DIR, and control gives each pod it launches on RunPod its THERMITE_STATE_SNAPSHOT_KEY. Compose and Kubernetes rigs keep their state on volumes and take no snapshot.

VariableTypeDefaultSecretMeaning
THERMITE_STATE_SNAPSHOT_DIRpathnot set: no snapshotnoThe folder, on the host’s volume, where root keeps a snapshot of the harness’s state and outbox (in the one-container rig image also the inbox, the supervisor’s state and root’s copy of its token). Root makes it with mode 0700 and never gives anything in it another owner. Every live folder must be outside it, or the broker stops with fatal: the state snapshot can't be set up. At a start on an empty disk the broker restores the newest snapshot that verifies. A broker that is not root takes and restores none
THERMITE_STATE_SNAPSHOT_KEY32 bytes in base64url (43 characters)not set: no snapshotsecretA launch value: the key the snapshot is sealed with. Control makes a new one for each pod it launches on RunPod and puts it in the pod’s environment, with the other launch values; control keeps no copy, and RunPod keeps it in the pod’s settings while the pod is stopped. The broker reads it at start and takes it out of its own environment before it starts anything: no part, no role and no program they start has it. Without it, or with a value that is not 32 bytes in base64url, the broker logs no snapshot key: no snapshot is taken or restored with why, and the rig’s state does not outlive a stop
THERMITE_STATE_SNAPSHOT_MINUTESminutes, above 05noHow often the broker takes a snapshot. It also takes one after each export, after enrollment and at a stop. Fractions work; 0 or less stops the broker with fatal: a snapshot setting is not valid
THERMITE_STATE_SNAPSHOT_STOP_SECONDSseconds, above 08noHow long a stop waits for its snapshot before the broker stops the two parts. Keep it, and the seconds the parts need to stop, within the time the host gives a stop. A snapshot cut short leaves the last complete one
VariableTypeDefaultSecretMeaning
THERMITE_GPU_INDEXGPU index or list (0, 0,1)0noThe judge’s GPU, or several. Each judge GPU times runs on its own. At most 8
THERMITE_DEV_GPU_INDEXGPU index or listnot setnoGPUs for the agents’ development runs, never one of the judge’s. At most 8. Not set: development runs share the judge’s GPU and wait for it. Needs THERMITE_TARGET=cuda-gpu, or the harness stops with THERMITE_DEV_GPU_INDEX needs THERMITE_TARGET=cuda-gpu
THERMITE_GPUSGPU list (0,1,2,3)not setnoThe rig’s GPU set, in place of the two lists above. The first GPUs are the judge’s and the rest the agents’. One GPU is shared by both. At most 16: up to 8 for the judge and 8 for the agents. With it, THERMITE_GPU_INDEX is ignored. It is itself ignored when THERMITE_DEV_GPU_INDEX is set
THERMITE_JUDGE_GPUSinteger, 1 or morehalf of THERMITE_GPUS, rounded upnoWith THERMITE_GPUS: how many are the judge’s at first. The rig’s own setting (GPUs for the judge on Edit rig, or the campaign deployed on the rig) comes first. A value that does not fit (below 1, the whole set, or more than 8 on either side) is ignored
THERMITE_RUN_CPUSauto, off or a CPU list (0-7, 0,2,4)auto on cuda-gpu, otherwise offnoThe CPUs that timed runs are pinned to. auto: each judge GPU’s local CPUs. A list is shared out between the judge GPUs, with no CPU in two. A bad list stops the harness with not a CPU list: <value>

A bad GPU list stops the harness with one of these messages:

  • <VARIABLE> is a GPU index or a list of them, such as 0 or 0,1: not "<value>"
  • <VARIABLE> names a GPU twice: "<value>"
  • <VARIABLE> names <n> GPUs; a rig takes at most 8 of each kind, for THERMITE_GPU_INDEX and THERMITE_DEV_GPU_INDEX
  • THERMITE_GPUS names <n> GPUs; a rig takes at most 16

When the agents have GPUs of their own, the broker does not set up a layout where a GPU is in both lists (a judge card and a development card are both index <n>), or one that leaves out a GPU the container can see (more cards than the layout covers: <devices>). The harness then starts, reports the error with its hardware, and neither times runs nor allows development runs. Give a rig several GPUs shows how the settings fit together.

VariableTypeDefaultSecretMeaning
THERMITE_CALIBRATION_BLOCKSinteger, 0 or more6noBlocks in each A/A calibration: the judge times a running hill-climb run’s champion against itself, to measure the rig’s noise. Below 2: no calibration

These four give the rig’s settings their first values. Edit rig changes the rig’s settings. Once they have been changed, by Edit rig or by a campaign deployed on the rig, the harness keeps them in its state, and these variables no longer apply. None of them ends a campaign: a trial’s length and turns end one trial. See Limits and pacing.

VariableTypeDefaultSecretMeaning
THERMITE_PROMOTIONauto or owner_approvalautonoThe promotion policy for runs started without their own. auto: a confirmed win becomes the champion on its own, after the auditor’s clear when the campaign calls for an audit and the rig has an auditor; a run’s ask_owner makes some wait. owner_approval: every promotion waits for the owner. Anything else stops the harness with THERMITE_PROMOTION must be auto or owner_approval, not <value>
THERMITE_MAX_TRIALSinteger, 0 to 161noHow many trials run at once on this rig, one agent each. Edit rig calls it Workers at a time. 0 starts no trials: the rig only judges, or runs its advisors. A rig has users for lanes 1 to 16 only: anything else stops the harness with THERMITE_MAX_TRIALS takes a whole number from 0 to 16 (0: no trials), not "<value>"
THERMITE_TRIAL_MINUTESwhole minutes, 1 to 1,440not set: nonenoHow long one trial lasts when the campaign’s contract sets no trial_minutes. Unset or empty: no limit; a trial lasts until its worker submits, or stops and answers a nudge without any work. Edit rig calls it One trial lasts (minutes). Anything else stops the harness with THERMITE_TRIAL_MINUTES takes a whole number of minutes from 1 to 1440, not "<value>"
THERMITE_MAX_TURNSinteger, 1 or morenot set: no limitnoThe most model turns one trial may take. Edit rig calls it Turns per trial
VariableTypeDefaultSecretMeaning
THERMITE_LLM_USD_PER_MTOK_INUS dollars, 0 or morenot setnoThe model’s price per million input tokens. A contract’s llm_usd budget is counted only when both prices are set
THERMITE_LLM_USD_PER_MTOK_OUTUS dollars, 0 or morenot setnoThe model’s price per million output tokens
THERMITE_RESEARCH_MAX_MBmebibytes (MiB), above 0not set: no limitnoThe most one run may archive in its corpus: a research run’s, or the sources a hill-climb or goal run’s workers fetch. When the corpus is full, more sources are refused with the corpus is full (<n> MiB archived); the run goes on

A model chosen for the rig on control (Settings › Providers, or Edit rig) comes before these and needs none of them: the supervisor hands it, with its key, to the harness. These variables are for a rig that keeps its own model. Agents use it only when the base URL, the model and the key are all set; a server that takes no key still needs a key file with any text in it. Without a model, the harness logs agents wait for a model route. See Choose a model.

VariableTypeDefaultSecretMeaning
THERMITE_MODEL_BASE_URLURLnot setnoThe provider’s endpoint. For openai, an OpenAI-compatible endpoint with tool calling: the address before /chat/completions, usually ending in /v1. For anthropic, the address without /v1
THERMITE_MODELstringnot setnoThe model’s name at that endpoint
THERMITE_MODEL_API_KEY_FILEpathnot setpath to a secretThe endpoint’s key. For THERMITE_MODEL_API=claude, the subscription’s token
THERMITE_MODEL_CONTEXT_WINDOWtokens: an integer, 0 or more0: unknownnoThe model’s context per request. When it is known, the agents’ conversations are compacted near it, and, when a reply limit is known too (THERMITE_MODEL_MAX_TOKENS, or the model’s maximum output from control’s route), each reply is limited to the room left
THERMITE_MODEL_COMPACT_ATpercent: an integer, 50 to 95not set: 80noThe share of the context window at which an agent’s conversation is compacted and goes on. Anything else stops the harness with THERMITE_MODEL_COMPACT_AT takes a whole number of percent from 50 to 95, not "<value>"
THERMITE_MODEL_MAX_TOKENStokens: an integer, 0 or more0: nonenoThe most tokens in one reply, thinking included. Unset or 0: none is sent, and the provider’s own limit applies; Anthropic’s API, which needs one, gets 32,000. A route from control carries the model’s maximum output from the provider’s model list instead
THERMITE_MODEL_REASONING_EFFORTnone, off, low, medium or highnot set: nothing is sentnoSent as reasoning_effort. off is sent as none. Anything else stops the harness with THERMITE_MODEL_REASONING_EFFORT must be none, low, medium or high, not <value>
THERMITE_MODEL_APIopenai, anthropic, opencode, claude or chatgptopenainoThe provider’s API. openai: OpenAI-compatible chat completions. anthropic: Anthropic’s Messages API. opencode: OpenCode’s own models, which only the OpenCode worker harness reaches. claude: a Claude subscription. chatgpt: a ChatGPT sign-in. Its access token lasts an hour, and control renews it only for a model set on control. Anything else: THERMITE_MODEL_API must be openai, anthropic, opencode, claude or chatgpt, not <value>
THERMITE_AGENT_HARNESSpi, opencode, claude-code or codexpinoThe worker harness, the program the agents work in: Pi (built into the harness), OpenCode, Claude Code or the Codex CLI. Anything else: THERMITE_AGENT_HARNESS must be pi, opencode, claude-code or codex, not <value>
THERMITE_OPENCODE_BINname or pathopencode on the PATHnoThe OpenCode program. The supervisor reads it too, for advisors in OpenCode
THERMITE_CLAUDE_BINname or pathclaude on the PATHnoThe Claude Code program. The supervisor reads it too
THERMITE_CODEX_BINname or pathcodex on the PATHnoThe Codex CLI program. The supervisor reads it too, for advisors in Codex

This one applies to every model the agents use, a route from control or the rig’s own:

VariableTypeDefaultSecretMeaning
THERMITE_MODEL_STALL_SECONDSseconds, 0 or more600noHow long a model call’s stream may send no data before it is broken off as the provider’s passing fault: the agent waits and goes on in the same conversation (Limits and pacing). It detects a silent network connection; it is not a cap on research. A call that keeps sending data is never cut, however long it lasts; keep-alive comment lines and pings are not data. Raise it for a model that thinks for longer than this without sending anything. 0 turns it off. It covers every call in Pi (the workers and research workers, the planner, the summaries of compactions and the model checks) and the model proxy’s calls for OpenCode and Codex; not Claude Code on a subscription, which reaches Anthropic directly. The supervisor reads it too, for its advisors’ calls, in Pi and through its own model proxy. Anything else stops the service with THERMITE_MODEL_STALL_SECONDS takes a number of seconds from 0 (0: off), not "<value>"

A Claude subscription and Claude Code go only together. Any other pairing stops the harness with a Claude subscription (THERMITE_MODEL_API=claude) runs only with THERMITE_AGENT_HARNESS=claude-code, and that harness only with it.

The Codex CLI speaks only OpenAI’s Responses API, so codex goes only with THERMITE_MODEL_API openai (or not set) or chatgpt. With openai, the base URL’s server must answer /responses, as OpenAI’s own API does. Any other pairing stops the harness with the Codex CLI speaks only OpenAI's Responses API: THERMITE_AGENT_HARNESS=codex needs THERMITE_MODEL_API chatgpt or openai.

VariableTypeDefaultSecretMeaning
THERMITE_SUPERVISOR_TOKEN_FILEpathrequiredpath to a secretThe token the rig’s supervisor uses on the harness API. The supervisor’s THERMITE_HARNESS_TOKEN_FILE holds the same token
THERMITE_PROPOSER_TOKEN_FILEpathnot setpath to a secretA proposer’s token, for a person or script that submits changes with thermite submit
VariableTypeDefaultSecretMeaning
THERMITE_STATE_DIRpath/var/lib/thermitedirectory with secretsThe ledger, the rig’s key, kits, builds, models, the rig’s settings and the model set on control
THERMITE_SCRATCH_DIRpath/scratchnoWorkspaces, builds in progress and runs. The broker empties it at every start
THERMITE_INBOX_DIRpath/controller/inboxnoWhere imports arrive from the supervisor. The harness only reads it; the local compose file mounts it read-only. The default is in /controller, a folder of the harness image that only root and the controller’s group may enter, so no role reaches the inbox
THERMITE_OUTBOX_DIRpath/outboxnoWhere exports wait for the supervisor
THERMITE_OUTBOX_GIDgroup id: an integer, 0 or more10001noThe supervisor’s group, which may read the outbox
THERMITE_DISK_FLOOR_GIBGiB, 0 or more5noThe free space the rig keeps on each place the harness writes to: its state, its scratch and its outbox. Below it on any of them, the rig holds new work: no trial, plan, judge’s job or export starts, the work under way ends as it would (so the judge’s job in flight still writes its verdict), and the ledger records the event rig_disk. It goes back to work by itself once each place has 1 GiB more than the floor. Its report carries the free space on each place, and control shows it on the rig’s page and under Needs you (The disk card); an export command is refused in words. 5 GiB: a full export copies the whole ledger into the outbox, and a judge’s build writes the candidate’s build tree, each up to a few GiB on a large run, and the ledger needs room to commit the verdict in flight. The broker reads it too: a state snapshot waits while its folder has less, and the last complete one stays. The supervisor reads it for model downloads (Places and advisors). Fractions work. 0: no floor. It is a mechanical limit, never a limit on research
THERMITE_DRAIN_MINUTESwhole minutes, 1 to 10,08060noHow long a drain waits for the work under way when its command gives no deadline of its own, such as an update’s drain_minutes. At its deadline the drain stops waiting by itself: the rig records it and asks the owner under Needs you, and goes on starting nothing new until the owner chooses to go ahead now or to end the drain (At its deadline). Nothing stops by itself at the deadline
THERMITE_BROKER_DIRpath/run/thermitenoThe directory of the broker’s socket, broker.sock
THERMITE_TUNNEL_DIRpathnot setnoOnly where the harness shares its container with a supervisor in pull mode: the supervisor’s tunnel directory. The isolation self-test then checks that no role can read the keys in it
THERMITE_CHECKS_DIRpath/opt/thermite/checks in the image; outside it, the checkoutnoWhere the smoke check finds its kits and projects
THERMITE_ALLOW_UNSEPARATED1offno1: when the harness container does not run as root, the broker starts the harness anyway, with no separate users for the roles; when the supervisor’s container does not run as root, its entry starts the supervisor anyway, and the advisors’ programs run as the supervisor’s own user. Meant for development only. Without it, a broker that is not root stops with fatal: not root, so roles cannot be separated, and the supervisor’s entry with fatal: not root, so advisor programs cannot run as users of their own
THERMITE_FATAL_HOLD_SECONDSseconds, 0 or more0: no holdnoAfter a fatal error at start (fatal: … in the broker’s log), how long the broker waits before it exits, at most 600. The one-container rig image sets 60: a host that starts a stopped container again at once, such as RunPod, then keeps the error in the pod’s log
THERMITE_IMAGE_IDstringthe image’s: set in the published harness images, such as 0.1.0+1a2b3c4d5e6f; empty in an image built from a checkoutnoReported as the image in the rig’s hardware report. Empty counts as not set. See Published images
THERMITE_TOOLCHAIN_IDstringnot setnoGoes into every build’s key beside the image’s installed packages and compilers, for a tool the image has that its package list doesn’t show, such as a compiler unpacked into /opt: change it, and the rig builds afresh. Empty counts as not set. See Build cache
VariableTypeDefaultSecretMeaning
THERMITE_RIG_IDstringrequirednoThe rig’s name. The same as its harness’s
HARNESS_URLURLrequirednoThe rig’s harness, for example http://harness:8700
THERMITE_ROLE and THERMITE_RUNNERrunner and a runner process’s name, or not setnot setnorunner: the supervisor of a runner process of a rig. It registers its own key on the message bus with control, with the rig’s token, and answers its core’s asks of its harness on thermite.rig.<rig>.runner.<runner>.run, each on its own reply subject in the core’s inbox, _INBOX.rig.<rig>.runner.<runner>.*, the one place its bus user may publish; it reports nothing and takes no command, which the core’s supervisor does. THERMITE_RUNNER is the process’s name: 2 to 40 lowercase letters, digits and dashes. Not set: the rig’s own supervisor, as always
THERMITE_HARNESS_TOKEN_FILEpathrequiredpath to a secretThe supervisor’s token for the harness: the same token as the harness’s THERMITE_SUPERVISOR_TOKEN_FILE
CONTROL_URLURLrequired, but in pull modenoControl’s address: the supervisor registers the rig’s keys on the message bus there at each start, sends its exports and champions’ patches there when the rig has no results repository, and fetches the kits control keeps. Everything else goes on the bus (THERMITE_NATS_URL). Without it, or without THERMITE_CONTROL_TOKEN_FILE, the supervisor stops at start with CONTROL_URL or THERMITE_CONTROL_TOKEN_FILE is not set: a rig registers its keys on the message bus with control, at its address, with its token
THERMITE_CONTROL_TOKEN_FILEpathrequired, but in pull modepath to a secretThe rig’s token for control, which control made when it enrolled the rig: it authenticates the supervisor’s calls to CONTROL_URL. Set to a file that is missing or empty, it stops the supervisor at start with the rig has no token for control yet (…): enroll it with control, which writes its token there (the local compose stack's enroll step does at each up)
THERMITE_NATS_URLnats:// addressrequired, but in pull modenoThe message bus, the one way the rig and control talk but for the registration of its keys, its large files and the kits it fetches: nats://nats:4222 in the compose stack, which fixes it; control sets it on the rigs it sets up from THERMITE_NATS_PUBLIC_URL. Not set, the supervisor stops at start with THERMITE_NATS_URL is not set: a rig reaches control only on its message bus. Set it to the bus's address control gives the rigs it sets up, or set the rig up again from control; anything but a nats:// address stops it at start too, as for control. The supervisor connects over TLS, trusting the server through THERMITE_NATS_CA or THERMITE_NATS_CA_FILE, or else through the system’s certificate authorities. It publishes each report to the bus, and moves on once the bus has it; when control’s answer to its figures shows that control is still behind what it sent a round before, it sends again from where control is. It takes its rig’s commands from the bus as control issues them, and its rig’s model route, advisors’ routes, MCP servers and Git accesses as control writes them, and applies each at once; its figures count the updates it took and refused. It publishes the live lines to the bus every THERMITE_LIVE_INTERVAL_MS, each run’s source to its own subject; its figures count the lines it published and dropped there. It asks control on the bus for what needs an answer at once: its figures, the screens watched, its daily report and a command’s newest form (A rig’s asks). A page of events too large for one message (8 MiB with its headers) goes as two halves instead; a single event too large for one stops the reports there, and the supervisor’s log says so. It signs in with the rig’s own key: made at its first start, its seed kept in bus-key.seed in its state folder (0600), and its public part registered with control over HTTPS at each start, before anything goes on the bus, and every 30 seconds until control has it; control gives it a user on the bus. That file, if it holds no user key’s seed, stops the supervisor at start with <path> does not hold a NATS user key's seed: delete it, and the supervisor makes a new key at its next start (control records the change). Beside it, it makes the seal key control seals the rig’s config to, in bus-seal.pem (0600), and registers its public part on the same call; that file, if it holds no X25519 private key, stops the supervisor at start with <path> does not hold an X25519 private key: delete it, and the supervisor makes a new seal key at its next start (control records the change). In pull mode it is not read: the supervisor reaches its pod’s own server (The leaf node)
THERMITE_NATS_CAPEM certificatenot setnoWith THERMITE_NATS_URL: the certificate of the authority the supervisor trusts the bus’s server through, control’s own, in the setting itself. Control sets it on the rigs it sets up on a cluster, in the supervisor’s deployment, so that every update of the rig’s images carries the authority control has then. Anything but an authority’s certificate stops the supervisor at start with THERMITE_NATS_CA takes the PEM certificate of the authority that signed the bus's server's certificate; both it and THERMITE_NATS_CA_FILE set, with set THERMITE_NATS_CA or THERMITE_NATS_CA_FILE, not both
THERMITE_NATS_CA_FILEpathnot setnoWith THERMITE_NATS_URL: a file that holds the same certificate, read at each connection to the bus, so that it may appear after the supervisor starts: /keys/bus-ca.pem in the compose stack, where control writes it (THERMITE_NATS_CA_EXPORT), and on the rigs control sets up on machines, where it is written with the rig’s files. A file missing or that holds no certificate fails each connection, and the bus’s log line says why: following failed; trying again

In pull mode, the supervisor never connects to control: control connects to it, and reaches it on the message bus through the pod’s leaf node, below. A rig on RunPod runs this way. Control makes the launch values below for each rig, as public material and one one-time code, and puts them in the pod’s environment when the owner launches a rig on RunPod, with the key the pod’s state snapshot is sealed with (THERMITE_STATE_SNAPSHOT_KEY), which only the broker reads. A missing or bad value stops the supervisor at start: pull mode needs <NAME>, THERMITE_TUNNEL_PORT takes a whole number from 1 to 65535, not "<value>", THERMITE_TUNNEL_CONTROL_BOX is not a public key, THERMITE_TUNNEL_CONTROL_KEY_SHA256 must be 64 hexadecimal characters or THERMITE_TUNNEL_ENROLL_UNTIL must be an ISO time.

VariableTypeDefaultSecretMeaning
THERMITE_TUNNEL_PORTport: an integer, 1 to 65535not set: no pull modenoTurns pull mode on. The supervisor serves this port, on every interface, for control alone. CONTROL_URL and THERMITE_CONTROL_TOKEN_FILE are not read: the supervisor’s calls to control over HTTPS (the registration of its keys, its results and the kits it fetches) go to a port of its own on 127.0.0.1 and wait there for control. Control’s launch values set it to 8790
THERMITE_TUNNEL_PODstringRUNPOD_POD_ID, which RunPod sets in every podnoThe pod’s ID. Every request from control names it, and a request for another pod is refused. The one-container rig image’s entry point sets it from RUNPOD_POD_ID, which it then removes
THERMITE_TUNNEL_PREFIX64 hexadecimal charactersrequired in pull modenoA launch value: the random path the port answers under. A request to any other path is refused before its body is read
THERMITE_TUNNEL_CONTROL_KEY_SHA256SHA-256required in pull modehashA launch value: the SHA-256 of control’s command-signing public key. Control’s first request brings the key; the pod takes it only if its SHA-256 is this one
THERMITE_TUNNEL_CONTROL_BOXbase64required in pull modenoA launch value: the rig’s public key at control (X25519, on one line). What the pod sends control is sealed to it
THERMITE_TUNNEL_ENROLL_CODE64 hexadecimal charactersrequired in pull modeone-time codeA launch value: the enrollment code. It never crosses the network: each side proves that it holds it. The supervisor takes it out of its own environment at start, so nothing it starts inherits it. The pod’s first enrollment spends it
THERMITE_TUNNEL_ENROLL_UNTILISO timenot set: the code does not expirenoA launch value, only when the launch set an expiry: after this time the pod refuses to enroll
THERMITE_TUNNEL_DIRpathtunnel in THERMITE_SUPERVISOR_HOMEdirectory with secretsThe pod’s own keys (made at its first start, file keys.json, mode 0600), its enrollment, and the request nonces it has seen. Mode 0700. A full reset keeps it, so control’s trust in the pod stays. Give the harness the same value: its isolation self-test then checks that no role can read the keys
THERMITE_TUNNEL_ENROLLED_DIRpathenrolled in THERMITE_SUPERVISOR_HOMEnoWhere enrollment leaves public files: control’s key (control.pub), and the rig’s settings from control (rig.json, and rig.env as NAME=value lines). control.pub is written last. In the one-container rig image, root checks them and gives the harness its own copy of the key. A full reset keeps it

In pull mode the supervisor also takes RUNPOD_API_KEY, which RunPod puts in a pod’s environment, out of its own environment. Thermite never uses it on the pod: control holds its own RunPod key.

With these three launch values, a rig in pull mode is on the message bus through its pod’s own NATS server, which control’s server dials as a leaf node (A rig on RunPod). Control makes them at each launch, from its bus’s authority, and launches no pod without them. Each is a PEM text in base64, on one line. With none, as in a pod launched before the leaf node, the supervisor stops at start: this pod was launched with no leaf node on the message bus, and a rig reaches control only on the bus: terminate the rig and launch a new one. One or two stop the supervisor at start: the leaf node needs THERMITE_LEAF_CERT, THERMITE_LEAF_KEY, THERMITE_LEAF_CONTROL_CA; the launch gave only …; one that is not a PEM text, <NAME> is not a PEM text in base64. With them, THERMITE_NATS_URL, THERMITE_NATS_CA and THERMITE_NATS_CA_FILE are not read: the supervisor reaches the bus at nats://127.0.0.1:4222, its pod’s server, and trusts the pod’s certificate.

VariableTypeDefaultSecretMeaning
THERMITE_LEAF_CERTbase64 of PEMnot set: no leaf nodenoThe pod’s certificate, for its leaf name (<rig>.leaf.thermite.invalid, which never resolves) and 127.0.0.1, followed by the certificate of the authority that signed it: an authority control made for this pod alone, whose key it did not keep. Control’s server trusts that authority alone on its connection to the pod
THERMITE_LEAF_KEYbase64 of PEMrequired with the leaf nodeyesThe pod’s TLS private key. The supervisor writes it to THERMITE_TUNNEL_DIR/bus/leaf-key.pem (0600) and takes it out of its own environment at start, so nothing it starts inherits it. Control does not keep it: RunPod’s settings for the pod hold it, as they hold the enrollment code
THERMITE_LEAF_CONTROL_CAbase64 of PEMrequired with the leaf nodenoControl’s authority for the bus. The pod’s server takes, on its leaf port, only a client certificate this authority signed for control’s server
VariableTypeDefaultSecretMeaning
THERMITE_POLL_SECONDSseconds, above 060noHow often it publishes the harness’s events and the knowledge base’s files on the message bus, asks control on the bus with its figures, and pushes new exports to the results repository, or, without one, sends them to control. The pause between the advisors’ rounds is the same interval, but at least 30 seconds. On a rig with teachers, a message from the owner to the teachers of a running run, or a planner’s round that left a running run’s queue below its target, ends the pause early: during it, the supervisor looks for either every 5 seconds
THERMITE_LIVE_INTERVAL_MSmilliseconds, 0 or more3000noHow often it relays the live view: it reads its harness’s new live lines and publishes them to the message bus. 0 turns the live view off
THERMITE_MODEL_ROUTE_POLL_SECONDSseconds, 0 or more30noHow often it hands its harness again what the harness lost of the rig’s config, such as its model route or its MCP servers after a restart. The config itself, the rig’s model route, advisors’ routes, MCP servers and Git accesses, comes from the message bus as control writes it, and each change is applied at once: the harness gets its workers’ and planner’s share, and the supervisor keeps the advisors’ in memory. A look that fails logs model route error or MCP servers error, once until one works again. 0 turns the looks off

See Set up the results repository.

VariableTypeDefaultSecretMeaning
THERMITE_RESULTS_REMOTEGit URLnot set: exports go to control, or, without control, stay in the supervisor’s volumenoThe repository the supervisor pushes exports to. Without it, the supervisor sends them to control instead: see Exports
THERMITE_RESULTS_KEY_FILEpathnot setpath to a secretAn SSH key for the results repository, also used to fetch private sources over SSH
THERMITE_RESULTS_KNOWN_HOSTSpathnot setnoA known-hosts file for the results repository’s host. With it, Git accepts only the host keys in the file. It takes effect together with THERMITE_RESULTS_KEY_FILE
VariableTypeDefaultSecretMeaning
THERMITE_SUPERVISOR_HOMEpath/var/lib/thermite-supervisornoThe supervisor’s state: where it is in the event stream, exports done, champions waiting to reach control, exports waiting to be sent to control (export-uploads.json), advisors’ records, the local results repository (results.git) and fetched sources (sources/)
THERMITE_INBOX_DIRpath/supervisor/inboxnoThe harness’s inbox. The supervisor writes imports there, model files it downloads among them. The default is in /supervisor, a folder of the supervisor image that only root and the supervisor’s group may enter, so no advisor’s program reaches the inbox; the supervisor’s entry warns when the inbox is elsewhere
THERMITE_HF_TOKEN_FILEpathnot setpath to a secretA Hugging Face token, for gated model files. The supervisor reads it when it starts and sends it to Hugging Face only. The harness never gets it
THERMITE_OUTBOX_DIRpath/outboxnoThe harness’s outbox. The supervisor reads exports from it
THERMITE_DISK_FLOOR_GIBGiB, 0 or more5noThe free space a model download leaves where it lands, as the harness keeps on its places (Places, exports and the broker). A download that would go below it is refused, and the command’s outcome says why: not enough free space for model <name>: it needs 2.0 GB more, and 6.4 GB is free where it goes (the inbox's models), and the rig keeps 5 GiB free (THERMITE_DISK_FLOOR_GIB). The supervisor looks again after each MiB it writes, so a download whose server gives no size stops at the floor too, and deletes what it had downloaded. Fractions work. 0: no floor
THERMITE_SUPERVISOR_HEALTH_LISTENhost:port127.0.0.1:8701noWhere the supervisor answers its health route, GET /v1/health: whether it is well, and 503 when its report loop or its live loop is late; with its token for the harness, each loop with the seconds since it came around (Health). On the container’s loopback by default, so only a check inside the container reaches it, as compose’s, the machines’ units’, Kubernetes’ and the one-container rig image’s broker do. A bad value stops it at start with bad listen address <value>
THERMITE_ADVISORS_FILEpath to a JSON filenot setpath to a secretThe advisors file, the advisors’ models when control gives them none: the teachers, their merged by model, the auditor and the review panel. A role given a model on Edit rig uses that model instead. Not set, and no role given a model: no advisors run
THERMITE_CLAUDE_BINname or pathclaude on the PATHnoThe Claude Code program, for advisors that run in Claude Code
THERMITE_STE_CHECKERpath to a scriptnot setnoA Simplified Technical English checker for the final writer’s research papers, which the deployment provides: Thermite ships none. The supervisor runs it with Node as node <path> --json --mode descriptive -, the text on its input, and reads its JSON report; it runs it itself on each paper it posts, and the harness refuses a paper it found an error in. The script must exit with 0, or 1 when it found an error, within 120 s; a checker that fails holds the paper back, and the writer tries again 30 minutes later. The guide reference/ste-guide.md beside the script’s folder, when there is one, goes in the writer’s prompt. The compose file and the rigs control sets up do not set it. Not set: papers are not checked for STE, and the run’s page and journal say so (The research paper)

The thermite command takes control’s or the harness’s address and a token file as options (--control or --harness, and --token-file), never from the environment. See Command line.

Two commands read variables. thermite doctor reads THERMITE_CONTROL_PORT, the port the compose file publishes control on, as its default for --port. thermite selftest isolation, which runs inside the harness container, reads the harness’s own settings, with the same defaults:

  • the secret files it checks no role can read: THERMITE_SUPERVISOR_TOKEN_FILE, THERMITE_PROPOSER_TOKEN_FILE and THERMITE_MODEL_API_KEY_FILE, and, when THERMITE_TUNNEL_DIR is set, the pull mode keys in it (keys.json);
  • the places: THERMITE_BROKER_DIR, THERMITE_STATE_DIR, THERMITE_SCRATCH_DIR and THERMITE_OUTBOX_DIR;
  • the GPU settings: THERMITE_GPU_INDEX, THERMITE_DEV_GPU_INDEX, THERMITE_GPUS and THERMITE_JUDGE_GPUS;
  • in the one-container rig image, THERMITE_ONE_CONTAINER, and the supervisor’s places it probes: THERMITE_SUPERVISOR_HOME and THERMITE_INBOX_DIR; in pull mode also THERMITE_CONTROL_PUBKEY_FILE and THERMITE_TUNNEL_CONTROL_KEY_SHA256, to check the key the harness trusts;
  • THERMITE_STATE_SNAPSHOT_DIR, the state’s snapshot folder, which must hold only sealed files, and which no role may list or write in where the volume keeps file modes.

A rig set up from Add a rig, on a machine or a cluster, or with a join command, gets these settings from control. Everything else takes its default.

ContainerSettings
HarnessTHERMITE_RIG_ID; THERMITE_TARGET (cpu, or cuda-gpu with GPUs); for one GPU, THERMITE_GPU_INDEX=0; for several, THERMITE_GPUS and THERMITE_JUDGE_GPUS; THERMITE_CONTROL_PUBKEY_FILE; THERMITE_SUPERVISOR_TOKEN_FILE
SupervisorTHERMITE_RIG_ID; HARNESS_URL (port 8700); CONTROL_URL (from THERMITE_CONTROL_PUBLIC_URL); THERMITE_HARNESS_TOKEN_FILE; THERMITE_CONTROL_TOKEN_FILE; THERMITE_NATS_URL (from THERMITE_NATS_PUBLIC_URL, or the host of THERMITE_CONTROL_PUBLIC_URL with port 4222: without either, control sets no rig up) and control’s authority’s certificate: THERMITE_NATS_CA_FILE on a machine, THERMITE_NATS_CA on a cluster

An image update of a rig on a cluster writes its two deployments again from control’s settings at that moment, so the supervisor’s CONTROL_URL is taken from THERMITE_CONTROL_PUBLIC_URL again, and its bus’s address and authority from control’s as they are then; an update of a rig on a machine writes its units and the authority’s file again the same way. Without THERMITE_CONTROL_PUBLIC_URL, the update is refused: Control's address for rigs is not set (THERMITE_CONTROL_PUBLIC_URL): the rig would no longer know where to report. When only this address changed, the rig’s page offers Give it control’s new address, and the MCP tool update_rig_images does the same: the rig’s pods restart with the new address, on the same images. The page compares the address control recorded when it set the rig up or last updated it; a rig set up before control kept that record shows the button only after its next update.

The model settings have only the names in The rig’s own model. Names they had before are not read.

SettingWhat happens when it is still set
THERMITE_CONTROL_RIG_TOKENS_FILEControl no longer reads it: rigs enroll through control, which keeps only their tokens’ SHA-256. Control starts, and logs at start, at level warn: THERMITE_CONTROL_RIG_TOKENS_FILE is set, and control no longer reads it: rigs enroll through control (Rigs › Add a rig, a join command or thermite rig add), and the local compose stack's enroll step enrolls local-1 and local-2 at each up. A rig whose token was only in that file is refused until it is enrolled. Take the setting out.

compose.yaml runs control and one rig on one machine: the repository’s builds the images from the source code, and a release’s runs the published images. It passes some settings from your shell or a .env file next to it, and fixes the rest. A setting it does not list needs an edit to the compose file. Each service also has a health check, and its log is bounded (Where the logs are): control’s, the harness’s and the supervisor’s check runs node -e with a program that asks the part’s /v1/health inside its container, every 30 seconds, and counts three failures running as unhealthy, after 5 minutes to start (Health).

ServicePassed from your shell or .env, with its defaultFixed in compose.yaml
controlTHERMITE_CONTROL_STALE_SECONDS (180); THERMITE_CONTROL_OFFLINE_SECONDS (900); THERMITE_CONTROL_PUBLIC_URL, THERMITE_CONTROL_ALLOW_PLAIN_HTTP, THERMITE_RIG_HARNESS_IMAGE, THERMITE_RIG_HARNESS_CUDA_IMAGE, THERMITE_RIG_SUPERVISOR_IMAGE, THERMITE_RUNPOD_RIG_IMAGE, THERMITE_RUNPOD_TEST_IMAGE, THERMITE_CONTROL_REQUIRE_KEY_ACCEPT, THERMITE_CONTROL_SESSION_DAYS, THERMITE_LIFECYCLE and THERMITE_NATS_PUBLIC_URL (all empty); THERMITE_DISK_FLOOR_GIB (empty: 5)THERMITE_CONTROL_DIR, THERMITE_CONTROL_LISTEN, THERMITE_CONTROL_ADMIN_TOKEN_FILE, THERMITE_CONTROL_OPERATOR_TOKEN_FILE, THERMITE_CONTROL_PUBKEY_EXPORT (/keys/control-signing.pub), THERMITE_COMPOSE_PROJECT, THERMITE_COMPOSE_SERVICES, THERMITE_NATS_URL (nats://nats:4222), THERMITE_NATS_CONFIG_DIR (/nats-config), THERMITE_NATS_CA_EXPORT (/keys/bus-ca.pem)
harnessTHERMITE_PROMOTION (auto); THERMITE_CALIBRATION_BLOCKS (6); THERMITE_MODEL_BASE_URL, THERMITE_MODEL and THERMITE_MODEL_REASONING_EFFORT (empty); THERMITE_MODEL_CONTEXT_WINDOW (0); THERMITE_MODEL_MAX_TOKENS (empty); THERMITE_MAX_TRIALS (1); THERMITE_TRIAL_MINUTES (empty); THERMITE_MAX_TURNS, THERMITE_RESEARCH_MAX_MB, THERMITE_LLM_USD_PER_MTOK_IN and THERMITE_LLM_USD_PER_MTOK_OUT (empty); THERMITE_DISK_FLOOR_GIB and THERMITE_DRAIN_MINUTES (empty: 5 and 60)THERMITE_RIG_ID (local-1), THERMITE_TARGET (cpu), THERMITE_CONTROL_PUBKEY_FILE, THERMITE_SUPERVISOR_TOKEN_FILE, THERMITE_PROPOSER_TOKEN_FILE, THERMITE_MODEL_API_KEY_FILE
supervisorTHERMITE_POLL_SECONDS (60); THERMITE_MODEL_ROUTE_POLL_SECONDS (30); THERMITE_LIVE_INTERVAL_MS (3000); THERMITE_RESULTS_REMOTE (file:///results/results.git, a repository on a shared volume); THERMITE_ADVISORS_FILE (empty); THERMITE_DISK_FLOOR_GIB (empty: 5)THERMITE_RIG_ID (local-1), HARNESS_URL, CONTROL_URL, THERMITE_HARNESS_TOKEN_FILE, THERMITE_CONTROL_TOKEN_FILE, THERMITE_NATS_URL (nats://nats:4222), THERMITE_NATS_CA_FILE (/keys/bus-ca.pem)

Each service’s build in the repository’s compose.yaml also takes THERMITE_COMMIT from your shell or .env (empty), as the build argument of the same name: for example THERMITE_COMMIT=$(git rev-parse HEAD) docker compose build.

The defaults match the code’s, except THERMITE_RESULTS_REMOTE, which the code leaves unset. A release’s compose.yaml passes the same settings with the same defaults, with one difference: THERMITE_RIG_HARNESS_IMAGE, THERMITE_RIG_HARNESS_CUDA_IMAGE, THERMITE_RIG_SUPERVISOR_IMAGE, THERMITE_RUNPOD_RIG_IMAGE and THERMITE_RUNPOD_TEST_IMAGE default to that release’s published images, pinned by digest (both RunPod settings to its rig image). It builds nothing, so it takes no THERMITE_COMMIT: the published images carry their commit already. The second rig of the two-rigs profile (harness-2 and supervisor-2, rig local-2) takes the same settings, except that its harness does not pass THERMITE_RESEARCH_MAX_MB or the two prices.

The compose file also has a nats service, the message bus: the NATS server from its official image, pinned by digest, with JetStream. It always runs beside control, and control and both supervisors always use it: their THERMITE_NATS_URL is fixed, and a THERMITE_NATS_URL in .env changes nothing.

Its settings are fixed in the compose file but two: the largest message, 8 MiB, which the reports’, the commands’ and the live lines’ contracts keep to; at most 1,024 connections, and 2 seconds for a connection’s TLS and 3 seconds to sign in, after which the server closes it; monitoring on the container’s own loopback, for its health check; JetStream’s store on its volume, at most THERMITE_NATS_STORE; a memory limit, THERMITE_NATS_MEMORY, of which Go is told 78% (GOMEMLIMIT), so that it frees what a read loaded before the limit is reached; TLS on its port, with the certificate and key control writes; and the users file control writes. Both are on the nats-config volume, and the server includes them. It starts once control has written them, and says waiting for control to write the bus's users and certificate until then. It runs as a user of its own in control’s group, 10002:10001, with no capability, so that it reads the certificate’s key, which only control’s user and group may read. Before it starts, a one-shot service, nats-init, gives the folder of control’s files to control’s user and the bus’s store to the bus’s user, then ends: it runs as root with only the capabilities CHOWN and DAC_READ_SEARCH, and no network. Every connection is over TLS and signs in with a key the server has from the users file: control’s, and each rig’s once its supervisor registered it. The harnesses are not on the control network, so they never reach it; control still checks each report’s signature, and the harness each command’s. Run the message bus says how to check it, what to open for rigs on other machines, and what to do for a rig off it.

It also has a backup service, in the backup profile, which up never starts: control’s image, with control’s state, the bus’s store at /bus-store and .dev/backups at /backups, on the control network, as root with only the capabilities CHOWN, DAC_OVERRIDE and FOWNER. It fixes THERMITE_CONTROL_DIR (/var/lib/thermite-control) and THERMITE_NATS_URL (nats://nats:4222), as control has them, for thermite backup and thermite restore (Back up and restore control).

On a machine with NVIDIA GPUs, thermite local init also writes compose.gpu.yaml, which changes the harness of local-1 only: THERMITE_TARGET cuda-gpu, THERMITE_GPUS and THERMITE_JUDGE_GPUS (or THERMITE_GPU_INDEX 0 for one GPU), the GPUs themselves, and the CUDA image: beside a release’s compose.yaml, the release’s CUDA harness, which THERMITE_RIG_HARNESS_CUDA_IMAGE in .env replaces; beside the repository’s, one it builds on the CUDA base. See local init.

These five are read by the compose files. Thermite’s services never read them; thermite doctor reads THERMITE_CONTROL_PORT to find control’s port:

VariableDefaultMeaning
THERMITE_CONTROL_PORT8800The port on 127.0.0.1 where control is published. Inside the stack control stays at control:8800
THERMITE_NATS_PUBLISH127.0.0.1:4222Where the message bus’s port is published on this machine: an address and a port. Rigs on other machines reach the bus here: 0.0.0.0:4222 publishes it on every address. Inside the stack the bus stays at nats:4222
THERMITE_NATS_MEMORY256mThe message bus’s memory limit, as compose writes one, such as 512m or 1g. The server tells Go 78% of it. It holds the index of each stream’s subjects and the blocks a read loads, not the messages, which are on disk. A restore needs more for its run: about 1 KiB a message over 128 MiB, which thermite restore prints
THERMITE_NATS_STOREnot setThe most the message bus keeps on its volume, such as 20G. Not set: 75% of the volume’s free space when the server starts. Keep it under what the disk has free: a server whose disk is full turns JetStream off
THERMITE_ENGINE_SOCKET_HOST/var/run/docker.sockcompose.lifecycle.yaml only: the container engine’s socket on the host, mounted into control as /run/engine.sock

The smoke and acceptance scripts in scripts/ read these. They are not settings of a deployment.

VariableDefaultMeaning
COMPOSEpodman composeThe compose command the scripts run: podman compose, podman-compose or docker compose
KEEPnot set1: leave the stack and its volumes up when the script ends
THERMITE_PROJECTnot setA compose project name, so a second stack can run beside the usual one, with its own THERMITE_CONTROL_PORT and THERMITE_NATS_PUBLISH
THERMITE_CONTROL_PORT8800Where the scripts reach control, as in the compose file
THERMITE_ENGINE_SOCKET_HOSTPodman’s socket, when Podman has oneThe steering acceptance: the engine socket for compose.lifecycle.yaml. With none, the restarts are not tested
MINUTES, PACE_SECONDS, SEEDS125, 120, two built-in pagesThe research long run (scripts/acceptance/research-longrun.mjs): its length in minutes, the wait at the start of each trial in seconds, and its seed pages as comma-separated URLs
THERMITE_FAKE_CLAUDEnot set1: lets the stand-in for Claude Code in the Claude Code acceptance’s test image run. Without it, or a marker file in that image, the stand-in refuses to run
THERMITE_FAKE_CODEXnot set1: lets the stand-in for the Codex CLI in the Codex acceptance’s test image run. Without it, or a marker file in that image, the stand-in refuses to run

The images take these build arguments. Harness image says what each image holds.

ArgumentImagesDefaultMeaning
NODE_IMAGEcontrol, harness, supervisorNode.js 22 on Debian bookworm (slim), pinned by digestThe Node.js image each image is built from
BASE_IMAGEharnessNODE_IMAGEThe harness’s base. For GPU rigs, a CUDA development image: CUDA 12.x for the -cuda harness, CUDA 13.x for the -cuda13 one
OPENCODE_VERSIONharness, supervisor2.1.4The OpenCode version installed: for the workers and the planner, and for advisors in OpenCode
CLAUDE_CODE_VERSIONharness, supervisorempty: Claude Code is not installedThe Claude Code version to download at build time, for agents or advisors on a Claude subscription
CODEX_VERSIONharness, supervisor0.162.1The Codex CLI version installed: for the workers and the planner, and for advisors in Codex. Empty: the image has no Codex CLI
KUBECTL_VERSIONcontrolv1.37.1The kubectl version installed, checked against a pinned checksum
THERMITE_IMAGE_IDharnessemptyThe image’s identity, kept as the environment variable of the same name (above). The release workflow sets it to the image’s tag and short commit, such as 0.1.0-cuda+1a2b3c4d5e6f
THERMITE_COMMITcontrol, harness, supervisoremptyThe source commit the image is built from: 7 to 64 hexadecimal characters, such as the output of git rev-parse HEAD. The image sets the environment variable of the same name, and the service reports it with Thermite’s version from package.json (Rig versions). Empty, or anything else: the service reports no commit
HARNESS_IMAGEone-container rignone: requiredThe harness image the one-container rig image is built on

Thermite also sets variables for its own child processes: the harness’s address and a trial’s token for the agents’ tools, where Thermite’s OpenCode plugin keeps a conversation before a compaction, the secret values the broker hands to the controller, the build cache of each lane, and the probe a RunPod test pod runs. They are not settings, and setting them yourself has no use.