Promptfoo
Promptfoo is an open-source testing tool for LLMs, RAG applications, and agentic workflows. It has a free edition under the MIT license, and its maintainer also sells a paid edition or commercial license. It runs on Linux, macOS, and Windows.
Updated
- Pricing
- Free / Commercial
- License
- MIT
- Platforms
- Linux, macOS, Windows
- Category
- AI Security Tools
What Is Promptfoo?
Promptfoo is an open-source testing tool for LLMs, RAG applications, and agentic workflows. It includes over 150 red-team plugins, with presets mapped to the OWASP Top 10 for LLM Applications, covering indirect prompt injection, PII disclosure, and SSRF, plus jailbreak attack strategies. Promptfoo announced in March 2026 that it agreed to be acquired by OpenAI; the project remains open source and MIT licensed.
Use Cases
Continuous security testing and prompt regression checks in GitHub Actions and GitLab pipelines.
Strengths and Limitations
Strengths
- +Runs locally using declarative YAML configuration files.
- +Plugins for indirect prompt injection, PII disclosure, and SSRF, combined with jailbreak strategies such as static jailbreak templates and composite jailbreaks.
- +Supports custom assertions via Python, JavaScript, or LLM-graded rubrics.
Limitations
- -Some red-team generation and grading plugins use Promptfoo's hosted service by default; fully air-gapped operation requires disabling remote generation.
- -Targets without a built-in provider need a custom provider script, for example in Python or JavaScript.
Defensive Use
Catching prompt regressions, unauthorized tool usage, and sensitive data leakage during pull request reviews.
Promptfoo Alternatives
4 tools| Tool | License | Platforms | Pricing |
|---|---|---|---|
| DeepEval Pytest-style evaluation framework for LLM applications with automated metrics for RAG accuracy, hallucination detection, and safety testing. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| garak Generative AI vulnerability scanner and red-teaming tool that probes language models for prompt injections and data leaks. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| Inspect Evaluation framework from the UK AI Security Institute and Meridian Labs for testing language models across reasoning, safety, and tool use. | MIT | Linux, macOS, Windows | Open Source |
| PyRIT Python automation framework from Microsoft for red teaming generative AI endpoints, agent workflows, and prompt defenses. | MIT | Linux, macOS, Windows | Open Source |
Frequently Asked Questions
What is Promptfoo?→
Promptfoo is an open-source testing tool for LLMs, RAG applications, and agentic workflows. It includes over 150 red-team plugins, with presets mapped to the OWASP Top 10 for LLM Applications, covering indirect prompt injection, PII disclosure, and SSRF, plus jailbreak attack strategies. Promptfoo announced in March 2026 that it agreed to be acquired by OpenAI; the project remains open source and MIT licensed.
What is Promptfoo used for?→
Continuous security testing and prompt regression checks in GitHub Actions and GitLab pipelines.
What are the strengths of Promptfoo?→
- +Runs locally using declarative YAML configuration files.
- +Plugins for indirect prompt injection, PII disclosure, and SSRF, combined with jailbreak strategies such as static jailbreak templates and composite jailbreaks.
- +Supports custom assertions via Python, JavaScript, or LLM-graded rubrics.
What are the limitations of Promptfoo?→
- +Some red-team generation and grading plugins use Promptfoo's hosted service by default; fully air-gapped operation requires disabling remote generation.
- +Targets without a built-in provider need a custom provider script, for example in Python or JavaScript.
How is Promptfoo used defensively?→
Catching prompt regressions, unauthorized tool usage, and sensitive data leakage during pull request reviews.