Skip to main content
Use Evolve’s Python client to run Codex on one DeepSWE task and save the results. The managed evaluation client makes HTTP requests directly; it does not need Node.js.

Install and authenticate

You need Python 3.10 or newer and a Full access key from the dashboard’s API keys page. Replace your-api-key with that key. See installation for account setup.

Run one task

Save this as eval.py. It selects only anko-default-function-arguments from deepswe@1.1 and runs one trial with Codex and GPT-6 Luna.
eval.py
Run it in the shell where you set the API key:
The program prints the job ID, final status, model cost, trial result, and saved archive path under ./results/. Use attributes for jobs and trials, and dictionary keys for stats. A completed job can contain failed trials. Read the trial’s status and reward; a missing value is not zero.
The example sets a $1 model-spend cap for this trial attempt and disables configured infrastructure retries. A model call already in progress can finish above the cap. Provider capacity waits can still occur. Closing the program does not cancel the job.

Show progress

Replace the program’s watch() call with one of these snippets inside the same async with block, after creating job.
Or consume the events directly:
Choose one consumption style for each watch handle.

Read a trial

Place this inside the same async with block, after the job finishes. It reads the trial’s normalized trace and its stored-file listing.
Awaiting jobs.trials() reads one page; async for reads every page. The stored-file listing is also one page. Follow its next_cursor when present; see trial files.

Next step

Configure a job

Models, task filters, attempts, limits, and analysis.

Understand returned objects

Dataclasses, dictionaries, nullable values, and status fields.
Last modified on November 9, 2026