AI and models · Edition No. 26 · 20 Sep 2026

promptfoo/promptfoo

A test runner for prompts: you describe what a good answer looks like once, and it grades every model and every prompt against that description.

← AI and modelsRead the whole edition →

25.2k stars · MIT · 0.123.1, read from /releases/latest, shown as '18 Sep' with no year and confirmed by the changelog heading (2026-09-18); the npm registry agrees at 0.123.1. Code pushed 17 September 2026, proved via ungh.cc · Track this in Scout

A test runner for prompts: you describe what a good answer looks like once, and it grades every model and every prompt against that description.

▶Repo detailsthe review · specs · pros & cons · install

What it is

A command-line tool that reads a small settings file listing your prompts, your test cases and your checks, then runs them across more than sixty model providers and shows the results side by side. It also has a mode that attacks your own AI feature, looking for ways to make it misbehave.

What it is good for. Anyone whose product depends on a model behaving. Right now, changing a prompt is a change with no test behind it, which is the one part of a modern product that nobody tests. This makes it ordinary: write the check, run it, see the number. If a model's output is the product — a summary, a classification, a set of extracted fields — then the quality of that output is the product. This is the tool that tells you whether a change to the prompt helped.

Stars25.2k
LicenceMIT
Latest0.123.1, read from /releases/latest, shown as '18 Sep' with no year and confirmed by the changelog heading (2026-09-18); the npm registry agrees at 0.123.1. Code pushed 17 September 2026, proved via ungh.cc
Good
  • MIT, runs on your own machine, and the settings file is plain text you keep in your project.
  • It compares providers directly, which is how you find out that a cheaper model is good enough for one of your steps.
  • It fits into an automatic build, so a change that makes answers worse can fail before it reaches anyone.
Watch for
  • Every run costs money at each provider you test, and comparing five models costs five times as much.
  • The checks are only as good as you write them. "Is the answer sensible" is not a check; "does it contain exactly five subtopics" is.
  • The red-teaming half is a large subject on its own, and it is easy to start there and never write an ordinary test.
Similar repositories
Install
npx promptfoo@latest init --example getting-started
cd getting-started
export OPENAI_API_KEY=sk-your-key-here
npx promptfoo@latest eval
npx promptfoo@latest view      # opens the results in your browser
Screenshots
promptfoo/promptfoo: GitHub preview cardpromptfoo/promptfoo: Screenshot 1promptfoo/promptfoo: Screenshot 2promptfoo/promptfoo: Screenshot 3

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.