Skip to main content
← Safety

promptfoo

promptfoo
Open source MIT Terminal CI eval Local Multiple models 8 axes checked Active Checked 2026-11-06

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

promptfoo is an evaluation and red-team tool in the terminal. Officially an…

How you use it

Local / self-hosted · CLI

Licence / commercial use

Open licence

Read the original licence before commercial use
Mainland China

Direct in mainland · Not checked

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • Configuration surface for local models behind OpenAI-compatible endpoints
  • Distributed execution and checkpointed restarts
  • Whether an MCP server is provided
  • Data retention and training terms of the hosted promptfoo.app
  • Team, RBAC and audit capabilities on the hosted side
  • Behaviour of red-team plugins beyond what the official page states
English summaries and interface labels are available. Detailed source notes below are currently in Chinese.

promptfoo is an evaluation and red-team tool in the terminal. Officially an open-source CLI and library for evaluating and red-teaming LLM apps; artefacts stay local and you bring your own model keys.

When to use it, when not to

Fit: teams managing evals as code assets: one YAML defines many prompts, models and cases, one command produces a comparison matrix, and builds fail in CI below threshold. Not fit: needing a hosted console for long-term dashboards, or vendor-run compliance audits. It also has a red-team surface, but this entry records supported attack plugins and vulnerability classes, not scores or pass rates.

China availability domestic / direct access / CAC filing · snapshot 2026-11-06

Origin
foreign-made the official repository and docs domains are on record today (promptfoo.dev and github.com/promptfoo); the entity and place of incorporation were not item-verified, recorded as foreign.
Direct access
direct OK seven docs pages on www.promptfoo.dev fetched 200 today; github.com repository and releases HTML pages failed to fetch (taken from the official GitHub API instead), and npmjs.com returned 403.
CAC filing
filing unknown:the filing registry was not searched today; whether an open-source CLI falls under filing scope is unverified — listed under unknowns.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

8 questions, one table

8 questions, each comparable item by item with its peers.

Model & openness

Bring-your-own keys throughout: the intro page was on record the same day as supporting OpenAI, Anthropic, Azure, Google, Hugging Face and open models such as Llama, stated as BYOK with API keys. The exact configuration surface for local models behind OpenAI-compatible endpoints was official docs do not itemize every sub-detail. The evaluator ships no vendor model; judge calls run against the account you configure.

Where it runs

Terminal-first: npx promptfoo init to start, eval to run, view to serve a local results page (all on record the same day), with configuration in promptfooconfig.yaml and local runs stated as requiring no login. A hosted viewer at promptfoo.app also appears on that page, which states shared links are private to your organisation; hosted-side details are not itemized in official docs.

Local files

Reads and writes stay on your machine: configuration, test cases and result artefacts live in local directories and the viewer renders local files (on record); test data may come from CSV or JSON, or from custom functions. The platform does not pick up implicit context beyond what you point it at.

Tasks after shutdown

Evaluation runs as a local batch process; caching, concurrency and hot reload are on record, as is failing the build when quality thresholds are not met in CI. Resuming after shutdown does not apply. Distributed execution and checkpointed restarts are not on record and are treated as unknown.

Tools & extensions

Its extension surface, as the called side, is provider configuration, assertion types and custom functions; the documentation index was on record the same day including CI and code-scanning (GitHub Action) integration pages, and results can be posted to PR comments. Whether promptfoo itself provides an MCP server is not stated in what was captured, so it is recorded as unknown.

Context & memory

Evaluation context is entirely defined by the configuration file: a matrix across prompts x models x test cases (matrix views on record); expectations can come from a CSV __expected column or custom functions. Cross-session memory is not part of what this class of tool does.

Permissions & limits

MIT licensed (metadata on record). Local execution plus your own keys means model spend and egress sit in your account (BYOK on record); the official CI page recommends storing keys as encrypted secrets. Retention and training terms for the promptfoo.app hosted side were not captured, so they remain unknown.

Best for

Fits teams that want evaluation in the repository, one command to compare many prompts against many models, and a CI threshold that blocks merges. Does not fit anyone needing a hosted console as a long-term metrics dashboard, or vendor-run compliance auditing. This site records the assertion types and red-teaming surface only, never scores produced by the tool, and draws no ranking.

Licence and terms of use

MIT (per official repository metadata fetched through the GitHub API today, spdx MIT; the LICENSE file body and the official changelog page could not be fetched today, so clause wording is recorded as unknown).

Top misconception

  • 把「自带评测能力」当成自带模型。相似度与 rubric 类断言都调你配置的服务,key 与用量在你账上(当日在册)
  • 把红队页当成安全评分。官方在册的是攻击插件与漏洞类别面,本档不采通过率也不排名
  • 把本机 viewer 当成 SaaS。promptfoo.app 是可选面,评测与产物默认留在本机(当日在册)

Evidence sources

Checked 2026-11-06,Content updated 2026-11-06。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
docspromptfoo · docs intro (self-described open-source CLI and library for evaluating and red-teaming LLM apps; assertions include determinism, similarity and JSON validity and LLM-rubric; BYOK across many providers; 200 direct on 2026-11-06)https://www.promptfoo.dev/docs/intro/
docspromptfoo · assertions and expectations docs (equals/contains/regex/json/sql/latency/cost; llm-rubric/factuality/similarity; CSV __expected and custom functions; 200 direct on 2026-11-06)https://www.promptfoo.dev/docs/configuration/expected-outputs/
docspromptfoo · getting started (npx promptfoo init / eval / view, promptfooconfig.yaml, no login needed locally, OPENAI_API_KEY; 200 direct on 2026-11-06)https://www.promptfoo.dev/docs/getting-started/
docspromptfoo · local viewer (viewer command and result charts; promptfoo.app shared links private to your organisation; 200 direct on 2026-11-06)https://www.promptfoo.dev/docs/usage/web-ui/
docspromptfoo · CI integration (keys as encrypted secrets, fail the build below thresholds, results to PR comments; 200 direct on 2026-11-06)https://www.promptfoo.dev/docs/integrations/ci-cd/
docspromptfoo · red-teaming page (generated attacks and plugin surface, jailbreak-class checks; no score conclusions adopted by this site; 200 direct on 2026-11-06)https://www.promptfoo.dev/docs/red-team/
docspromptfoo · documentation index (caching, red-team configuration, code scanning and GitHub Action entries on record the same day)https://www.promptfoo.dev/llms.txt
repopromptfoo/promptfoo · repository metadata (GitHub API on record 2026-11-06: MIT, last push 2026-11-06, official site promptfoo.dev)https://api.github.com/repos/promptfoo/promptfoo
changelogpromptfoo/promptfoo · releases (via the official GitHub API on record: 0.125.1 published 2026-10-25; the HTML releases page itself failed to fetch)https://api.github.com/repos/promptfoo/promptfoo/releases/latest

Test notes

This entry has not completed measured runs: no pass rates, no attack success rates, no latency or cost figures. Everything above is organised from the official pages fetched on 2026-11-06, and the gaps are listed separately rather than filled by inference.

变更记录说明

本对象没有可直接抓到的 changelog 页。/changelog 与 /docs/changelog 当日均 404。变更记录以官方仓库 Releases 为准。

当日经 GitHub API 在册最新为 0.125.1(2026-10-25),仓库最近推送日期为 2026-11-06。因此 lifecycle 记 active。

Related entries

  • LangfuseSame line: Arize Phoenix (in evaluation and observability); this entry states only what its own official sources support.
  • BraintrustSame line: Content Credentials(内容凭证) (in evaluation and observability); this entry states only what its own official sources support.
  • OllamaSame line: OpenAI Evals (in evaluation and observability); this entry states only what its own official sources support.
  • Arize PhoenixSame layer
  • Content CredentialsSame layer
  • OpenAI EvalsSame layer
  • LangChainOther layer · Frameworks & runtimes

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
garakLocal / self-hostedOpen licence8 questions checked
Active
garak is an LLM probe scanner that runs in your own terminal (NVIDIA and
InspectLocal / self-hostedOpen licence8 questions checked
Active
Inspect is an open evaluation framework from the UK AI Security Institut
Arize PhoenixLocal / self-hostedCommercial terms8 questions checked
Active
Phoenix is an open-licensed observability and evaluation platform that r

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.