Softwr

Software Development · head to head

LangSmith vs pytest

LangSmith logo

LangSmith

Software Development

Know what your agents are really doing

From
Free
Free plan
Yes
pytest logo

pytest

Testing

Python testing framework maintained by an independent core team funded partly through Tidelift

From
Free
Free plan
Yes

The short version

  • pytest is free; LangSmith starts at $39/mo.
  • Where LangSmith falls short: usage-based pricing applies beyond included traces; LCU charges at $1.50/LCU and LSU at $1.00/LSU.
  • Prices and features on this page were last checked on 20 November 2026.

How do LangSmith and pytest differ?

LangSmith and pytest differ on pricing model, platforms and category. Only the attributes on which LangSmith and pytest actually diverge.

Attributes where LangSmith and pytest differ
AttributeLangSmithpytest
Pricing modelFreemiumOpen source, no licence fee
PlatformsWebLinux, macOS, Windows
CategorySoftware DevelopmentTesting

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for LangSmith.

Which features does each one have?

They share no listed features; 6 only for pytest. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in LangSmith

Nothing recorded that pytest does not also cover.

Only in pytest

  • Assert-based test syntax
  • Fixture system
  • Parametrised testing
  • Plugin ecosystem
  • Detailed assertion introspection
  • Test discovery

What is each one used for?

LangSmith is most often brought in for tracing agent execution step-by-step in production. The jobs each tool is most often brought in to do.

LangSmith

  • Tracing agent execution step-by-step in productionnot pytest
  • Detecting agent failures affecting latency and costnot pytest
  • Monitoring token usage and latency percentilesnot pytest
  • Clustering traces to identify failure modesnot pytest
  • Self-hosting traces within VPC for data residencynot pytest

pytest

  • A Python team moving off the standard library's unittest module for a less verbose, fixture-driven testing stylenot LangSmith
  • A project needing parametrised tests to cover many input combinations without duplicating test codenot LangSmith
  • A team wanting a large plugin ecosystem for coverage, async testing or Django-specific test supportnot LangSmith
  • An organisation wanting a commercial support and maintenance assurance layer via a Tidelift subscription rather than relying purely on community response timesnot LangSmith

Where do LangSmith and pytest fall short?

LangSmith's most cited limit: usage-based pricing applies beyond included traces; LCU charges at $1.50/LCU and LSU at $1.00/LSU. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

LangSmith

  • Usage-based pricing applies beyond included traces; LCU charges at $1.50/LCU and LSU at $1.00/LSU
  • Free tier limited to 1 seat and 5,000 traces per month
  • Base traces are retained for only 14 days; 180-day extended traces cost extra
  • Plus is priced per seat at $39 a month, and invited users count as seats
  • Developer plan allows 1 seat and 5k base traces a month

pytest

  • There is no corporate owner or dedicated support organisation, so response time on bugs or security issues depends on volunteer maintainer availability unless a Tidelift subscription is purchased separately
  • The plugin ecosystem's quality and maintenance level varies widely between plugins, and a team building a workflow around several plugins takes on the risk of any one of them going unmaintained
  • Its assert-rewriting magic, while convenient, can behave unexpectedly in edge cases involving custom assert helpers, which occasionally confuses developers used to explicit assertion methods
  • Large test suites with many fixtures can develop hard-to-trace fixture dependency chains, since fixtures can depend on other fixtures in ways that are not always obvious from a single test file
  • Being free and volunteer-maintained, roadmap direction is set by contributor consensus rather than a company with commercial incentive to prioritise enterprise-requested features quickly

How much do LangSmith and pytest cost?

LangSmith has a free plan, with paid plans from $39/mo; pytest is free to use. Plan by plan below, from each vendor's own pricing page.

LangSmith

Free
  • DeveloperFree
    • 1 seat maximum
    • 5,000 base traces monthly
  • Plus$39/mo
    • Unlimited seats
    • 10,000 base traces monthly
    • 1 free small serverless deployment
  • EnterpriseOn request
    • Custom pricing
    • Self-hosted and hybrid options
    • Custom SSO, ABAC, RBAC

pytest

Free
  • pytestFree
    • Full functionality, no usage limits
    • Community support via GitHub
    • Optional Tidelift subscription for a commercial support and licence assurance layer

Which should you pick?

Choose LangSmith if

  • You want to start without paying.

Choose pytest if

  • You need assert-based test syntax.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want fixture system.

Questions people ask

Is LangSmith or pytest better?
Neither clearly leads. LangSmith starts at Free and pytest at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, LangSmith or pytest?
LangSmith starts at Free and pytest at Free.
Does LangSmith or pytest run on more platforms?
LangSmith runs on Web. pytest runs on Linux, macOS, Windows.
Can I use LangSmith for free?
Both have a free tier, so you can try either at no cost before committing.
What is LangSmith best used for?
LangSmith is most often used for tracing agent execution step-by-step in production, detecting agent failures affecting latency and cost, monitoring token usage and latency percentiles, clustering traces to identify failure modes. Of those, tracing agent execution step-by-step in production and detecting agent failures affecting latency and cost are not what pytest is typically brought in for.
What can LangSmith do that pytest cannot?
pytest covers Assert-based test syntax, Fixture system, Parametrised testing, Plugin ecosystem.

Answered from the vendors’ own pages

LangSmith: What does LangSmith cost?

LangSmith Developer plan is free with up to 5,000 base traces monthly. Plus plan costs $39/month per seat with 10,000 base traces included. Enterprise pricing is custom.

Source
pytest: Is pytest owned by a company?

No, it is maintained by the pytest-dev volunteer community with no single corporate parent; some maintainers receive partial funding through Tidelift subscriptions.

LangSmith: How does LangSmith usage-based pricing work?

Beyond included traces, LangSmith charges $1.50 per LCU (LangChain Compute Unit) for computational work and $1.00 per LSU (LangChain Storage Unit) for data storage.

Source
pytest: Is there a paid version?

No, pytest itself is free and open source; buyers can optionally pay for a Tidelift subscription for commercial assurance and support.

LangSmith: Is there a free tier for LangSmith?

Yes, the Developer plan is free with limits on seat count (1 seat maximum) and trace volume (5,000 base traces per month).

Source
pytest: Does it replace the standard library unittest module?

It does not replace unittest at the language level, but it is now the de facto standard choice for most Python projects over unittest's more verbose syntax.

Share

Related pages

Other head to heads