Promptfoo
Open-source CLI for prompt testing, model comparison and LLM red teaming / security scanning
Promptfoo is an open-source (MIT) CLI and library for testing and securing LLM apps. You describe prompts, providers and assertions in YAML, then compare outputs side by side across models (GPT, Claude, Gemini, Llama, local models via Ollama) and catch regressions. Its red-teaming module probes apps for issues such as prompt injection, jailbreaks and PII leaks, and it runs in CI/CD, for example through GitHub Actions. OpenAI announced an agreement to acquire Promptfoo in March 2026; the team says the open-source tools will remain open source. An enterprise edition adds team features and managed options. Ideal for teams that want a security-first testing workflow. Works well with: Ollama · LiteLLM · GitHub Actions · Any LLM provider
When to use
- You want to compare outputs across LLMs
- You need to catch prompt regressions before release
- You want red teaming and security scans for an LLM app
When not to use
- You need real-time production observability
- You need distributed tracing across services
At a glance
- Pricing
- Open core
- Deployment
- Local
- Difficulty
- Beginner
- License
- MIT
- Languages
- js
- Use cases
- prompt testing, model comparison, red teaming, ci cd testing
- Last verified
- 2026-10-22 (official documentation)
Works well with
Alternatives in this category
See all 5 tools in Observability & Evaluation — AI Monitoring & Assessment →