Skip to main content
Evaluation & ObservabilityStart here

promptfoo

promptfoo / promptfoo

A config-driven comparison harness for prompts, models and agents across many providers.

27.4k stars 2791 forks TypeScript Language MIT License Last push 2026-11-18

Why choose it

  • YAML configs make experiments reproducible and reviewable.
  • Side-by-side outputs expose model and prompt differences quickly.
  • Can run red-team and assertion checks in the same harness.

Not for

You need a hosted dashboard as the primary interface.
You only test one model and one prompt manually.

Minimum setup

  1. Create a config with two prompts and two models.
  2. Run the same test cases and diff the outputs.
  3. Add an assertion and a cost column before choosing a winner.

Dependencies and cost

Check runtime, model weights and external service dependencies in the README.

License and usage boundaries

Code is MIT; model weights, training data and generated content may have separate terms — check each before commercial use.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • DeepEval — Start here,Test LLMs like unit tests: assertions, metrics, datasets and CI integration.
  • Ragas — Start here,A RAG evaluation library covering retrieval relevance, answer faithfulness and context recall.
  • Langfuse — Production,Tracing, evaluation, prompt management and cost analytics for LLM applications, available self-hosted.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.