EVERYTHING XIAOMI
Get listed

AgentDojo

AgentDojo is a free, self-hosted environment for researchers evaluating prompt injection attacks and defenses for LLM agents.

Place
#24 of 29
Score
5.4
AgentDojo's website

What AgentDojo is

AgentDojo is a free, self-hosted environment for researchers evaluating prompt injection attacks and defenses for LLM agents. It installs with pip and provides benchmark suites plus a script for selecting models, attacks, defenses, suites, and tasks. Researchers can extend supplied benchmarks, define new task suites and tasks, or create benchmarks from scratch. Custom attacks can target a pipeline, suite, user task, or injection task. Pipelines combine system messages, LLMs, tool execution, and defense components. Documented tool-calling implementations cover OpenAI, Anthropic, Google, and Cohere, while a prompting interface supports other models; the documentation also describes Llama 3 70B through TogetherAI. Its Python functions runtime runs functions for function-calling models, including stateful environments. Results can be inspected as traces in Invariant Explorer. The project warns results are not a leaderboard because not all combinations were tested. The prompt-injection detector requires the transformers extra, and the package API may change.

Good

  • Free and MIT licensed
  • Custom attacks and benchmarks
  • Multiple documented model providers
  • Inspectable agent run traces
  • Self-hosted Python runtime

Watch out

  • Package API may change
  • Detector requires the transformers extra
  • Results are not a complete leaderboard
  • Requires self-hosted setup

Who it suits

It suits researchers building benchmarks and evaluating prompt-injection defenses in self-hosted LLM-agent pipelines.

Verdict

AgentDojo provides a flexible research framework for composing agent pipelines, attacks, defenses, and benchmark tasks. Its evolving API and incomplete result coverage matter when interpreting experiments.

The facts

Each one read from AgentDojo's own pages, with the date it was checked.

What it does

Affiliations
The listed authors are affiliated with ETH Zurich and Invariant Labs.checked 8 Oct 2026
API status
The package API is still under development and may change.checked 8 Oct 2026
Benchmark
The benchmark script runs selected models, defenses, attacks, task suites, and tasks.checked 8 Oct 2026
Contribute results
Users can submit benchmark results by opening a repository pull request that includes a brief description and an implementation.checked 8 Oct 2026
Custom attacks
Users can create and plug in custom attacks that target a pipeline, task suite, user task, and injection task.checked 8 Oct 2026
Custom benchmarks
Users can define task suites and tasks to extend the provided benchmarks or create a new benchmark from scratch.checked 8 Oct 2026
Custom pipelines
Pipeline components can be combined into custom agent pipelines, including defense components.checked 8 Oct 2026
Defense research
The results page reports model, defense, and attack combinations and says it is not a leaderboard because not all combinations were tested.checked 8 Oct 2026
Function runtime
Its functions runtime defines and runs Python functions for use with function-calling LLMs, including functions that operate on stateful environments.checked 8 Oct 2026
Install
The quickstart installs AgentDojo with `pip install agentdojo`.checked 8 Oct 2026
License
The project's GitHub page identifies its license as MIT.checked 8 Oct 2026
Model integrations
Documented tool calling LLM implementations include OpenAI GPT, Anthropic Claude, Google Gemini, Cohere Command, and a prompting interface for other models.checked 8 Oct 2026
Model providers
Documented tool-calling LLM implementations support OpenAI, Anthropic, Google, and Cohere; the docs also describe using Llama 3 70B through TogetherAI’s API.checked 8 Oct 2026
Pipeline components
Agent pipelines combine elements such as system messages, LLMs, tool execution, and defense components.checked 8 Oct 2026
Prompt injection detector
The prompt injection detector requires installing the `transformers` extra.checked 8 Oct 2026
Purpose
AgentDojo is a dynamic environment for evaluating prompt injection attacks and defenses for LLM agents.checked 8 Oct 2026
Research use
The project asks research users to consider citing its 2024 paper.checked 8 Oct 2026
Results limitation
The results page says its results are not a leaderboard because not all models were tested with all attacks and defenses.checked 8 Oct 2026
Tool runtime
Its functions runtime registers and runs Python functions for use with function calling LLMs, including functions that use stateful environments.checked 8 Oct 2026
Trace inspection
The results page says users can inspect run traces, including agent trajectories, attacks, and defenses, using Invariant Explorer.checked 8 Oct 2026
Use case
The documentation presents AgentDojo as a framework for researchers to evaluate attacks and defenses and build benchmarks.checked 8 Oct 2026

The company

Makers
The project page lists authors affiliated with ETH Zurich and Invariant Labs.checked 8 Oct 2026

Alternatives to AgentDojo

All alternatives
  1. 1

    OpenSecureAI Scanner

    Free planOpen sourceWebAPILinuxmacOS
    8.1From $49 a month
  2. 2PromptGuard logo

    PromptGuard

    Free planWebAPIExtensionLinux
    7.9From $19 a month
  3. 3Promptfoo logo

    Promptfoo

    Free planOpen sourceWebAPILinuxmacOS
    7.8Free plan
  4. 4Giskard logo

    Giskard

    Free planOpen sourceWebAPILinuxSelf-hosted
    7.6Free plan
  5. 5AIRTA Red Team logo

    AIRTA Red Team

    Free planOpen sourceWebAPILinuxmacOS
    7.5Free plan
  6. 6

    CyberSecEval

    Free planOpen sourceWebAPILinuxmacOS
    7.5Free plan