Skip to content

Tokens and roles

Control knows people and programs by tokens: long random strings sent as Authorization: Bearer <token>. Each token has one role. Control keeps only a token’s SHA-256 hash wherever it can, so the machine control runs on holds nothing that signs in.

RoleSettingDashboardREST APIMCP
OwnerTHERMITE_CONTROL_ADMIN_TOKEN_SHA256 or THERMITE_CONTROL_ADMIN_TOKEN_FILE (required)Signs in. The only token that canEvery routeEvery tool. Commands up to approving and declining promotions and closing a run (close_run)
OperatorTHERMITE_CONTROL_OPERATOR_TOKEN_SHA256 or _FILE (optional)NoNoReads; steers; messages a run’s agents and removes messages kept in force; ends a run’s wait for its provider’s limit (end_wait); changes a run’s experiment queue and removes its rules; searches the knowledge base (kb_collections, kb_search) and proposes that a campaign’s agents read another campaign’s collection, which waits for the owner (kb_grant), but never grants or removes one; lists the MCP servers in Settings (mcp_servers), but never adds, changes or deletes one; adds cluster rigs, sets a cluster’s slots, stops, starts and restarts cluster rigs, and moves them onto control’s images; gives each of a rig’s agents a model, and reads them (set_rig_model, rig_models); changes a rig’s other settings as Edit rig does, its parts, workers at a time and limits, but never its promotion rule or its GPU split, and reads them (set_rig_settings, rig_settings); starts runs of campaigns control keeps (start_run), as Start a run does, but never changes a rig’s GPU split or starts a stopped RunPod pod there; copies a campaign control keeps under a new name (copy_campaign); starts a new campaign from a run’s champion in git (start_campaign); gives control a kit repository written elsewhere as a bundle, and lists the kits control keeps (kit_add, kits): a kit is an input, not a secret; archives and unarchives campaigns, and sorts them into the dashboard navigation’s folders (archive_campaign, unarchive_campaign, create_campaign_folder, rename_campaign_folder, delete_campaign_folder, move_campaign); starts and ends RunPod tests, lists the rigs launched on RunPod and reads a RunPod rig’s pod log (runpod_rig_logs), but never launches, stops, starts, restarts, terminates or resets one; reads control’s log, providers and how control set a rig up, with each step’s details
AgentTHERMITE_CONTROL_AGENT_TOKEN_SHA256 or _FILE (optional)NoNoReads and steers. Reads a held-out check only as its kinds of failure, as the run’s agents do, and no held-out case’s name, values, threshold or time limit (get_run, recent_events). No start_run or copy_campaign, no kits (kits, kit_add), no archive or folders, no changes to a run’s experiment queue, no knowledge base tools, no control log, no providers, no MCP servers, no rig setup steps, no RunPod, no tools that set rigs up. Refused during a full reset
ReaderTHERMITE_CONTROL_READ_TOKEN_SHA256 or _FILE (optional)No/metrics, GET /v1/usage, GET /v1/model-prices, GET /v1/rigs/<rig>/live, GET /v1/kits and GET /v1/kits/<name> only, and the details of GET /v1/healthRead tools (not the knowledge base’s), control’s log, providers, the kits control keeps (kits), the MCP servers in Settings (mcp_servers), the rigs launched on RunPod (runpod_rigs, without their logs), each agent’s model on a rig, a rig’s settings, how control set a rig up (without each step’s details), the navigation’s folders and the archived campaigns (campaign_folders) and RunPod tests (read only). Not a RunPod rig’s pod log

“Reads” means the MCP read tools, which every token has: the rigs, a run and its attempts, a run’s experiment queue, rules, the planner’s hand-outs and the owner’s messages to its agents, with who read them (run_queue), events, the leaderboard, daily reports and commands. How control set a rig up (rig_setup), each agent’s model on a rig (rig_models), a rig’s settings (rig_settings) and the navigation’s folders with the archived campaigns (campaign_folders) are for the owner, the operator and the reader, not the agent. The knowledge base’s collections and search (kb_collections, kb_search) are for the owner and the operator only: the agent’s and the reader’s tokens see no collection.

“Steers” means these signed commands: assign a campaign, pause and resume a run, redirect it, reset its workers, export now and run a rig check, plus sending a champion to another rig. The operator may also message the agents (message_agent), remove a message kept in force (unkeep_message), change a run’s experiment queue (queue_add, queue_move, queue_edit, queue_drop, queue_accept) and remove a rule (drop_directive). Only the owner approves or declines a promotion, and closes a run for good (close_run).

A rig’s settings change over MCP with set_rig_settings, through Edit rig’s checks: the owner’s token changes all of them, the operator’s all but the promotion rule, which decides whether a confirmed change waits for the owner, and the GPU split, which restarts the rig’s harness. Some things no token can do over MCP: accepting a rig’s key, accepting a review or a “not possible” ending, and wiping a rig. The owner does them on the dashboard, and a wipe only as part of a full reset. Only the owner’s token adds, changes, signs in to or deletes an MCP server.

  • _SHA256 holds the token’s SHA-256 as 64 hexadecimal characters. _FILE names a file that holds the token itself, which is meant for local development.
  • Set one of the two for a role, not both. Control stops at start if both are set.
  • The owner’s credential is required. Without it control does not start.
  • The four tokens must all be different. Control stops at start if two are the same.
  • A _FILE setting whose file is missing or empty counts as not set.
TokenWhere it is keptWhat it may do
Rig tokenIts SHA-256 in control’s store: control makes it when it enrolls the rig, with Add a rig, a join command, thermite rig add or, for the local compose stack’s local-1 and local-2, the stack’s enroll step at each upThe rig-facing routes for its own rig only: register its keys on the message bus, send its champions’ patches and exports, and fetch its kits. Everything else, its reports, commands, config and past research among it, goes on the message bus, where the rig signs in with its own key. A retired rig is refused whatever token it holds
Join tokenIts SHA-256 in control’s storeFetch one rig’s join script or manifest, once, within one hour

The harness and the supervisor have tokens of their own, which never reach control:

TokenSettingUsed by
Supervisor tokenTHERMITE_SUPERVISOR_TOKEN_FILE on the harness, THERMITE_HARNESS_TOKEN_FILE on the supervisor (required)The supervisor, to talk to its harness
Proposer tokenTHERMITE_PROPOSER_TOKEN_FILE on the harness (optional)A person or script submitting changes with thermite submit
Trial tokenMade by the harness for each trialOne worker’s tools during one trial, such as submitting its change, proposing an idea for the run’s experiment queue, or calling the MCP servers the run’s kit gives the workers, through the harness’s gateway. It stops working when the trial ends
Planner’s gateway tokenMade by the harness for one planner call in OpenCode, Claude Code or CodexThat call’s use of the MCP servers the run’s kit gives the planner, through the harness’s gateway. It lasts 15 minutes
An advisor’s local tokenMade by the supervisor for one call of an advisor in Claude CodeThat call’s use of the knowledge base’s tools and the MCP servers the supervisor serves on 127.0.0.1. It stops working when the call ends
TokenMakeChangeEnd
Owner, operator, agent, readerthermite token new --out FILE on your own computer: it writes the token to the file and prints its SHA-256 for control’s setting. Locally, the init container of the compose stack (thermite local init), or npm run dev:init in a checkout, writes an owner and an operator token to .dev/secrets/Make a new token, change the setting, restart control. A new owner token signs every browser out of the dashboardRemove the setting and restart control
Rig token (enrolled)thermite rig add, POST /v1/rigs, Add a rig on the dashboard, or a used join commandthermite rig token, or POST /v1/rigs/<rig>/token. The old token stops working at onceRetire the rig: thermite rig retire, POST /v1/rigs/<rig>/retire, the MCP tool retire_rig, or the rig’s page. Bringing a rig back does not bring its token back
Rig token of the local compose stack (local-1, local-2)The stack’s enroll step at up, into .dev/secrets/control-rig-token (control-rig-token-2)Empty the file, then docker compose up -d (or podman compose up -d): the enroll step gets a new token from control and writes it there, and the old one stops workingRetire the rig
Join tokenAdd a rig › run it yourself, or Make a new join command on the rig’s page. It is shown onceMake a new join command (the earlier one stops working)Revoke it while it is unused, or retire the rig

Make and change tokens gives the steps.

Control’s audit log names who did each thing:

ActorWho
owner:uiThe owner, on the dashboard
owner:apiThe owner, over the REST API or the command line
owner:mcpThe owner’s token, over MCP
owner:operatorThe operator’s token, over MCP
agent:mcpThe agent’s token, over MCP
reader:mcpThe reader’s token, over MCP
reader:apiThe reader’s token, over the REST API: only for what it refused or failed at
rig:<rig>A rig, with its own token
controlControl itself