What is Promptfoo?
TL;DR: Open-source LLM evals and red-teaming for secure AI apps.
Promptfoo is an open-source toolkit for testing and red-teaming LLM applications. Developers define test cases and assertions in config files, compare prompts and models side by side, and run automated adversarial scans for jailbreaks, prompt injection, and data leakage, locally or in CI.
Best for: Developers and security teams who need to test LLM apps before shipping.
Promptfoo key features
- Declarative eval configs with assertions
- Side-by-side comparison of prompts and models
- Automated red teaming and vulnerability scans
- CI/CD integration and web viewer
Use cases
- Regression-testing prompts when changing models
- Red-teaming a chatbot for prompt injection
- Choosing the best model for a task with data
👍 Pros
- Open source and runs locally
- Covers both quality evals and security
- Large community
👎 Cons
- Config-driven approach takes some setup
- Enterprise security features are paid
Promptfoo FAQ
- What is Promptfoo?
- Promptfoo is an open-source toolkit for testing and red-teaming LLM applications. Developers define test cases and assertions in config files, compare prompts and models side by side, and run automated adversarial scans for jailbreaks, prompt injection, and data leakage, locally or in CI.
- Is Promptfoo free?
- Promptfoo uses a Open source pricing model (verified Nov 28, 2026).
- Does Promptfoo have an API?
- Yes. Promptfoo offers an API for developers.
- Does Promptfoo support Chinese, and is it available in China?
- Promptfoo does not support Chinese, and it has unverified availability in mainland China.
- What are the best alternatives to Promptfoo?
- Popular alternatives to Promptfoo include Confident AI, Jupyter AI, Poolside, Quilter.
Reviews
No reviews yet. Be the first to share your experience.