LangSmith
by LangChain
See and test what your AI agent does.
LLM observability and evalsUp · live statusOfficial MCP server
1. Price
Free tier: Developer plan: 1 seat, up to 5k base traces / mo, then pay-as-you-go. As reported on the official pricing page, checked Oct 10, 2026.
langchain.com/pricing2. Commercial use
“As between Customer and LangChain, Customer Data and Customer Confidential Information are and will remain owned exclusively by Customer, the User, or their licensors, as applicable.”
Allowed under the LangSmith terms; you keep ownership of your data, and the hosted platform itself may not be copied or reverse engineered. Data: No
langchain.com/terms-of-service3. Key & sign-up
“When using the LangSmith REST API, provide your API key in the request headers as "x-api-key".”
API key in the x-api-key header; the official packages read it from LANGSMITH_API_KEY.
docs.langchain.com/langsmith/trace-with-api.md4. Agent access
“The LangSmith Remote MCP is a Model Context Protocol (MCP) server hosted by LangSmith.”
Our agent check: 6 of 6 (Nov 13, 2026).
docs.langchain.com/langsmith/langsmith-remote-mcp.mdChecked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error
What LangSmith does
LangSmith is an online service from the makers of LangChain that records every step your AI assistant or agent takes, from the question it got to the final answer. You use it to find why an answer went wrong, to test new versions against saved examples, and to watch quality once real users arrive.
- LangSmith is one of 25 APIs in the LLM observability and evals category on AgentGid.
- Its cheapest paid plan ($39 a month) is the 9th cheapest of the 17 here with a monthly plan.
- It is one of 23 that can be started for free.
- It ships an official MCP server, like 7 others here.
- Its official SDK is the 1st most downloaded in the category (34.5M a week).
What people build with it
Find why the bot answered wrong
Open one conversation and see the exact prompt, the tool calls and the model's reply step by step, instead of guessing from the final answer.
Test answers before each release
Keep a list of sample questions with good answers, and score every new prompt or model against it before users see the change.
Alerts when quality drops
Watch charts of errors, cost and speed for the live app and get an alert when something goes off track.
Thumbs up and down from users
Store your users' ratings next to each answer, so the team can review the weak ones and fix them.
Keep private data out of the logs
Hide or mask names, emails and other personal details before anything is sent, while still seeing the steps.
Compare two prompts before switching Idea
Run the old and the new prompt on the same saved questions and switch only if the scores go up.
LangSmith popularity
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
Developer plan: 1 seat, up to 5k base traces / mo, then pay-as-you-go
$39 a month
Plus: $39 / seat per month incl. up to 10k base traces / mo; trace overage is pay-as-you-go (rate not listed on pricing page); 1 LSU = $1 (Deployment/Fleet/Sandbox usage)
Base traces have 14-day retention, extended traces 180-day retention at an extra fee. Enterprise is custom pricing.
What one action costs
| Action | Price |
|---|---|
| 1 Plus seat for a month (includes up to 10k base traces a month for the plan) | $39 |
| 1 LSU of Deployment, Fleet or Sandbox usage | $1.00 |
| 1 Tuned Evaluator run (Perceived Error), in LSU | 0.015 LSU |
| 1 vCPU-hour of sandbox compute, in LSU | 0.0576 LSU |
Price history
- A year of the pricing page in the Internet Archive (4 months): the lowest monthly figure went from $39 (2025-10) to $49 (2026-10).
- 2026-08: free plan no longer shown
As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy. langchain.com/pricing
Limits
5,000 traces a month
50,000 trace events an hour
500,000 trace events an hour
5,000 run create or update calls a minute per key; at most 25,000 runs in one trace
From the official docs. docs.langchain.com/langsmith/usage-and-billing.md
Status and incidents
0 incidents, 0 of them major
From the official status page, checked Nov 26, 2026. status.smith.langchain.com
Key and access
API key in the x-api-key header; the official packages read it from LANGSMITH_API_KEY.
LANGSMITH_API_KEYNo
Steps only a person can do
- Sign up for LangSmith and create an API key (a service key for production apps). Put it in .env as LANGSMITH_API_KEY with LANGSMITH_TRACING=true, kept out of git.
- In an agent-based workspace, create the agent once with + Agent and copy its Agent ID. Set LANGSMITH_AGENT_ID and LANGSMITH_AGENT_ENVIRONMENT in .env.
- Before going over 5,000 traces a month, add a payment method or choose the Plus plan, and set a monthly usage limit. No code change; optionally set LANGSMITH_TRACING_SAMPLING_RATE to log fewer traces.
Commercial use and your data
LangSmith is a paid online service with a free Developer plan, and you can use it for commercial apps. Your data stays yours and is not used to train models. The client packages are open source under the MIT license.
Allowed under the LangSmith terms; you keep ownership of your data, and the hosted platform itself may not be copied or reverse engineered.
“As between Customer and LangChain, Customer Data and Customer Confidential Information are and will remain owned exclusively by Customer, the User, or their licensors, as applicable.” source
The langsmith client packages are MIT licensed; the key must stay on the server.
“MIT License” source
Fine on a paid seat or the client's own account; the data stays owned by the customer whose account it is.
“As between Customer and LangChain, Customer Data and Customer Confidential Information are and will remain owned exclusively by Customer, the User, or their licensors, as applicable.” source
No
“LangSmith does not use your data to train models.” source
Base traces are kept 14 days, extended traces 180 days; some trace metadata may be kept indefinitely for billing and analytics.
“Base traces have a shorter retention period of 14 days. Extended traces have a longer retention period of 180 days.” source
Cloud accounts in US (default), EU or APAC on Google Cloud, or US on AWS; Enterprise can also self-host.
“If your account is in a region other than US (the default), also set LANGSMITH_ENDPOINT to the API URL for your region.” source
Errors to handle
A per-minute rate limit or an hourly or monthly plan limit was reached.
Retry with backoff after the window resets (the per-minute limit clears 60 seconds after its window starts); if it keeps happening, log fewer traces (sampling) or move to a bigger plan.
The free Developer plan without a payment method hit 5,000 traces this month.
Add a payment method (then pay as you go) or wait for the new month in UTC.
The account lives in the EU, APAC or AWS US region but the app talks to the default US address.
Set LANGSMITH_ENDPOINT to your region's address, for example https://eu.api.smith.langchain.com.
A batch of runs or a single field is too big for the JSON batch upload.
Send large inputs, outputs and attachments through the multipart upload, which the official packages use.
One trace holds at most 25,000 runs; later runs are dropped.
Split very long agent sessions into several traces.
Use it from an agent
6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes
Checked Nov 13, 2026.
LangSmith Remote MCP
claude mcp add --transport http -s user langsmith https://api.smith.langchain.com/mcp
npm install langsmithpip install langsmithAlternatives
LangSmith This page
Pick Pydantic Logfire when you want one place for AI agent traces plus logs and metrics of your services and servers.
Pick LangWatch when you want the same kind of tracing and testing as open source that you can also run yourself.
Pick W&B Weave when your team already works in Weights & Biases and wants agent traces and evaluations there.
Get started
Tell your AI assistant
“Add LangSmith tracing to my AI agent: install langsmith, read LANGSMITH_API_KEY and LANGSMITH_TRACING from .env on the server, wrap the model client and the main function with traceable, and set LANGSMITH_ENDPOINT if my account is in the EU.”
Create a free LangSmith account and an API key under Settings, API Keys.
Install the package next to your model provider's package.
pip install -U langsmith openaiFrom docs.langchain.com/langsmith/observability-quickstart.md
Turn tracing on with environment variables; LangChain and LangGraph apps need nothing else.
export LANGSMITH_TRACING=true export LANGSMITH_API_KEY="<your-langsmith-api-key>"From docs.langchain.com/langsmith/observability-quickstart.md
First request
From the evaluation quickstart (dataset.py), shortened to one example and without the main() wrapper; Client() reads LANGSMITH_API_KEY from the environment.
from langsmith import Client
client = Client()
dataset = client.create_dataset(
dataset_name="Sample dataset",
description="A sample dataset in LangSmith."
)
examples = [
{
"inputs": {"question": "Which country is Mount Kilimanjaro located in?"},
"outputs": {"answer": "Mount Kilimanjaro is located in Tanzania."},
},
]
client.create_examples(dataset_id=dataset.id, examples=examples)
print("Created dataset:", dataset.name)Created dataset: Sample datasetMistakes to avoid
The quickstart turns tracing on with this variable next to the key.
The key is not recognized at the US address and every request fails to authenticate.
The docs say not to mix the legacy destination settings with agent addressing.
The key would be visible to every visitor.
Sending traces one by one and waiting for them slows the app down.
Questions
Is there a free plan?
Yes. The Developer plan is $0 for one seat with up to 5,000 base traces a month, then pay as you go, as reported on the pricing page.
Does LangSmith train models on my data?
No. The pricing page and the terms both say your traces, prompts and outputs are not used for training.
Do I have to use LangChain?
No. It works with many frameworks and model providers, and with plain code through its wrappers.
How long are traces kept?
14 days for base traces and 180 days for extended traces.
Can I log fewer traces to save money?
Yes. Set a sampling rate between 0 and 1, for example 0.75 to log three out of four traces.