mrkeyoor.comAsk

promptfoo/promptfootested 30 Nov 2026commit 2509c60

promptfoo review

Our Promptfoo source installation took 133 seconds and 3,391 MB, then its build and test commands failed; the separate quickstart successfully created an example project.

  • README install 104 s
  • Install 133 s
1,080/1,327passed, run exited non-zero
  • Build failed
  • 2,290 packages
LLM Toolsevaluationupdated 30 Nov 2026
+180stars / 7d

Promptfoo is a command-line tool and library for comparing AI model responses against saved cases and testing applications with hostile inputs. It puts prompts, providers and output checks in a configuration you can keep beside your application code.

Verdict

Our Promptfoo source installation took 133 seconds and 3,391 MB, then its build and test commands failed; the separate quickstart successfully created an example project. Use it if you want saved evaluation cases and model comparisons reviewed alongside code. Skip it if you need cost assertions to enforce a spending ceiling: the guide says they check completed responses.

Promptfoo infographic: compare AI model responses and test hostile inputs, plus our test result and who it suits
Tested 30 November 2026: the README command ran as written. Before that: 1,080 of 1,327 source tests passed; npm install took 104 s.

We ran it

Lab card: what happened when we ran promptfoo
Lab card from our sandbox run
Screenshot of promptfoo (promptfoo.dev)
promptfoo.dev
Install✓ · 133s2290 packages · 3391 MB
Build✗ · 57s
Tests✗ · 29s1080 passed · 1 failed · 3 skipped of 1327 (vitest)
Known vulns00 critical · 0 high · 0 moderate · 0 low (npm audit)
Repo6069 files~1,184,776 lines of source · 246.2 MB · 19 CI workflows · Dockerfile · tests dir

Answers from our run

Does promptfoo build from source?

Dependencies installed in 133 seconds (2290 packages), and the build failed. We cloned commit 2509c60 into a clean Debian container with 3 CPUs and no project-specific setup.

Do promptfoo's tests pass?

No. The project's own test command finished in 29 seconds and reported 1080 passed, 1 failed, 3 skipped (vitest).

Does promptfoo have known vulnerabilities in its dependencies?

npm audit found none in the dependency tree at the time of our run.

Who should not use promptfoo?

Teams expecting cost assertions to impose a spending cap: the guide says they check responses after completion.

What are the alternatives to promptfoo?

DeepEval, Langfuse, Garak. Our Promptfoo source installation took 133 seconds and 3,391 MB, then its build and test commands failed; the separate quickstart successfully created an example project.

Setup5/5In our 2026-11-30 run it installed as the README says in 104 s and the README’s “Quick Start” example ran unedited.Editor’s note: The package quickstart created its example; the separate source build and tests failed. A complete provider-backed evaluation was not assessed.
Docs5/5The README has an install section (“Quick Start”) and usage in the same section, and its example ran as written in our 2026-11-30 run.Editor’s note: Introductory, CLI, SDK and wrapper documentation was read; the deployment and replay instructions were not exercised through a complete workflow.
Community5/5Last push on 2026-11-30, 27,843 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Sampled issues show both confirmed fixes and exchanges ending without confirmation; this sample cannot establish support capacity or response-time expectations.
Maturity3/5Latest release code-scan-action-0.2.3 on 2026-11-18 (pre-1.0), repository created 2023-04-28 and its test suite did not pass in our sandbox (1,080 of 1,327 passed).Editor’s note: Repository checks and a working initialization are recorded; production reliability, grading quality and attack coverage were not measured.

How we score

Discussed on

  1. hnPromptfoo Is Joining OpenAI28 points
  2. hnShow HN: Automated red teaming for your LLM app23 points
  3. hnShow HN: Promptfoo – CLI for testing & improving LLM prompt quality14 points
  4. hnOpenAI to Acquire Promptfoo7 points
  5. hnHow to replicate the Claude Code attack with Promptfoo6 points

Who it’s for

Application teams that want prompt and model changes reviewed alongside saved evaluation cases.
Developers combining exact output checks with model-graded judgments.
Security teams prepared to configure attack generation and inspect the responses it produces.

Who it’s NOT for

Teams expecting cost assertions to impose a spending cap: the guide says they check responses after completion.
Python-only environments that cannot add Node: the pip package still requires Node.js 22.22.0 or newer.
Teams treating safe mode as an execution sandbox: the CLI documents only a limited guard.

Setup reality

Our November 30, 2026 source run at 2509c60 installed dependencies in 133 seconds: 2,290 dependencies and 3,391 MB on disk. The build failed with exit 1 after 57 seconds. Tests failed with exit 1 after 29 seconds, with Vitest reporting 1,080 passed, 1 failed and 3 skipped of 1,327. npm audit reported 0 known vulnerabilities. A separate package quickstart created the example project successfully.

A real evaluation needs prompts, cases, a configured provider and usually provider credentials. Hosted providers receive the requests; red-team generation and result sharing have separate destinations. The recorded quickstart stopped at initialization, before a provider-backed evaluation.

The source sandbox specified 3 CPUs, 8 GB RAM and image lab-node:22; the actual runtime versions require raw toolchain logs. Current documentation requires Node.js 22.22.0 or newer, including for the pip wrapper. The build tail shows SIGTERM, and the test tail names agentWorkspace.test.ts, without showing enough to diagnose their causes.

Our Promptfoo source build failed after 57 seconds, while a separate quickstart run successfully created the example project. Use it if you want saved evaluation cases and model comparisons that your team can review alongside code. Skip it if you need cost assertions to enforce a spending ceiling: they grade completed requests, after the spending has happened (getting-started guide).

What people use promptfoo for

Promptfoo runs saved prompts against configured models or applications, then checks or displays the responses; its introductory documentation describes both quality evaluations and adversarial testing. Red teaming means deliberately trying hostile inputs to find unwanted behavior. RAG, or retrieval-augmented generation, means giving a model retrieved material to use in its answer. Those jobs need different cases, even when you run them through the same tool. The Promptfoo GitHub repository is promptfoo/promptfoo; the getting-started guide is the entry point for Promptfoo documentation. The README identifies Promptfoo as part of OpenAI and says it remains MIT licensed. Provider support extends beyond OpenAI, including Anthropic, Azure, Google and custom endpoints (supported-provider overview).

Who used it What they did What came back
Rohit Kshirsagar Compared Promptfoo and DeepEval on outputs from a technical-support RAG pipeline Reported 47 disagreements across 200 outputs. His Promptfoo configuration caught 23 format or injection-pattern violations and passed 24 of the 31 outputs DeepEval flagged for faithfulness.
GitHub user FJLopezGarcia Combined Azure models with a Hugging Face bias classifier Got the eval running after explicitly supplying HF_API_TOKEN, then questioned truncated responses and why high bias scores passed.
GitHub user tonimatas1 Deployed on Railway with a persistent volume Reported that evals survived deployments, while prompts, datasets and sharing had defects. A maintainer announced fixes in 0.50.1.
GitHub users gregnuttall and zeqiancao Connected a custom Go provider inside an existing module and CI pipeline Encountered module discovery and CallApi compilation failures. After several attempts, zeqiancao confirmed resolution without workarounds and intended to update to 0.107.7.

Kshirsagar's comparison is useful because it shows how two suites can disagree on the same answers. His chosen metrics and assertions differed. Treat the result as a reason to inspect which failures your suite rewards or misses, rather than a league table for hallucination detection. A format check asks whether an answer obeys a contract; a faithfulness check asks whether its claims follow from the retrieved material. You may need both.

What happened when we ran it

Our November 30 quickstart run got promptfoo init --example getting-started to exit 0 and write the example project. The recorded task was that initialization command, at commit 2509c605ed09, in an unprivileged container configured with 2 CPUs, 4 GB RAM, no published ports and no secrets (run configuration).

The sequence matters. The clone completed, the global npm installation succeeded, and the installed CLI reported version 0.126.0. Its help command also exited 0. Initialization then printed a directory path and told us to enter it and run promptfoo eval. That instruction marks the stopping point: creating an example and asking a model to answer its cases are separate actions. The sandbox teardown completed successfully.

The separate source run used commit 2509c60 on November 30, 2026, with 3 CPUs, 8 GB RAM and configured image lab-node:22. Here are the recorded source-workflow measurements, distinct from the package quickstart:

Source step Recorded outcome Time
npm install Succeeded; 2,290 dependencies recorded, 3,391 MB on disk 133 seconds
Build Failed with exit 1 57 seconds
Tests Failed with exit 1; Vitest reported 1,080 passed, 1 failed, 3 skipped of 1,327 29 seconds
npm audit 0 known vulnerabilities: 0 critical, high, moderate or low No timing recorded

That is the contributor checkout's dependency footprint, separate from the checkout itself: 6,069 files, approximately 1,184,776 source lines and 246.2 MB. The scan found workspaces, a tests directory, a Dockerfile and 19 CI workflow files. These describe the repository and available checks, rather than a completed application evaluation.

The build printed an intermediate completion message. Then tsdown exited with SIGTERM and the app build was also terminated. The app command shown was tsc -b && vite build. A completed subtask didn't make the overall build pass. The test tail names test/providers/agentWorkspace.test.ts as the file with one failed test, alongside the passing and skipped counts above.

Where people get stuck: a running eval can still have a broken viewer

In issue #1873, bwhartlove reported an empty Evals tab in the self-hosted Docker UI on 0.92.3, even though evaluations existed and could be opened through the datasets tab. Clearing browser storage didn't repair the main page. Maintainers suggested sharing configuration for programmatic uploads; the exchange ends without a successful upload confirmation. Don't interpret an empty landing page as proof that every evaluation disappeared.

Report What the user encountered Resolution shown in the thread
tonimatas1, #595 Persistent evals, missing prompts/datasets endpoints and the wrong share URL prefix Maintainer released fixes in 0.50.1 and changed the build argument to NEXT_PUBLIC_PROMPTFOO_BASE_URL.
zeqiancao, #3057 Go module discovery followed by a redeclared CallApi Reporter confirmed the later fix worked without workarounds after PR #3414; earlier attempts hadn't settled it.
bennibbelink, #1611 Reverse-proxy subpath failed after support was announced in 0.86.0 Rebuilding with relative Vite assets corrected asset requests but left a 404 page; discussion moved to a call.
rrbanda, #1252 Container entrypoint couldn't create the web app's environment file Maintainers updated images and linked deployment resources; no final reporter confirmation appears.

These are historical deployment reports, not a list of defects reproduced on 0.126.0. Their useful lesson is procedural: include opening a saved eval, finding its prompts and dataset, and following its share URL in your deployment acceptance check. A successful container startup tests less than that. The Go thread is especially instructive because an early confirmation was followed by more failures before the final confirmation. Read the last outcome, not just the closed label.

More cases mean more calls, and a cost assertion won't stop them

Promptfoo's getting-started guide says cost and latency assertions check completed responses. They do not cap spending or stop slow requests. If you're putting an evaluation into continuous integration, where changes automatically trigger checks, decide how many cases and providers it may call before you make it routine. Add the grading model to that calculation when you use model-graded assertions.

For red teaming, the troubleshooting guide defines numTests per plugin and says strategies expand seeds into attack attempts. A seed is a starting test input. A strategy can turn it into multiple approaches or conversation paths, so the seed count is the wrong number to treat as a total request budget. The same guide lists refusals, rate limits and missing keys as reasons generation can return fewer cases than requested. Record generated seeds and completed attempts separately.

You can control evaluation concurrency with --max-concurrency, and the CLI offers case filters and repeat controls. My suggested release check starts with cases tied to an actual application failure, then grows when the team can explain what each added case catches. Keep a separate human-reviewed set for judging whether a score increase improves the application. Optimizing only the score you've already taught the system to pass gives you a narrower answer.

Local execution still has several data destinations

Promptfoo runs evals on your machine and calls the configured providers; red-team generation may use hosted services. Local execution describes where the runner works. Your provider choices determine where evaluation requests go. That distinction matters before you put customer messages, internal documents or system prompts in a dataset.

Path Where the documentation says it goes Decision for you
Evaluation Configured model or application provider Select endpoints permitted to receive the test inputs.
Attack generation May use hosted generation services Choose hosted, local or separately hosted generation deliberately.
Result sharing Cloud account or self-hosted server Review the destination before enabling sharing.
Python-wrapper telemetry Usage collection, including a stored login email when present Use the documented telemetry opt-out if required.

The Node package guide requires a Cloud account or self-hosted server for shareable URLs. For the wrapper installed through pip, its README lists telemetry fields and PROMPTFOO_DISABLE_TELEMETRY=1. Those are different flows from the model request itself. The wrapper's word “anonymous” deserves scrutiny because that same section says a previously stored login email is also sent.

On a managed network, Promptfoo documents that corporate policies may block its adversarial-generation service. Its options include an approved proxy or allowlist, local generation, a separate service or manual prompts. Don't make network access to hosted attack generation an unstated prerequisite for your internal security workflow. Also, the CLI labels safe mode a limited guard, not a sandbox: rejecting inline JavaScript assertions and shared transforms is narrower than isolating arbitrary configuration execution.

Saved SDK results need their code and data to replay

Function transforms are not persisted in stored configs, according to the Node package documentation. A transform changes an output or input before the evaluation uses it. If your custom function extracts a field before grading, retaining only the displayed result leaves out part of the procedure that produced the grade.

For a reproducible SDK workflow, retain the package version, configuration, provider settings and test inputs together. The documentation recommends string expressions or file references when transforms must survive storage. It also says SDK test-file and generator inputs stay as source references in saved configs, so keep those referenced files. Set basePath deliberately if you load local references from another directory. The saved absolute directory is another detail to account for when moving results between machines (Node API usage).

Environment loading has a timing boundary too: the invocation's envPath loads for config/provider resolution, while config-defined commandLineOptions.envPath loads afterward. That difference can explain why a value you expected during configuration isn't there yet, without assuming a provider outage. Reusable Node calls keep environment-file values within the call instead of changing the host's process environment; custom JavaScript providers should consume the documented templated configuration values.

The Python package is a wrapper around the npm tool and still needs Node.js 22.22.0 or newer. Its normal route invokes npx promptfoo@latest, unless a global installation is available, and its README describes first-run downloading. Pinning the Python dependency alone therefore leaves the underlying CLI version open. Use the wrapper's documented version control or a pinned global CLI when reproducibility is the goal.

Promptfoo vs DeepEval, Langfuse, Garak and hosted dashboards

Promptfoo's readable configuration suits a team reviewing evaluation changes in code review; DeepEval describes a Pytest-like workflow, while Langfuse documents tracing application calls alongside evaluation. Those are useful selection criteria before you compare scores.

Alternative Why consider it What the comparison supports
DeepEval You want evaluation logic in Python tests Csorba's review contrasts Python expressiveness with Promptfoo's readable configuration; Kshirsagar's corpus comparison shows configuration-dependent disagreements.
Garak You want to investigate known exploit coverage Promptfoo's own comparison positions Garak around known exploits and Promptfoo around contextual application attacks. This is vendor positioning.
LangSmith Hosted monitoring and team workflow are the main requirement DataCamp's tutorial identifies it with production monitoring; that is workflow guidance, not a measured winner.
Braintrust You want a hosted team dashboard DataCamp describes Braintrust as a team-dashboard option. Choose on the collaboration job you need to do.
Custom pytest scripts Your checks need joins, loops or custom parsing Csorba places Promptfoo between bespoke tests and hosted platforms. Keeping complex logic in code can be easier to maintain.

For Promptfoo vs Langfuse, ask whether your immediate task is running a saved comparison or investigating what happened inside an application request. Langfuse's README documents tracing retrieval, embedding and agent actions. That gives you a concrete reason to evaluate it, without treating the two tools as mutually exclusive. For Promptfoo vs Garak, start with the attack surface you actually own, then try matching cases rather than accepting the vendor's category labels as coverage measurements.

What the other reviews get wrong

AI Testing Guide's review describes a cost assertion as validating that spending stays below a threshold, but Promptfoo's guide explicitly says those assertions don't cap spending. The distinction changes whether that check satisfies your budget requirement. The same review's red-team example treats a configured seed count as a total case count; the generation guide explains expansion per plugin and strategy.

Kshirsagar's Medium comparison describes Promptfoo as deterministic contractual enforcement that doesn't interpret output. That fits the narrow assertion style he discusses, while Promptfoo's examples also include model-graded rubrics and RAG faithfulness. His observed disagreements are worth reading. Turning them into a tool-wide inability to judge meaning goes beyond his configurations.

DataCamp's tutorial says external calls go only to model APIs. Its email-writing example is a specific workflow; the official introduction separately allows hosted attack generation, and the pip wrapper documents telemetry. AI Testing Guide and PE Collective also list a monthly Team price, while Csorba describes a different commercial structure. Those conflicting price tables aren't a sound basis for a procurement budget. The MIT-licensed code and provider usage charges are separate questions.

The README's privacy sentence needs a narrower reading

The README says prompts never leave your machine, which is too broad for configurations using hosted providers. Use the documentation's more precise account of local execution and the separate destinations above. A local runner is useful when you want control over orchestration, but the word “local” alone doesn't answer a security review's data-handling questions.

The language-learning demo lists Node.js 18+. The current Node package guide requires 22.22.0 or newer, as does the wrapper. An older tutorial's runtime prerequisite should not decide the runtime for a new deployment.

Questions people ask

Promptfoo installation through npm needs Node.js 22.22.0 or newer, according to the Node package guide.

How do I install Promptfoo and run my first evaluation?

The getting-started guide uses npm install -g promptfoo, followed by promptfoo init --example getting-started. Enter the generated directory, supply credentials for your chosen provider, run promptfoo eval, then promptfoo view. Our recorded initialization succeeded. For a repeatable team setup, choose a pinned package version rather than silently following latest.

How do I design test sets and run batch prompt regression tests?

Promptfoo runs each configured prompt, model and test case. Put representative inputs and expected behavior in the configuration, include failures you've already seen, and inspect the resulting outputs before you use the pass rate to block releases. The CLI supports filters for rerunning selected cases. Keep data selection separate from deciding what counts as a good answer.

How can I measure whether my prompt actually performs well?

The getting-started examples combine simple assertions with model-graded checks. Use exact checks for exact requirements, such as a required phrase, and a reviewed rubric for judgments such as tone or grounding. The CLI documentation warns that optimization uses the full eval set unless you request a validation split; reserve held-out cases to detect overfitting (optimizer behavior).

What are Promptfoo's capabilities and practical costs?

Promptfoo supports quality evaluation, red teaming, model comparisons and automated CI checks. Provider and grading calls can cost money, and seed expansion changes red-team workload. The README identifies the code as MIT licensed. Get current hosted terms directly from the vendor before budgeting a paid service instead of relying on conflicting review tables.

Should I use Promptfoo or DeepEval for my evaluation workflow?

DeepEval describes itself as similar to Pytest for LLM applications. Consider it when Python tests are where your evaluation logic belongs. Promptfoo's configuration approach suits reviewing prompts, cases and assertions together; Kshirsagar's disagreement report shows why you should compare the actual checks, not tool names.

How does Promptfoo compare with Langfuse?

Langfuse documents application tracing and evaluation. Choose that workflow when inspecting recorded requests and intermediate application actions is the immediate need. Promptfoo's introductory workflow centers on defining cases, executing them and comparing outputs. A trace can help you find a failure that later becomes a regression case.

How does Promptfoo compare with LangSmith?

DataCamp's tutorial associates LangSmith with production monitoring. Its comparison points you toward a workflow decision: monitoring application behavior versus maintaining a local evaluation harness. Use that distinction to shortlist products, then check the hosting and collaboration requirements for your team.

How does Promptfoo compare with Braintrust?

DataCamp frames Braintrust as a team-dashboard option. Promptfoo's Node guide documents optional sharing to Cloud or a self-hosted server. If a shared workspace is the deciding requirement, evaluate that specific path rather than assuming local evaluation results automatically appear in a central dashboard.

How do I measure bias and fairness with Promptfoo?

Issue #657 uses a classifier assertion whose selected label must meet or exceed the threshold. FJLopezGarcia selected “Biased” and asked why high scores passed. That configuration rewards a high score for that label. Decide what pass means before using the result as a release check, and keep a fairness assessment broader than one classifier output.

What does a bias-classifier score of 0.5 mean, and how should I choose a threshold?

The maintainer in #657 calls the classifier output a continuous score and recommends setting thresholds empirically on your own inputs. The example's 0.5 is a threshold choice, not a guarantee that it matches your policy. Include labeled examples on both sides of your intended boundary and inspect which ones the assertion passes.

Does the suggested bias classifier work across languages and measure fairness as well as bias?

The maintainer in #657 says the suggested model was trained on an English dataset. That answer gives you a reason to assess your target languages separately. The reporter's broader fairness question and desired inverse pass/fail behavior end without a completed solution in that exchange.

What we have not tested yet

Our hands-on run stops at generating an example project: we did not execute its provider-backed eval, open its viewer, measure answer quality or run a red-team campaign. No screenshots or known-answer application questions accompany that run. The separate source build's SIGTERM tail doesn't identify the termination cause, and the test excerpt doesn't expose the failing assertion. Its totals don't reconcile every test's disposition, so the reported counts are preserved without inventing results for the remainder.

Actual Node and operating-system versions require the raw toolchain logs; the image label alone cannot confirm them. The zero-vulnerability npm audit is a dated advisory result, not a security review or a guarantee about reachable code. We haven't retested the historical hosting fixes, replayed SDK results across machines, captured network traffic or compared alternatives on a common adjudicated dataset. Current hosted prices, production support capacity and application-level attack coverage remain outside this review's measured findings. The next useful test is your own saved failure case, with the provider, assertion direction and expected answer written down before the run.

Alternatives

ProjectWhat it isPick it when
DeepEvalAn LLM evaluation framework with a Pytest-like interface.Choose it when evaluation logic belongs in Python tests rather than a declarative configuration.
Langfuse gh↗An AI engineering platform with application tracing and evaluation.Choose it when investigating recorded application requests and intermediate actions is the main task.
Garak gh↗An LLM vulnerability scanner.Consider it for known exploit coverage; the contextual-attack distinction here comes from Promptfoo’s own comparison, not our benchmark.

Sources

  1. Promptfoo GitHub repository
  2. Getting started
  3. Local execution and providers
  4. Node package and result replay
  5. Red-team generation troubleshooting
  6. Python wrapper
  7. DeepEval
  8. Langfuse

More llm tools reviews