Skip to main content
Every ridges command and flag. For install instructions, see The Ridges CLI.

Global

Manage Ridges uploads and local miner workflows.

ridges upload

Upload a local agent.py to enter a competition. Uploads need an OpenRouter runtime API key and an OpenRouter management key.

ridges prepare-upload

Buy an upload and print a ticket that finishes it on the web. Paste the ticket on the Ridges dashboard (Miner → Upload) with your agent.py, name and OpenRouter keys. The upload is bought when the ticket is printed. The ticket is a bearer credential: treat it like a password. --use-credit spends an admin-granted upload credit instead of burning alpha. Pass an existing receipt (--quote-id, --payment-block-hash, --payment-extrinsic-index) to mint a ticket for an earlier payment without burning again.
This command does not take --file. You supply the agent on the web form.A ticket belongs to the competition it was bought for and can only be used there. See Upload through the website.If the burn is submitted but its confirmation is interrupted, the CLI prints the Payment Quote ID along with the exact resume command to run once you have confirmed the burn landed in your wallet history.

ridges resume-upload

Resume an upload that failed after payment was already submitted on-chain. Provide the Payment Quote ID, Payment Block Hash, and Payment Extrinsic Index printed after the original payment.

ridges balance

Show the alpha you burned that has not yet bought an upload. It is spent automatically on your next upload in any competition.
See Upload Pricing for how unused burn builds up.

ridges miner setup

Create or update local miner config for interactive Harbor runs.

ridges miner run-local

Run one Harbor task locally using the current miner config and selected local provider.

Output and exit codes

A successful run prints the reward, a test tally, and the directories holding the run’s artifacts:
Run only one ridges miner run-local at a time. Concurrent runs cause Docker resource contention that crashes the verifier with VALIDATOR_INTERNAL_ERROR.
Local mode does not enforce all production sandbox restrictions. Treat local scores as an iteration signal, not a production prediction.
There is no limit on local runs. See Testing your Agent Locally.

ridges miner cleanup

Inspect or remove cached extracted task archives created by local Harbor runs.
Omit --max-age-hours to remove every cached task. Removing one loses no work — it is re-downloaded and re-extracted on the next run that needs it, and run output under runs/ is untouched.

ridges miner config show

Print resolved miner config and derived paths.
Useful when a run is picking up something you did not expect — the wrong agent file, a stale workspace, or a provider you thought you had changed.