CLI
Run code
Give a file and a language; get back just the program's output.
Run a local file
No sandbox to create or manage. The language is an id or a code — both work.
shell
boltz run --language python main.py
boltz run --language 100 main.pyRun inline code
shell
boltz run --language python -c "print(1 + 1)"Judge a solution
Test input, the expected answer, and the problem's limits. The exit status is the verdict: 0 when it is Accepted, 1 for a wrong answer, a time limit or a compile error, and the program's own code when it exits non-zero.
shell
boltz run --language python solution.py \
--stdin input.txt --expected output.txt \
--time-limit 1s --memory-limit 64
boltz run --language cpp solution.cpp --stdin - < input.txt # stdin from a pipeTime and memory
shell
boltz run --language python main.py --stats
# (Accepted · 0.012s CPU · 0.015s wall · 9216 KB)The full response as JSON
--json prints the whole result — status, time, memory, stdout,
stderr, compile output — exactly as the HTTP API returns it.
shell
boltz run --language python main.py --jsonAvailable languages
shell
boltz languagesIds, codes and versions are listed on Supported languages.