Promptfoo vs LangSmith (2026): Eval Harness or Platform
Promptfoo vs LangSmith compared on eval style, red-teaming, production tracing, self-hosting, and cost. A clear verdict on when each wins and when to run both.
If you are setting up LLM testing in 2026, the choice often comes down to Promptfoo vs LangSmith - and it is easy to compare them as if they do the same job, when they really do not. This post puts them head to head and shows where the line actually falls. For an eval-tool-to-eval-tool match, see our Promptfoo vs DeepEval comparison; for the observability layer, see LangSmith vs Langfuse.
The short answer
- Promptfoo - pick this if your primary need is a dev-time evaluation and red-teaming harness you run in CI. It is open-source, config-driven, and excels at comparing prompts and models across a matrix and at systematically breaking your LLM app before release.
- LangSmith - pick this if you need full-lifecycle observability including production tracing of live traffic, plus datasets, a prompt hub, and managed evals - especially on a LangChain or LangGraph stack.
- Both - the standard production pattern. Promptfoo as a pre-deploy CI gate; LangSmith as the production observability layer. They cover different stages of the lifecycle.
The rest of this post unpacks that decision in detail.
Deciding factor to pick
Match your priority to the recommendation. This is the Promptfoo vs LangSmith decision in one table:
| Your deciding factor | Pick |
|---|---|
| You want a CI gate that fails builds on bad evals | Promptfoo |
| Red-teaming and security scanning is a priority | Promptfoo |
| You want open-source with zero license cost | Promptfoo |
| You need to trace live production traffic | LangSmith |
| Your app is built on LangChain or LangGraph | LangSmith |
| You want a managed dashboard and prompt hub | LangSmith |
| You want declarative YAML test cases reviewed in PRs | Promptfoo |
| You need pre-deploy evals and production monitoring | Both |
If you only remember one rule: Promptfoo is the dev-time eval and red-team harness, LangSmith is the full-lifecycle observability platform.
What each tool is
- Promptfoo is an open-source, config-driven LLM evaluation and red-teaming tool. You declare providers, prompts, and test cases in a YAML file, run the CLI, and get a side-by-side prompt-by-provider-by-test matrix. It is MIT-licensed, CI-friendly, and ships extensive security and red-team scanning.
- LangSmith is LangChain’s commercial LLM observability and evaluation platform. It provides production tracing, dataset management, a prompt hub, and managed evals, with the deepest automatic instrumentation for LangChain and LangGraph applications.
Promptfoo vs LangSmith: head-to-head
| Dimension | Promptfoo | LangSmith |
|---|---|---|
| Primary purpose | Dev-time eval + red-team | Full-lifecycle observability + eval |
| License model | Open-source (MIT) | Proprietary (commercial SaaS) |
| Lifecycle stage | CI / pre-deploy | Dev through production |
| Production tracing | Not its job | Yes (chains, agents, tools) |
| Red-teaming | Extensive built-in plugins | Limited |
| Multi-model comparison | Best in class (YAML matrix) | Supported |
| Config style | Declarative YAML in repo | SDK + hosted UI |
| Framework fit | Framework-agnostic | Deep LangChain / LangGraph |
| Self-hosting | Runs locally / in CI by default | Enterprise plan only |
| Prompt management | In your repo (YAML) | Prompt hub + versioning |
| Hosted dashboard | Local report (commercial tier for teams) | Managed cloud dashboard |
| Pricing model | Free OSS + optional enterprise tier | Free tier + usage-based SaaS |
| Best for | CI eval and security gates | Production visibility + LangChain teams |
When to choose Promptfoo
Pick Promptfoo when:
- You want a CI gate that compares prompts and models on every PR and fails the build on regressions or red-team findings.
- Red-teaming and security scanning matters - prompt injection, jailbreaks, PII exposure, and other adversarial classes generated automatically against your app.
- Multi-model comparison is central and you want a head-to-head matrix across, say, GPT-4o, Claude, and a self-hosted model from one config.
- You want declarative YAML test suites that live in your repo and get reviewed in PRs like code, including by non-engineers.
- You need open-source with zero license cost and want evaluation to stay entirely in your own pipeline.
- Your stack is framework-agnostic or polyglot and you do not want to adopt a vendor SDK just to run evals.
When to choose LangSmith
Pick LangSmith when:
- You need to trace live production traffic and debug what real users are actually triggering, not just pre-deploy test cases.
- Your application is built on LangChain or LangGraph and you want automatic, deep instrumentation of every chain, agent, and tool call.
- You want a managed dashboard and do not want to run observability infrastructure yourself.
- Your team relies on a prompt hub with versioning, plus datasets and experiments in one ecosystem.
- You want managed LLM-as-judge evals wired to the same datasets and traces.
- You value enterprise support and SLAs from the LangChain organization.
Can you use them together?
Yes, and it is the pattern we deploy most often, because the tools live at different stages of the lifecycle. The split:
- Promptfoo in CI - on every PR, it runs the eval matrix and red-team plugins, comparing prompts and candidate models and failing the build on prompt injection, PII leakage, or a quality regression. This is the pre-deploy gate.
- LangSmith in production - once a release ships, LangSmith traces live traffic, surfaces real-world failures, and feeds interesting production cases back into the datasets that Promptfoo then tests against.
The loop is the point: production traces in LangSmith reveal new failure modes, you codify those into Promptfoo test cases and red-team probes, and the next release ships through a stronger gate. Promptfoo owns “is this safe to ship”, LangSmith owns “what is happening in production now”. For the platform-to-platform alternative on the observability side, see our LangSmith vs Langfuse comparison.
Cost comparison
These two are not a like-for-like cost comparison, because they buy different things.
- Promptfoo is free as open-source (MIT). The only real cost is LLM judge API tokens when you use llm-rubric assertions or red-team plugins, and many assertions (such as
containsorequals) need no judge call at all. There is an optional commercial enterprise tier for SSO, RBAC, and team features. - LangSmith has a free developer tier, then usage-based pricing that scales with trace volume and seats. Convenient and predictable for small teams, but the bill grows with production traffic because you are paying for ingestion and retention of live traces.
For dev-time evaluation alone, Promptfoo is the low-cost option. For production observability, you are paying LangSmith for a capability Promptfoo simply does not offer, so the comparison is about value, not price parity. Standard cost controls apply to both: sample evaluation rather than scoring 100% of traffic, downgrade the judge model where accuracy allows, and set sensible retention windows on traces.
Common pitfalls
- Treating them as direct substitutes - dropping LangSmith for Promptfoo loses production tracing entirely; dropping Promptfoo for LangSmith leaves you with thin red-teaming and no zero-cost CI gate.
- Expecting Promptfoo to monitor production - it is a dev-time and CI tool. It does not sit in your request path collecting live traces, so do not rely on it for production visibility.
- Adopting LangSmith off LangChain - much of its advantage is automatic instrumentation of LangChain and LangGraph; off that stack you lose the main draw and a framework-agnostic option may fit better.
- Running Promptfoo red-team on every commit - it generates fresh adversarial cases and costs judge tokens. Run a regression subset on PRs and a full red-team nightly.
- Skipping sampling on LangSmith evals - scoring every production trace with an LLM judge gets expensive fast. Sample 1-5% of live traffic and set retention windows.
Related reading
- Promptfoo vs DeepEval - eval harness to eval harness, CLI red-teaming vs Python pytest testing
- LangSmith vs Langfuse - LangChain’s managed platform vs the open-source self-hostable observability tool
Promptfoo and LangSmith test and observe how your application behaves. When a regression points at the model rather than the prompt or the pipeline, take it down a layer to model validation and ML model QA at aiml.qa.
Getting help
We deploy Promptfoo CI gates and LangSmith production observability for Series A-C AI startups running live LLM and agent applications. A genai.qa Readiness Assessment delivers a working eval gate, a tracing pipeline, calibrated thresholds, and an audit-grade report in 2-3 weeks. Engagements from AED 15k.
Frequently Asked Questions
Promptfoo vs LangSmith: which should I use?
Use Promptfoo if your primary need is a dev-time evaluation and red-teaming harness you run in CI - it is an open-source, config-driven CLI that compares prompts and models from a YAML file and ships strong security scanning. Use LangSmith if you need full-lifecycle observability, including production tracing of live traffic, plus datasets, a prompt hub, and managed evals, especially on a LangChain or LangGraph stack. They are not direct substitutes: Promptfoo is a CI gate, LangSmith is a platform with production visibility. Many teams run Promptfoo in CI and LangSmith for production traces.
Is Promptfoo a good LangSmith alternative?
Only partially. Promptfoo replaces the dev-time evaluation slice of LangSmith with an open-source, CI-friendly CLI, and it does red-teaming far better. But Promptfoo does not give you production tracing, a hosted dashboard for live traffic, or a managed prompt hub, which are core to LangSmith. If all you wanted from LangSmith was pre-deploy evals and prompt comparison, Promptfoo is a strong open-source swap. If you need production observability, Promptfoo does not cover that job and the two end up complementary.
Can I self-host Promptfoo or LangSmith?
Promptfoo is open-source under the MIT license and runs entirely locally or in your CI by default, so there is nothing to self-host - it is just a CLI and config in your repo, with an optional commercial enterprise tier for SSO and team features. LangSmith is primarily a managed SaaS; LangChain offers a self-hosted and hybrid enterprise deployment, but it sits behind an enterprise plan rather than a free community option. If keeping evaluation fully in your own pipeline at zero license cost is the requirement, Promptfoo is the simpler path.
Does Promptfoo or LangSmith handle production monitoring?
LangSmith does; Promptfoo does not. LangSmith captures live traces from your running application, including chains, agents, and tool calls, and lets you inspect, score, and debug real user traffic over time. Promptfoo is a dev-time and CI tool - it evaluates prompts and models against test cases you define, but it does not sit in your production request path collecting traces. If you need to know what is happening with real users in production, that is LangSmith's job, and Promptfoo runs upstream as a pre-deploy gate.
Which is cheaper: Promptfoo or LangSmith?
Promptfoo is cheaper for pure evaluation because the tool is free and open-source - your only real cost is LLM judge API tokens when you use llm-rubric or red-team plugins, and many assertions need no judge call at all. LangSmith has a free developer tier and then usage-based pricing that scales with trace volume and seats, which is convenient but grows with production traffic. For dev-time evals, Promptfoo is the low-cost option. For production observability, you are paying LangSmith for a capability Promptfoo does not offer, so it is not a like-for-like comparison.
Can you use Promptfoo and LangSmith together?
Yes, and it is the pattern we recommend for production GenAI teams. Promptfoo runs in CI as a pre-deploy gate - it compares prompts and models and fails the build on red-team findings like prompt injection or PII leakage. LangSmith runs in production as the observability layer, tracing live traffic and surfacing regressions on real users. Promptfoo owns 'is this release safe to ship', LangSmith owns 'what is happening in production now'. The two cover different stages of the lifecycle rather than competing.
Complementary NomadX Services
Related Comparisons
Break It Before They Do.
Book a free 30-minute GenAI QA scope call. We review your AI application, identify the top risks, and show you exactly what to test before you ship.
Talk to an Expert