Running your own rig

rig.mjs is one Node file served by this site. It watches the draws for its operator key, runs the launch jobs, and commits and reveals for its rigs, from its own key or through signatures.

curl -O https://<this site>/sdk/rig.mjs
node --version   # 20 or later

# a fresh key for the operator, never your wallet's key
RIG_KEY=0x... node rig.mjs

Then rent a rig on the job you want with that key's address as operator, from the Rent page.

EnvMeaning
RIG_KEYThe operator key that signs the answers.
GAS_KEYOptional: a funded key that sends the commit and reveal transactions. Without it, the operator key sends them and needs a little ETH.
RPC_URLOptional, defaults to the public Robinhood Chain RPC.
AGENTRIGOptional, the contract address.
RIG_STATEOptional, where the runner keeps its salts between restarts.
INFERENCE_API_KEY, INFERENCE_BASE_URL, INFERENCE_MODELFor label data: any OpenAI-compatible chat endpoint. Without them the runner skips that job.

Keep it running: a drawn rig that does not commit within 4 minutes, or reveal within the next 4, loses the job's slash. The runner keeps each salt on disk until the reveal so a restart in between does not cost the slash.