BaxBench: Backend Application Generation Benchmark
BaxBench evaluates LLMs on generating complete, correct, and secure backend applications. It comprises 392 tasks from 28 scenarios crossed with 14 frameworks across 6 languages. Models receive OpenAPI or plaintext specifications and generate multi-file code, which is executed in Docker containers. Correctness is measured via functional API tests (pass@k); security via expert-written end-to-end exploits targeting 13 CWEs (sec_pass@k). Primary metrics are pass@1 and sec_pass@1. Docker is required to run this eval!
Overview
⚠️ External evaluation. Code lives in an upstream repository. inspect_evals lists it for discoverability; review the upstream repo and pinned commit before running.
Source: Jeffrin-J/inspect-baxbench@d5fe3cd
BaxBench evaluates LLMs on generating complete, correct, and secure backend applications. It comprises 392 tasks from 28 scenarios crossed with 14 frameworks across 6 languages. Models receive OpenAPI or plaintext specifications and generate multi-file code, which is executed in Docker containers. Correctness is measured via functional API tests (pass@k); security via expert-written end-to-end exploits targeting 13 CWEs (sec_pass@k). Primary metrics are pass@1 and sec_pass@1. Docker is required to run this eval!
Usage
Installation
This is an externally-maintained evaluation. Clone the upstream repository at the pinned commit and install its dependencies:
git clone https://github.com/Jeffrin-J/inspect-baxbench
cd inspect-baxbench
git checkout d5fe3cd66fd5c5fd002e2b59ab072e9cc3261c32
uv syncRunning evaluations
CLI
uv run inspect eval src/inspect_baxbench/baxbench.py@baxbench --model openai/gpt-5-nanoPython
from inspect_ai import eval
from inspect_baxbench.baxbench import baxbench
eval(baxbench(), model="openai/gpt-5-nano")View logs
Log viewing (inspect view) and default-model setup are documented in the Inspect Evals README.
More information
For the dataset, scorer, task parameters, and validation, see the upstream repo: Jeffrin-J/inspect-baxbench.
Options
You can control a variety of options from the command line. For example:
uv run inspect eval src/inspect_baxbench/baxbench.py@baxbench --limit 10 --sample-shuffle
uv run inspect eval src/inspect_baxbench/baxbench.py@baxbench --max-connections 10
uv run inspect eval src/inspect_baxbench/baxbench.py@baxbench --temperature 0.5See uv run inspect eval --help for all available options.
More command-line options: Inspect docs ↗
Evaluation Report
Timestamp: November 2026
Commit: d5fe3cd
uv run inspect eval src/inspect_baxbench/baxbench.py@baxbench --model <model> -T epochs=1| Model | Provider | Correct | Correct Ci 95 Low | Correct Ci 95 High | Paper Correct | Secure | Secure Ci 95 Low | Secure Ci 95 High | Paper Secure |
|---|---|---|---|---|---|---|---|---|---|
| openrouter/deepseek/deepseek-chat | OpenRouter | 0.395 | 0.348 | 0.445 | 0.403 | 0.191 | 0.155 | 0.233 | 0.194 |
| openrouter/meta-llama/llama-3.3-70b-instruct | OpenRouter | 0.181 | 0.146 | 0.222 | 0.220 | 0.089 | 0.065 | 0.122 | 0.092 |
Static checks
Results of inspect-evals-lint at the registered commit. Rule names link to their documentation; findings link to the file at that commit. These checks describe structure and conventions, not whether the evaluation measures what it claims.
Loading lint results…