Inspect is an open-source LLM evaluation framework from UK AI Security Institute. It is released under the MIT license and is offered as: CLI, Library, Self-hosted.
Teams that want a free, general-purpose framework for writing and running their own model and agent evaluations, including security-focused ones
Security teams that evaluate coding agents such as Claude Code or Codex CLI inside a sandbox and want a full log of each step
Consider instead if
You want a ready-made command-line scanner with built-in attack probes instead of a framework you build evaluations in.
See garak.
You only need to compare how candidate backbone models resist attacks in agent settings, using a benchmark that already runs on Inspect.
See b3 benchmark.
What Inspect does
Inspect is the evaluation framework the UK AI Security Institute builds with Meridian Labs, and other security work runs on it: the b3 agent benchmark listed here installs as an Inspect evaluation. A task is a dataset, a solver and a scorer; inspect eval runs it and the log viewer shows every message and score. For security teams the agent features carry the most weight. Inspect can drive external agents such as Claude Code, Codex CLI and Gemini CLI, and it runs untrusted model code in Docker, Kubernetes, Modal, Proxmox or Vagrant sandboxes. It reaches more than 20 model providers. Compared with garak or promptfoo it is a framework first: you choose or write the security evaluations instead of pointing a scanner at an app endpoint. It is MIT licensed, with no fee.
This summary is our own wording of the sourced facts on this page.
Key facts
Each value links to the page that states it, with the date we checked it.
Our editorial model, not a standard. The primary layer follows the category, except for tools whose main documented job is detection and response; other layers rest on a capability the sources document.
How the model works.
AI security layers that Inspect covers, with the role, how each applies and what it rests on
Attack and evaluate models, apps and agents on purpose, before release and after every change, to find what the other layers miss.
Follows its category, AI red teaming & LLM evaluation
OWASP LLM Top 10 mapping
Our analysis
The risk list is OWASP's (Top 10 for LLM Applications, 2025).
The mapping is our analysis, and each row rests on a capability the sources document.
No OWASP LLM risk is mapped to this tool in our analysis.
Not mapped in our analysis: LLM01, LLM02, LLM05, LLM06, LLM07, LLM09.
These are risks we expect tools in this category to cover; the sources we checked do not document a matching capability.
Generates adversarial test suites for LLM agents and RAG apps, runs them and reports failures by threat type.
Best for: Python teams that want a free library to scan an LLM agent or RAG app for prompt injection and harmful output, and to write pass or fail checks for it
Runs evals and red team scans against LLM apps from a CLI or CI pipeline and writes a vulnerability report.
Best for: Developer teams that want one open-source CLI for both prompt evals and red teaming, run locally and in CI
80Coverage Score 80 out of 100
LLM01 Prompt Injection
LLM02 Sensitive Information Disclosure
LLM09 Misinformation
Reviewed
Inspect FAQ
Is Inspect open source?
Yes. Inspect is released under the MIT license, and the code is on GitHub at UKGovernmentBEIS/inspect_ai.
Who develops Inspect?
The Inspect site says it is developed by the UK AI Security Institute and Meridian Labs.
How do you install and run Inspect?
The site gives pip install inspect-ai. The tutorial runs a task file with the inspect eval command and opens a browser log viewer with inspect view. The reference section documents the Python API and every CLI command.
Can Inspect test a coding agent?
Yes. The site says it can run external agents such as Claude Code, Codex CLI and Gemini CLI, and it runs untrusted model code in sandboxes such as Docker, Kubernetes, Modal, Proxmox and Vagrant. You still write or pick the evaluation that defines what counts as a failure.
We have no commercial relationship with UK AI Security Institute.
Sources & last reviewed
Last reviewed . We compile from the vendors' own public
pages and repositories and we do not run the products. Source links open in a new tab. Found a mistake? Report a correction.
We may use analytics and, later, show ads. They stay off until you choose, wherever you are. Declining
never limits what you can read. See our privacy policy and
cookie policy.
Privacy settings
Choose what you allow. Your choice is stored on this device for 13 months. You can change it later from the
"Privacy choices" link in the footer.