# Inspect AI

> Source: https://aiwiki.ai/wiki/inspect_ai
> Updated: 2026-11-18
> Fact-checked: 2026-11-18
> Categories: AI Safety, Developer Tools, Model Evaluation, Open Source AI
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Inspect AI." aiwiki.ai, 18 Nov 2026. https://aiwiki.ai/wiki/inspect_ai
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Inspect AI** (usually called simply **Inspect**) is an open-source [Python](https://aiwiki.ai/wiki/python) framework for evaluating [large language models](https://aiwiki.ai/wiki/large_language_model) and [AI agents](https://aiwiki.ai/wiki/ai_agents), created by the [UK AI Security Institute](https://aiwiki.ai/wiki/uk_aisi) (AISI) and now developed jointly by the institute and Meridian Labs, a US nonprofit.[1][2] The institute released it to the public on 10 May 2024, when it was still called the AI Safety Institute, and the UK government described the release as the first time a safety testing platform built by a state-backed body had been made available for wider use.[1] Inspect is published under the [MIT license](https://aiwiki.ai/wiki/mit_license) and installed from PyPI as `inspect-ai`.[3][4]

An Inspect evaluation is a task that combines a dataset of samples, a solver that produces the model's answer, and a scorer that grades it.[2] Around that core the framework adds tool calling, agent scaffolds, sandboxed execution environments for untrusted code, human approval of tool calls, a log viewer and an extension system.[2][10][11] Its documentation lists more than 200 ready-to-run benchmark implementations.[2] Government evaluators and research groups including [METR](https://aiwiki.ai/wiki/metr) and [Apollo Research](https://aiwiki.ai/wiki/apollo_research) have adopted it as their main evaluation tooling.[5][6][20][21]

## History

### Development and public release

The `inspect-ai` package first appeared on the Python Package Index on 3 April 2024 as version 0.0.1, about five weeks before the public announcement.[4] On 10 May 2024 the Department for Science, Innovation and Technology and the AI Safety Institute announced that the institute's "homegrown Inspect evaluations platform" was being made available to the global AI community under an open-source licence.[1] The press release described Inspect as a software library that lets testers, from startups and academics to AI developers and governments, assess specific capabilities of individual models and produce a score, with coverage of areas including core knowledge, reasoning and autonomous capabilities.[1]

Science Secretary Michelle Donelan said she had cleared the platform to be open sourced.[1] [Ian Hogarth](https://aiwiki.ai/wiki/ian_hogarth), the institute's chair, said he hoped Inspect could be "a building block for AI Safety Institutes, research organisations, and academia," and cited open projects such as GPT-NeoX, OLMo and Pythia as inspiration.[1] The same announcement said the institute, the government's Incubator for AI (i.AI) and Number 10 would bring together AI specialists to build further open-source safety tools.[1]

The project's suggested citation names "AI Security Institute, UK" as author and dates the software to May 2024.[2] JJ Allaire, whom an AISI post describes as the creator of Inspect and whom Apollo Research described in November 2024 as leading the Inspect development team at the institute, said he built it "to provide a strong technical foundation for governments, researchers, and labs to collaborate on testing and understanding frontier models."[6][20]

### Growth of the ecosystem

AISI followed the core framework with a series of add-on packages, all on [GitHub](https://aiwiki.ai/wiki/github) under the MIT license: a Kubernetes sandbox, Inspect Cyber for agentic cybersecurity evaluations, ControlArena for [AI control](https://aiwiki.ai/wiki/ai_control) experiments and a Proxmox virtual machine sandbox, whose repositories were created between December 2024 and March 2025.[22][23][24][25] On 7 August 2025 the institute presented the Docker Compose, Kubernetes and Proxmox providers together as the Inspect Sandboxing Toolkit, alongside a protocol for choosing how strongly to isolate a given evaluation.[5]

Meridian Labs is a 501(c)(3) nonprofit based in Boston. Its team page lists Charles Teague, who had helped develop Inspect while a Technology and Security Policy Fellow at the RAND Corporation, and Eric Patey as co-founders in 2025, and AISI's June 2026 post describes JJ Allaire as a founder at Meridian Labs.[8][7][6] Meridian describes Inspect as its flagship project, built by its founding team in collaboration with AISI.[7] From 2025 its blog announced a run of companion tools: Inspect Viz for plotting evaluation results (September 2025), an integration that made more than 80 Harbor benchmarks runnable in Inspect (February 2026), Inspect Scout for transcript analysis (February 2026), Inspect Flow for running evaluations at scale (March 2026), cloud sandbox providers (April 2026), Inspect Steward for supervising long-running evaluations (September 2026), Inspect Sentinel for monitoring agents while they run (October 2026) and a framework for cyber ranges built from virtual machines (November 2026).[9] In May 2026 [Petri](https://aiwiki.ai/wiki/petri), the alignment auditing tool that originated at [Anthropic](https://aiwiki.ai/wiki/anthropic), moved to Meridian with a 3.0 release.[9][7]

On 18 June 2026 AISI released an Engineering Playbook describing the wider infrastructure behind its evaluations and said Inspect "powers many of AISI's frontier evaluations." The same post reported that more than 240 people had contributed to the `inspect_ai` repository.[6]

The framework is still versioned below 1.0, and releases are frequent: five versions appeared between 31 October and 17 November 2026, the latest being 0.3.291.[26] As of 18 November 2026 the GitHub repository had about 3,280 stars and 940 forks.[3]

<figure class="embedvideo">
<iframe src="https://www.youtube-nocookie.com/embed/J79pSSAENYc" title="Sandbox breakout evals with Inspect - UK AISI @ FC London '25"></iframe>
<figcaption>"Sandbox breakout evals with Inspect - UK AISI @ FC London '25", video from CoreWeave, published December 8, 2025. <a href="https://www.youtube.com/watch?v=J79pSSAENYc">Watch on YouTube</a>.</figcaption>
</figure>

## Design

### Tasks, solvers and scorers

Inspect's documentation describes an evaluation as a `Task` that brings together three components.[2]

| Component | Role |
|---|---|
| Dataset | Labelled samples, usually with an `input` (the prompt) and a `target` (the ideal answer or grading guidance) |
| Solver | Produces an answer for each sample, from a single model call to a multi-turn agent with tools |
| Scorer | Grades the output by text comparison, model grading or a custom scheme |

Tasks are ordinary Python functions marked with a `@task` decorator, run from the command line with `inspect eval` or from Python with the `eval()` function.[2] The documentation's first example evaluates a model on [SimpleQA](https://aiwiki.ai/wiki/simpleqa) by loading a [Hugging Face](https://aiwiki.ai/wiki/hugging_face) dataset, calling the model once and grading the free-text answer with another model:[2]

```python
from inspect_ai import Task, task
from inspect_ai.dataset import FieldSpec, hf_dataset
from inspect_ai.scorer import model_graded_qa
from inspect_ai.solver import generate

@task
def simpleqa():
    return Task(
        dataset=hf_dataset(
            "codelion/SimpleQA-Verified",
            split="train",
            sample_fields=FieldSpec(
                input="problem",
                target="answer",
            ),
        ),
        solver=generate(),
        scorer=model_graded_qa(),
    )
```

Built-in scorers cover text matching, multiple choice, model grading, math and perplexity.[27] Inspect has built-in support for more than 20 model providers, among them OpenAI, Anthropic, Google, Mistral, DeepSeek, Grok, AWS Bedrock, Azure AI, Together AI and Groq, plus local inference through Hugging Face, [vLLM](https://aiwiki.ai/wiki/vllm) and [SGLang](https://aiwiki.ai/wiki/sglang).[2][28]

### Tools and agents

Models under evaluation can call custom Python tools, tools served over the [Model Context Protocol](https://aiwiki.ai/wiki/model_context_protocol), and built-in tools for bash and Python execution, a persistent bash session, text editing, web search and [computer use](https://aiwiki.ai/wiki/computer_use) through screenshots, mouse and keyboard.[2][16] Agentic helper tools include a to-do list, a memory directory and a "think" step.[16]

The framework ships a ReAct-style agent that loops through reasoning, actions and observations until it submits an answer, a "deep agent" with subagent delegation, memory and planning, and primitives for multi-agent architectures.[2][27] An agent bridge routes the model calls of agents written with other frameworks, such as the [OpenAI Agents SDK](https://aiwiki.ai/wiki/openai_agents_sdk), [LangChain](https://aiwiki.ai/wiki/langchain) and [Pydantic AI](https://aiwiki.ai/wiki/pydantic_ai), through Inspect's model layer, and a sandbox version of the bridge runs command-line agents such as [Claude Code](https://aiwiki.ai/wiki/claude_code), [Codex CLI](https://aiwiki.ai/wiki/codex_cli) and [Gemini CLI](https://aiwiki.ai/wiki/gemini_cli) inside a container.[12] The documentation warns that the in-process bridge gives the agent access to the host's network and files and should not be used with adversarial models.[12]

A `human_cli` agent lets a person attempt the same task, in the same sandbox and with the same scorer, as a model would. It is intended for human baselining; the person logs into the container, works on the task and submits an answer, and the terminal session is recorded by default.[13]

### Sandboxing

Tools that run model-written code execute inside a sandbox rather than on the machine running the evaluation.[10] Docker and a no-isolation local environment are built in, and other environments are added through an extension API; the documentation lists six external sandbox packages:[10]

| Sandbox type | Package | Notes |
|---|---|---|
| `docker` | Built in | Local Docker, configured with a Dockerfile or `compose.yaml` |
| `k8s` | inspect-k8s-sandbox | [Kubernetes](https://aiwiki.ai/wiki/kubernetes) cluster |
| `daytona` | inspect-sandboxes | Daytona cloud sandbox |
| `modal` | inspect-sandboxes | Modal cloud sandbox |
| `proxmox` | inspect_proxmox_sandbox | Proxmox virtual machines |
| `vagrant` | inspect_vagrant_sandbox | Vagrant virtual machines |
| `openshell` | inspect-openshell-sandbox | NVIDIA OpenShell sandboxes with filesystem and network policies |
| `local` | Built in | Local file system, no isolation |

AISI's August 2025 post explains the design choice behind this: Inspect sits outside the sandbox and sends commands into it at the model's request, so everything that happens inside is initiated by Inspect.[5] The institute said the main present risk is an agent accidentally damaging infrastructure, that it increasingly runs evaluations that deliberately test whether an agent can escape its sandbox, and that sandboxed agents might in future use injection attacks to try to reach Inspect's own Python code.[5] Its sandboxing protocol classifies isolation along three axes: tooling, host and network.[5]

### Running and analysing evaluations

Approval policies can require a human operator to approve every tool call, only selected tools (such as bash and Python), or delegate decisions to custom approvers that approve, reject or escalate.[11] Tasks can set limits on time, messages, tokens and cost per sample, and a separate "working limit" that counts only time spent working rather than waiting on rate limits.[17][27]

The `inspect eval-set` command runs many tasks and models together, retries failed evaluations, reuses samples already completed by failed tasks and can be re-run to pick up where a previous run stopped.[14] Results are written to log files; since version 0.3.46 the default is a binary `.eval` format that the documentation says is typically about one eighth the size of the equivalent JSON log.[15] Logs can be browsed in the web-based Inspect View or through a [Visual Studio Code](https://aiwiki.ai/wiki/visual_studio_code) extension, and read into data frames for analysis.[2][27]

## Inspect Evals and the benchmark catalogue

Inspect Evals is a companion library of evaluations written for Inspect. It was founded in 2024 with contributions from AISI, Arcadia Impact and the Vector Institute and is now maintained by Generality Labs, a London nonprofit.[19] Its README says it accepts pull requests only from pre-approved contributors and asks others to report problems with an issue and supporting log files.[19]

The "Evals" page in Inspect's documentation combines Inspect Evals with benchmarks from the Harbor registry. On 18 November 2026 it listed 308 entries (129 from Inspect Evals and 179 from Inspect Harbor), some benchmarks appearing in both packages, tagged with categories including coding, assistants, reasoning, knowledge, professional, science, safeguards, cybersecurity, multimodal, biology, mathematics, medicine, law, finance, chemistry, physics, scheming and behavior.[18] Examples include:[18]

| Benchmark | Category | Samples |
|---|---|---|
| [SWE-bench](https://aiwiki.ai/wiki/swe_bench) Verified | Coding | 500 |
| [HumanEval](https://aiwiki.ai/wiki/humaneval) | Coding | 164 |
| [GAIA](https://aiwiki.ai/wiki/gaia_benchmark) | Assistants | 165 |
| [OSWorld](https://aiwiki.ai/wiki/osworld) | Assistants | 369 |
| [Cybench](https://aiwiki.ai/wiki/cybench) | Cybersecurity | 39 |
| [AgentHarm](https://aiwiki.ai/wiki/agentharm) | Safeguards | 176 |
| [StrongREJECT](https://aiwiki.ai/wiki/strongreject) | Safeguards | 324 |
| [WMDP](https://aiwiki.ai/wiki/wmdp) (bio subset) | Safeguards | 1273 |
| [GPQA](https://aiwiki.ai/wiki/gpqa) Diamond | Science | 198 |

Researchers also publish new benchmarks as Inspect tasks. A December 2024 paper on whether models can plan to subvert AI control protocols implemented its Subversion Strategy Eval in Inspect and released it as open source.[29] AISI's SandboxEscapeBench, introduced in March 2026 to measure whether agents can break out of container sandboxes, is implemented as capture-the-flag challenges in Inspect, with each container running inside a hardened virtual machine.[30][32] Inspect India Evals (July 2026) packages six benchmarks for Indian languages and cultural context on top of Inspect.[31]

## Adoption

Apollo Research announced on 13 November 2024 that, after a three-month internal trial, it would deprecate its own evaluation framework and build all new evaluations in Inspect.[20] It listed avoiding duplicated work on problems such as secure agent sandboxes, easier sharing of evaluations with partners, and features its own tool lacked, such as web browsing tools and approval mode.[20] It also listed drawbacks: less control over design decisions (Apollo's framework prioritized type safety, which Inspect did not at the time), a more general and therefore more complex library, slower turnaround on features it needed, and the cost of migrating existing evaluations.[20]

METR moved its internal tooling from its own Vivaria platform to Inspect and now recommends Inspect for new projects; the Vivaria repository has been archived.[21] AISI's June 2026 post said METR runs its [time horizon](https://aiwiki.ai/wiki/metr_time_horizon) evaluations, with 228 tasks, on Inspect, and quoted a METR staff member calling Inspect "absolutely central to METR's evaluations."[6] AISI said in August 2025 that it had helped the US Center for AI Standards and Innovation ([CAISI](https://aiwiki.ai/wiki/us_aisi)), METR and Apollo Research adopt its sandbox providers, and in 2026 that other government institutions had adopted Inspect and the toolkit.[5][6]

Meridian Labs describes Inspect as the standard framework at the UK AISI, US CAISI, the EU AI Office and the Japanese and Korean AI safety institutes, and at research organizations including METR, Apollo, Epoch, SecureBio, Redwood and RAND.[7] It also says Inspect underpins control evaluation projects such as ControlArena and LinuxArena and integrates with interpretability libraries such as TransformerLens and nnterp.[7] These are Meridian's own statements; AISI's posts name METR, Apollo Research and CAISI specifically.[5][6]

## See also

- [LLM evaluation](https://aiwiki.ai/wiki/llm_evaluation)
- [LM Evaluation Harness](https://aiwiki.ai/wiki/lm_evaluation_harness)
- [HELM](https://aiwiki.ai/wiki/helm)
- [Harness](https://aiwiki.ai/wiki/harness)
- [AI Safety Institute](https://aiwiki.ai/wiki/ai_safety_institute)
- [Red teaming](https://aiwiki.ai/wiki/red_teaming)

## References

1. Department for Science, Innovation and Technology and AI Safety Institute. "AI Safety Institute releases new AI safety evaluations platform". GOV.UK, 10 May 2024. https://www.gov.uk/government/news/ai-safety-institute-releases-new-ai-safety-evaluations-platform
2. UK AI Security Institute. "Inspect" (documentation home page). inspect.aisi.org.uk, accessed 18 November 2026. https://inspect.aisi.org.uk/
3. UKGovernmentBEIS. "inspect_ai: Inspect: A framework for large language model evaluations". GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/inspect_ai
4. Python Package Index. "inspect-ai" (release history). PyPI, accessed 18 November 2026. https://pypi.org/project/inspect-ai/#history
5. AI Security Institute. "The Inspect Sandboxing Toolkit: Scalable and secure AI agent evaluations". AISI blog, 7 August 2025. https://www.aisi.gov.uk/blog/the-inspect-sandboxing-toolkit-scalable-and-secure-ai-agent-evaluations
6. AI Security Institute. "Releasing AISI's Engineering Playbook". AISI blog, 18 June 2026. https://www.aisi.gov.uk/blog/releasing-aisis-engineering-playbook
7. Meridian Labs. "About". meridianlabs.ai, accessed 18 November 2026. https://meridianlabs.ai/about.html
8. Meridian Labs. "Team". meridianlabs.ai, accessed 18 November 2026. https://meridianlabs.ai/team.html
9. Meridian Labs. "Meridian Labs Blog". meridianlabs.ai, accessed 18 November 2026. https://meridianlabs.ai/blog/
10. UK AI Security Institute. "Sandboxing". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/sandboxing.html
11. UK AI Security Institute. "Tool Approval". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/approval.html
12. UK AI Security Institute. "Agent Bridge". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/agent-bridge.html
13. UK AI Security Institute. "Human Agent". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/human-agent.html
14. UK AI Security Institute. "Eval Sets". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/eval-sets.html
15. UK AI Security Institute. "Log Files". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/eval-logs.html
16. UK AI Security Institute. "Standard Tools". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/tools-standard.html
17. UK AI Security Institute. "Setting Limits". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/setting-limits.html
18. UK AI Security Institute. "Evals". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/evals/
19. UKGovernmentBEIS. "inspect_evals: Collection of evals for Inspect AI" (README). GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/inspect_evals
20. Apollo Research. "Apollo Is Adopting Inspect". Apollo Research blog, 13 November 2024. https://www.apolloresearch.ai/blog/apollo-is-adopting-inspect
21. METR. "Vivaria" (README, "Transitioning to Inspect"). GitHub, accessed 18 November 2026. https://github.com/METR/vivaria
22. UKGovernmentBEIS. "inspect_k8s_sandbox: A Kubernetes sandbox environment for use with inspect_ai". GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/inspect_k8s_sandbox
23. UKGovernmentBEIS. "inspect_cyber: An Inspect extension for agentic cyber evaluations". GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/inspect_cyber
24. UKGovernmentBEIS. "control-arena: ControlArena is a collection of settings, model organisms and protocols - for running control experiments". GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/control-arena
25. UKGovernmentBEIS. "inspect_proxmox_sandbox: A Proxmox sandbox environment for use with inspect_ai". GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/inspect_proxmox_sandbox
26. UKGovernmentBEIS. "Releases: inspect_ai". GitHub, accessed 18 November 2026. https://github.com/UKGovernmentBEIS/inspect_ai/releases
27. UK AI Security Institute. "Inspect" (documentation index, llms.txt). inspect.aisi.org.uk, accessed 18 November 2026. https://inspect.aisi.org.uk/llms.txt
28. UK AI Security Institute. "Providers". Inspect documentation, accessed 18 November 2026. https://inspect.aisi.org.uk/providers.html
29. Mallen, Alex; Griffin, Charlie; Wagner, Misha; Abate, Alessandro; Shlegeris, Buck. "Subversion Strategy Eval: Can language models statelessly strategize to subvert control protocols?". arXiv:2412.12480, December 2024. https://arxiv.org/abs/2412.12480
30. Marchand, Rahul; O Cathain, Art; Wynne, Jerome; et al. "Quantifying Frontier LLM Capabilities for Container Sandbox Escape". arXiv:2603.02277, March 2026. https://arxiv.org/abs/2603.02277
31. Singh, Abhishek Kumar; Nag, Shrey; Sachita; Goel, Lipi; Janwar, Rajeshwar Singh. "Inspect India Evals: An Open Benchmarking Framework for Evaluating Large Language Models in the Indian Linguistic and Cultural Context". arXiv:2607.25375, July 2026. https://arxiv.org/abs/2607.25375
32. AI Security Institute. "Can AI agents escape their sandboxes? A benchmark for safely measuring container breakout capabilities". AISI blog, 23 March 2026. https://www.aisi.gov.uk/blog/can-ai-agents-escape-their-sandboxes-a-benchmark-for-safely-measuring-container-breakout-capabilities

