Promptfoo

Open source prompt testing and AI red teaming for developers

Advanced
Screenshot of Promptfoo, Open source prompt testing and AI red teaming for developers

What is Promptfoo?

Promptfoo is a cybersecurity tool. Open source tool for testing prompts and red teaming AI applications, with YAML configured evaluations, generated attacks for agents and RAG, and findings surfaced in pull requests and CI/CD pipelines.

Promptfoo is a testing and security platform for AI applications, combining prompt evaluation with automated red teaming. It targets developers and security teams who need to know how a model, agent or retrieval pipeline behaves before and after it reaches production. The tool is open source at its core, with an enterprise layer for remediation reporting and team-wide tracking, and the homepage states that 156 of the Fortune 500 use it in their AI development lifecycle. The workflow follows three stages. Connect the tool to an application, agent or workflow, whether that runs in a CI/CD pipeline, inside GitHub, GitLab or Jenkins, or on an MCP and agent framework, on premise or in the cloud. Attack with generated test cases: direct and indirect prompt injections, jailbreaks tailored to existing guardrails, data and PII leaks, business rule violations, insecure tool use and toxic output, drawn from a catalogue the site describes as covering 50 or more vulnerability types. Fix by pushing findings into pull requests with remediation guidance, then keep monitoring. In practice this is a command line driven tool. Red team setup begins with a single npx command, and evaluations are configured in YAML, a detail OpenAI engineers highlighted when describing how they iterate on prompts and review results locally. That makes Promptfoo closer to a test runner than to a chat playground: it suits teams already comfortable with repositories and pipelines, and it scales from a single application to a hundred or more without hand-writing scenarios. The alternatives fall into two camps. Prompt evaluation products tend to stop at quality scoring, while security scanners tend to ignore the application logic around the model. Promptfoo argues it covers both, testing business rules, RAG and agent tool calls rather than the model alone. The tradeoff is real: configuration lives in files, the vocabulary is security-heavy, and buyers wanting a visual prompt editor will find richer options elsewhere.

How do you use Promptfoo?

  1. 1Read the introduction docs
    Start with the intro documentation to understand how evaluations and red teaming are structured, and confirm the runtime requirements for your environment.
  2. 2Run red team setup
    From a terminal, launch the red team setup command to scaffold an attack configuration against your target application or agent.
  3. 3Choose vulnerability types
    Review the catalogue of supported vulnerability types and select the ones that match your application, such as prompt injection, PII leakage or insecure tool use.
  4. 4Connect your pipeline
    Wire Promptfoo into your CI/CD tooling, whether that is GitHub, GitLab or Jenkins, so tests run on each change rather than as a one-off exercise.
  5. 5Review and remediate findings
    Work through results and remediation reports, then track fixes over time as the application and its guardrails change.

Pros and cons

Pros

  • Combines prompt evaluation and security testing in one open source toolchainAI
  • Red team setup starts from a single npx command, with tests defined in YAMLAI
  • Generates application specific attacks covering injection, jailbreaks, PII leaks and insecure tool useAI
  • Findings and remediation guidance land directly in pull requests and developer workflowsAI
  • Community threat intelligence from a reported 300,000 plus users feeds new attack vectorsAI

Cons

  • Configuration is file and command line centric, so there is a learning curve before results appearAI
  • Requires engineering time to wire into CI/CD and to interpret findings, which is heavy for small teamsAI
  • Enterprise features such as remediation reports sit behind a paid tier the homepage does not priceAI
  • Security-first framing may overwhelm users who only want simple prompt A/B comparisonsAI
  • No published pricing or plan breakdown on the homepage, so budgeting needs a sales conversationAI

How much does Promptfoo cost?

Integrations

Connects to AI apps, agents and workflows through CI/CD pipelines including GitHub, GitLab and Jenkins, plus MCP and agent frameworks, with on premise or cloud deployment.

Learn more

Features

Red teaming for agents and RAG applications, generated attacks covering prompt injection, jailbreaks, PII leaks, business rule violations and insecure tool use, evaluations configured in YAML, CI/CD integration, MCP and agent framework support, and remediation findings delivered in pull requests with ongoing monitoring.

Learn more

Frequently asked questions about Promptfoo

  • How do you use Promptfoo?
    The walkthrough on this page covers 5 steps: 1. Read the introduction docs 2. Run red team setup 3. Choose vulnerability types 4. Connect your pipeline 5. Review and remediate findings.
  • What platforms does Promptfoo support?
    Promptfoo is available on Web App, Linux, MacOS and Windows.
  • What does Promptfoo integrate with?
    Connects to AI apps, agents and workflows through CI/CD pipelines including GitHub, GitLab and Jenkins, plus MCP and agent frameworks, with on premise or cloud deployment.
  • What are the limitations of Promptfoo?
    Configuration is file and command line centric, so there is a learning curve before results appear. Requires engineering time to wire into CI/CD and to interpret findings, which is heavy for small teams. Enterprise features such as remediation reports sit behind a paid tier the homepage does not price.

Status

StatusActive
Views0
Outbound clicks0
Added10/21/2026

Platforms

Web AppLinuxMacOSWindows

Pricing

FreeFreemium