talira

promptfoo

Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI

open coreMITself-hostablefreeMCP

promptfoo is an MIT-licensed CLI and Node.js library for evaluating and red-teaming LLM applications: you declare prompts, providers and test cases with assertions in a config file, run promptfoo eval, and compare outputs side by side in a local web viewer, with caching and live reload, and the same checks run in CI. Its red teaming generates adversarial probes (prompt injection, jailbreaks, PII and data leaks, tool misuse such as unauthorized access and SQL injection, harmful content) against your app and reports vulnerabilities mapped to frameworks such as the OWASP LLM Top 10, NIST AI RMF and the EU AI Act, and its code scanning reviews pull requests for LLM security issues. It works with OpenAI, Anthropic, Azure, Bedrock, Ollama and many other providers, and evals run locally. OpenAI acquired Promptfoo in 2026; the project stays open source, with paid Enterprise (managed cloud) and On-Premise editions for teams.

Ways to install

Package managers

Problems it solves

  • compare GPT, Claude and Gemini side by side on the same prompts and test cases before picking one
  • catch regressions in my prompts automatically in CI before they ship
  • probe my chatbot for prompt injection and jailbreaks before launch
  • check whether my RAG app leaks PII or internal documents when users try to extract them
  • test whether an AI agent with database access can be tricked into SQL injection or privilege escalation
  • produce a vulnerability report for our LLM app mapped to the OWASP LLM Top 10 for the security team
  • write assertions for LLM outputs in a YAML config instead of eyeballing responses
  • review pull requests for LLM security issues like unsanitised prompts reaching a model
  • run LLM evals entirely on my machine so prompts never leave our network
  • let my coding agent run evals and red team scans through an MCP server
  • continuously monitor an LLM application for new vulnerabilities with a compliance dashboard

Features

  • declarative eval configs with assertions, run from the CLI with a local web viewer
  • side-by-side model comparison across OpenAI, Anthropic, Azure, Bedrock, Ollama and more providers
  • red teaming plugins and strategies: prompt injection, jailbreaks, PII leaks, BOLA, BFLA, tool misuse, hijacking
  • vulnerability reports; frameworks such as OWASP LLM Top 10, NIST AI RMF and EU AI Act
  • code scanning of pull requests for LLM security and compliance issues
  • CI/CD integration
  • MCP server (promptfoo mcp, stdio or HTTP) with eval, dataset generation and red team tools
  • Node.js package for running evals from code
  • caching and live reload
  • Enterprise: team sharing, continuous monitoring, compliance dashboard, custom attack profiles, API access, SSO

Ways to run it

Community

You run it, MIT

free (red teaming up to 10k probes/month)23

Only in this edition

  • LLM evaluation
  • vulnerability scanning
  • all model providers and integrations

Not included

  • team sharing, continuous monitoring and the compliance dashboard
  • SSO

You arrange

  • API keys for the model providers you test

Pricing

Enterprise

Hosted by Promptfoo and OpenAI

custom2

Only in this edition

  • managed cloud deployment
  • team sharing
  • continuous monitoring
  • compliance dashboard
  • custom attack profiles
  • Promptfoo API access
  • SSO and permission profiles
  • priority support with SLA

Pricing

On-Premise

You run it, under a commercial licence

custom2

Only in this edition

  • everything in Enterprise on your own infrastructure
  • complete data isolation
  • dedicated runner
  • assigned deployment engineer

You arrange

  • your own infrastructure

Pricing

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Has single sign-onEnterprise; On-Premise2

Alternatives

The same job

These do what promptfoo does.

  1. DeepEval The LLM Evaluation Framework
  2. Ragas Objective metrics, intelligent test generation, and data-driven insights for LLM apps
  3. Braintrust The active observability platform for agents
  4. LangSmith Observability, evaluation and deployment for LLM apps and agents, from LangChain
  5. Langfuse Open source AI engineering platform: AI Gateway, agent observability, evals, and prompt/skill management, built on OpenTelemetry.

Compare promptfoo with the top 3