
Promptfoo
Ship agents, not vulnerabilities
About Promptfoo
Promptfoo is an open source tool for testing LLM applications in two directions: whether they do the right thing, and whether they can be made to do the wrong one. The evaluation half lets you declare test cases and assertions in YAML and run them against any provider, so a prompt change produces a pass or fail per model rather than a vibe. The red teaming half generates adversarial inputs against your own application (jailbreaks, prompt injection, PII extraction, tool misuse) and reports what got through.
You start with a configuration file that names your providers, your prompts and your test cases. Assertions can be deterministic (contains, equals, a JSON schema match, a regex), or model-graded, where another model judges whether an answer satisfies a rubric you wrote. Running the evaluation produces a matrix of prompt against model against test, so you can see which combination actually regressed rather than guessing from an aggregate score.
Red teaming runs from the same configuration but inverts the goal.
- •Declarative evaluations - Test cases and assertions live in YAML next to the code, version controlled and reviewable, rather than in a notebook or a vendor dashboard.
- •Model-graded assertions - Where a deterministic check cannot express the requirement, another model grades the answer against a rubric you write, which covers the large class of outputs that are correct in several wordings.
- •Automated red teaming - Generates jailbreak, prompt-injection, PII-extraction and tool-misuse probes against your own app and produces a vulnerability report with severity and remediation notes.
- •Provider-agnostic - Runs against every major model provider and your own endpoints, so comparing two vendors is a configuration change rather than a rewrite.
- •Local and self-hosted by default - The Community build runs entirely on your machine or your infrastructure, with no requirement to ship prompts or outputs to a third party.
Teams shipping an LLM feature that real users touch, and particularly anyone who has already been burned by a model upgrade silently changing behaviour. It suits developers who want tests in the repository rather than results in a vendor dashboard, security engineers who need evidence about an agent before it goes live, and anyone comparing two providers who wants the comparison to be reproducible.
Pricing
Custom pricing, contact sales
- Community$0/mo
- EnterpriseContact sales
- Enterprise On-PremiseContact sales























































