Use the run API at /api/v1/runs. Your runner retrieves one public case at a time, calls the local model, and returns the answer. Versalist stores the run and its scores.
Before you start
- A challenge that allows local execution, with public test cases and a skill bundle you can run.
- A runner that can call your model and send HTTP requests. The example uses Ollama,
curl, andjq. - A Versalist API key with
submit:solutions, or bothread:runsandexecute:runs.
Set VERSALIST_API_KEY in your shell. Check whether your deployment has enabled the run API.
RUNS_URL=https://versalist.com/api/v1/runs
curl -fsS -H "x-api-key: $VERSALIST_API_KEY" "$RUNS_URL"If the response contains "status": "ready", you can register a run. A disabled protocol returns 404.
Register a run
Set CHALLENGE to the challenge slug or ID. Set SKILL_BUNDLE_ID to the skill bundle UUID. Set OLLAMA_MODEL to an installed tag from ollama ls. Supply your runner’s version in runner_version.
jq -n --arg challenge "$CHALLENGE" --arg bundle "$SKILL_BUNDLE_ID" --arg model "$OLLAMA_MODEL" \
'{challenge: $challenge, skill_bundle_id: $bundle, provider: "ollama", model: $model, runner_version: "my-runner/1.0"}' |
curl -fsS -H "x-api-key: $VERSALIST_API_KEY" -H 'Content-Type: application/json' --data-binary @- "$RUNS_URL"The response includes the run id, the public case count, and the quota reserved for judging.
Process the cases in your runner
- Request a case with
POST /api/v1/runs/{id}/claims. - If the response contains
"complete": true, stop requesting cases. PollGET /api/v1/runs/{id}for the final status. - Otherwise, call your model with the returned
prompt.system,prompt.user, andprompt.parameters. - While the model runs, renew the claim with
POST /api/v1/runs/{id}/claims/{claim_id}/heartbeatat the returnedlimits.heartbeat_interval_seconds. - Prepare the result body with
statusset tocompleted. Includeoutput,started_at, andcompleted_at. Use timestamps with a time zone. - Send the result with
PUT /api/v1/runs/{id}/claims/{claim_id}/result. Include a new UUID in theIdempotency-Keyheader. Reuse that key and body for retries. - Request the next case. If judging is still in progress, poll the run status before trying again.
Model identity
Send the provider and model tag as separate fields. For example, use ollama and gemma3:4b. Versalist records the model identity your runner reports as self_reported.
Run limits
- Your runner receives public cases only. Its answers leave your machine for hosted judging.
- Versalist keeps the run private. The trusted leaderboard excludes self-reported runs.
- Registration reserves judge quota for the public cases before local inference starts.
Troubleshooting
Ollama is unavailable
Start Ollama on your machine with ollama serve.
The model is unavailable
Check the installed model tag with ollama ls. Use that tag in the run request and your model call.
The challenge disallows local execution
Ask the challenge owner to allow local execution under the Open model policy.
Use your own verifier locally
Use versalist run, versalist evaluate, and versalist compare to record and check two revisions on your own machine. The CLI quick start lists the commands. These records stay in your repository.