Skip to content

promptfoo

CLI and library for testing and red-teaming LLM apps, run locally or in CI

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

81

Health

Thriving

Overview

Stars

27,617

Last commit

today

Nov 2026

Repository age

3 years

since Apr 2023

Latest version

code-scan-action-0.2.3

Nov 2026

Contributors

–

14 active in 90 days

Releases

25

last 12 months

Language

TypeScript

Promptfoo is a command-line tool and library for evaluating prompts, models and LLM-based applications. You define test cases and checks, run them against one or more providers, and view the results side by side. It also includes red teaming and vulnerability scanning, and it can produce security reports.

It is written in TypeScript and installs through npm, Homebrew or pip, or runs through npx without installing. A Docker image is available. Evals run locally, so your prompts stay on your machine. It works with providers such as OpenAI, Anthropic, Azure, Bedrock and Ollama, and you can plug in any LLM API or programming language.

You can wire checks into CI/CD and use code scanning to review pull requests for LLM-related security and compliance issues. Results can be shared with your team. The project is MIT licensed and is now part of OpenAI, which says it remains open source.

It does not replace one specific commercial product. It fits teams that would otherwise pay for hosted LLM evaluation or AI security testing services.

Who it's for

Developers shipping LLM features

You can write repeatable evals and compare prompts and models before each release.

Skip if: You only need a quick manual check of a single prompt in a chat window.

Security teams reviewing AI agents

Red teaming and vulnerability scanning probe an app for weaknesses and produce reports.

Skip if: You need a managed service with a vendor running the tests for you.

Teams with CI pipelines

Evals and PR code scanning can run automatically on every change.

Skip if: Your team does not use CI or the command line.

The problem it solves

LLM apps change behavior when prompts or models change, and trial and error does not catch regressions or security holes. Promptfoo gives you repeatable evals and red-team scans you can run locally and in CI.

Strengths

  • Evals run locally, so prompts stay on your machine
  • Compares models side by side across OpenAI, Anthropic, Azure, Bedrock and Ollama
  • MIT licensed, with 25 releases in the last year
  • Installs via npm, Homebrew or pip, or runs with npx
  • Code scanning reviews pull requests for LLM security issues

Trade-offs

  • Command-line first; you work with config files and a local results viewer
  • Most providers need your own API keys and usage costs
  • Now owned by OpenAI, which may matter for your vendor choices

Self-host promptfoo

Self-hostable
Yes
Kubernetes
Helm chart available

Quick start

npm install -g promptfoo
promptfoo init --example getting-started

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is promptfoo free?

Yes. It is MIT licensed and open source. You pay only for the LLM provider APIs you call.

Can I self-host it?

Yes. It runs on your own machine through the CLI, and a Docker image is available.

Do my prompts leave my machine?

Evals run locally, so your prompts are not sent to promptfoo. They go only to the model providers you configure.

How do I install it?

Use npm, Homebrew or pip, or run it with npx without installing.

Similar tools in AI security and guardrails

garak

AI security and guardrails

Command-line scanner that probes LLM apps for jailbreaks, leaks and prompt injection

10k 1.5k today Thriving Apache-2.0

aulite

AI security and guardrails

Self-hosted proxy that audits AI API traffic for EU AI Act and GDPR risks

198 5 months ago Dormant BUSL-1.1

PasteGuard

AI security and guardrails

Self-hosted proxy that masks PII and secrets before prompts reach AI providers

840 50 yesterday Thriving Apache-2.0

agent-safe-pipeline

AI security and guardrails

Open-source gateway that authorizes AI agent actions before they run

661 57 yesterday Thriving Apache-2.0

Adrian

AI security and guardrails

Runtime security monitor that checks AI agent actions and reasoning for attacks

599 97 34 days ago Slowing Apache-2.0

aifw

AI security and guardrails

415 3 30 days ago Slowing Unknown