Lattice
Skip to content

promptfoo

librarySelf-hostedpromptfoo.dev

promptfoo is a self-hosted library in the Evaluation & Observability section of Lattice. Declarative red-teaming and regression tests for prompts and agents.

By Facts verifiedmethod

Licence
MIT
Language
TypeScript
Cost
free
Owned by
Production & Governance

Use promptfoo when

Declarative red-teaming and regression tests that run in CI.

Skip promptfoo when

You need a managed UI rather than a test runner.

The only way to know whether any of the above works. See every evals tool.

Badge this entry
Lattice badge: promptfoo verified 2026-09
[![promptfoo on Lattice: verified 2026-09](https://lattice.kunjshah.in/evaluation-observability/promptfoo/badge.svg)](https://lattice.kunjshah.in/evaluation-observability/promptfoo)

Rules of thumb

  • Build the eval set before tuning anything. Every later decision in the stack is only as good as the measurement behind it.
  • Trace every production call with its prompt, model and output. You cannot fix a failure you cannot replay.
  • Grade with code where you can and with a model where you must. A model grader needs its own spot-checks against human labels.

Quick answers

Is promptfoo open source?
Yes. promptfoo is open source under the MIT licence. It is free to use.
What are the alternatives to promptfoo?
The closest alternatives to promptfoo are DeepEval and garak.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

Compared in

Reading on evals

Alternatives to promptfoo

compare 2 →

Listed as an alternative to

  • DeepEval
  • Evidently AI

Also in evals

  • LangSmith
  • Braintrust
  • Arize Phoenix
  • Langfuse
  • DeepEval
  • Helicone
  • Weights & Biases
  • OpenTelemetry
  • Vellum
  • Gentrace
  • Opik
  • Evidently AI