Free checklist
P

promptfoo

Use case: Evals

CLI for testing prompts, agents and RAG with assertions and red-teaming.

promptfoo is an open-source command-line tool and library for evaluating and red-teaming LLM applications. You describe prompts, providers and test cases in a declarative config file, run the evaluation, and get results as a matrix that compares outputs across prompts and models, in the terminal or in a local web viewer. Outputs can be scored automatically with metrics you define, and the same config can run in CI/CD. The stated goal in its docs is test-driven LLM development rather than trial and error.

It suits developers who want a repeatable regression suite for prompts, models and RAG pipelines, and security-minded teams who want to probe an application before it ships. The red-teaming side generates adversarial inputs, such as prompt-injection and jailbreak attempts, runs them against your app and produces a vulnerability report. Providers include OpenAI, Anthropic, Azure, Google, HuggingFace, open-source models such as Llama, and custom API providers, and test logic can be written in Python, JavaScript or any other language. In this directory it is the pre-release testing tool of the evals use case, the counterpart to tracing tools that watch live traffic.

The README states that promptfoo is MIT licensed, and also that the project is now part of OpenAI and remains open source. The docs say evals run locally on your machine and talk directly to the LLM provider. The pricing page lists a free Community edition with all evaluation features and a monthly red-teaming allowance, and custom-priced Enterprise and On-Premise plans for team sharing, SSO and dedicated support; see the official pricing page for the current limits. Installation is a single npm, Homebrew or pip command, or npx for a one-off run.

Like promptfoo? Find tools like it on X.

Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.

At a glance

Category
Evals
Best for
Best memory and evaluation tools for AI agents · Evals use cases
Official site
github.com
Link checked
November 4, 2026
Data
JSON
Visit promptfoo →

How promptfoo fits an agent workflow

In an agent stack, promptfoo belongs to the Evals category, which covers the measurement layer, where agent runs are benchmarked, traced and scored. You will also find it in our curated list: Best memory and evaluation tools for AI agents. Other Evals entries worth a look alongside it include DeepEval, Langfuse and Arize Phoenix.

promptfoo alternatives

All Evals tools → · Best memory and evaluation tools for AI agents

FAQ

Is promptfoo open source?

Yes. The README says promptfoo is MIT licensed and open source. It includes evaluation features and can be run locally or self-hosted. See the official site for current red-teaming limits.

How do I set up promptfoo?

Install it with npm, Homebrew or pip, or run it with npx. Then run promptfoo init --example getting-started to create a sample config, set an API key for your model provider as an environment variable, and run promptfoo eval followed by promptfoo view to open the results in the web viewer. The Getting Started guide also covers a CLI walkthrough and a web-based setup.

Can promptfoo test prompt injection and other security issues?

Yes. Its red-teaming mode generates adversarial inputs, including prompt-injection and jailbreak attempts, runs them against your application and reports the vulnerabilities it finds. The red-teaming guide describes running this before deployment and in CI/CD.

What are alternatives to promptfoo in this directory?

For evaluation frameworks, see DeepEval, Ragas, Inspect AI and OpenAI Evals. If you also want production tracing and prompt versioning, look at Langfuse or Braintrust. Compare their pages to see which fits your stack.

Get new agent tools and tips as they're added

Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.