AI red teaming & LLM evaluation

Inspect: open-source LLM evaluation framework

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.

  • Last reviewed

Best for

  • 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.

Attestations or disclosure
Private email reporting; acknowledgment within 3 business days, fix targeted within 30 days Source, checked October 21, 2026: github.com (opens in a new tab)

Capabilities

As documented by the vendor or project. The tag is our label from a controlled vocabulary.

Integrations

Where Inspect fits in our AI security layers

Our analysis

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
LayerRoleHow it appliesBased on
L4 Testing Testing and red teaming Primary 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.

Alternatives and related tools

More in AI red teaming & LLM evaluation, ranked within the category by Coverage Score.

garak

NVIDIA

Open sourceApache-2.0
  • CLI
  • Library
  • Self-hosted

Probes language models and LLM apps for prompt injection, jailbreaks, data leakage and more.

Best for: Teams that want a free command-line scanner they can point at any model or LLM endpoint before release

Coverage Score 82 out of 100
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM09 Misinformation

Reviewed

Giskard

Giskard AI

Open sourceApache-2.0 Freemium
  • Library
  • Self-hosted
  • SaaS
  • On-prem

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

Coverage Score 81 out of 100
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM09 Misinformation

Reviewed

Promptfoo

OpenAI (Promptfoo)

Open sourceMIT Freemium
  • CLI
  • Library
  • Self-hosted
  • SaaS
  • On-prem

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

Coverage 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.

Key facts you can cite

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.