{
 "kind": "api",
 "slug": "langsmith",
 "path": "apis/langsmith/",
 "name": "LangSmith",
 "logo": "https://agentgid.com/media/avatars/langchain-ai.png",
 "maker": "LangChain",
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "LLM observability and evals",
   "apis/observability/"
  ]
 ],
 "lead": "See and test what your AI agent does.",
 "chips": [
  {
   "label": "LLM observability and evals",
   "path": "apis/observability/"
  },
  {
   "label": "Up · live status",
   "live": true
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "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."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://www.langchain.com/langsmith"
  },
  {
   "label": "Pricing",
   "href": "https://www.langchain.com/pricing"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/langchain-ai/langsmith-python"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free every month",
   "status": "yes",
   "sub": "Then from $39/mo",
   "quote": null,
   "note": "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.",
   "src": "https://www.langchain.com/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "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.",
   "note": "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",
   "src": "https://www.langchain.com/terms-of-service"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var LANGSMITH_API_KEY",
   "quote": "When using the LangSmith REST API, provide your API key in the request headers as \"x-api-key\".",
   "note": "API key in the x-api-key header; the official packages read it from LANGSMITH_API_KEY.",
   "src": "https://docs.langchain.com/langsmith/trace-with-api.md"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · OpenAPI · SDK",
   "quote": "The LangSmith Remote MCP is a Model Context Protocol (MCP) server hosted by LangSmith.",
   "note": " Our agent check: 6 of 6 (Nov 13, 2026).",
   "src": "https://docs.langchain.com/langsmith/langsmith-remote-mcp.md"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What LangSmith does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "list",
     "items": [
      "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)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Find why the bot answered wrong",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Test answers before each release",
       "text": "Keep a list of sample questions with good answers, and score every new prompt or model against it before users see the change.",
       "idea": false
      },
      {
       "title": "Alerts when quality drops",
       "text": "Watch charts of errors, cost and speed for the live app and get an alert when something goes off track.",
       "idea": false
      },
      {
       "title": "Thumbs up and down from users",
       "text": "Store your users' ratings next to each answer, so the team can review the weak ones and fix them.",
       "idea": false
      },
      {
       "title": "Keep private data out of the logs",
       "text": "Hide or mask names, emails and other personal details before anything is sent, while still seeing the steps.",
       "idea": false
      },
      {
       "title": "Compare two prompts before switching",
       "text": "Run the old and the new prompt on the same saved questions and switch only if the scores go up.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "LangSmith popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "34.4M",
       "l": "SDK downloads a week",
       "d": "+19.6% on the 4-week average",
       "up": true
      },
      {
       "n": "763",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "29",
       "l": "GitHub stars, langchain-ai/langsmith-python"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "Developer plan: 1 seat, up to 5k base traces / mo, then pay-as-you-go"
      },
      {
       "l": "Cheapest plan",
       "v": "$39 a month"
      },
      {
       "l": "Usage price",
       "v": "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)"
      },
      {
       "l": "Plans",
       "v": "Base traces have 14-day retention, extended traces 180-day retention at an extra fee. Enterprise is custom pricing."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "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"
      ]
     ]
    },
    {
     "t": "more",
     "items": [
      {
       "title": "Price history",
       "items": [
        "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"
       ]
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.",
     "link": "langchain.com/pricing",
     "href": "https://www.langchain.com/pricing"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Developer (no payment method on file)",
       "v": "5,000 traces a month",
       "src": "https://docs.langchain.com/langsmith/usage-and-billing.md"
      },
      {
       "l": "Developer (no payment method on file)",
       "v": "50,000 trace events an hour",
       "src": "https://docs.langchain.com/langsmith/usage-and-billing.md"
      },
      {
       "l": "Startup/Plus",
       "v": "500,000 trace events an hour",
       "src": "https://docs.langchain.com/langsmith/usage-and-billing.md"
      },
      {
       "l": "All plans",
       "v": "5,000 run create or update calls a minute per key; at most 25,000 runs in one trace",
       "src": "https://docs.langchain.com/langsmith/usage-and-billing.md"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "docs.langchain.com/langsmith/usage-and-billing.md",
     "href": "https://docs.langchain.com/langsmith/usage-and-billing.md"
    }
   ]
  },
  {
   "id": "status",
   "nav": "Status",
   "h2": "Status and incidents",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Right now",
       "v": "Up",
       "status": "yes",
       "sub": ""
      },
      {
       "l": "Last 30 days",
       "v": "0 incidents, 0 of them major"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official status page, checked Nov 26, 2026.",
     "link": "status.smith.langchain.com",
     "href": "https://status.smith.langchain.com"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "API key in the x-api-key header; the official packages read it from LANGSMITH_API_KEY."
      },
      {
       "l": "Environment variable",
       "v": "LANGSMITH_API_KEY",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "No"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "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."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed under the LangSmith terms; you keep ownership of your data, and the hosted platform itself may not be copied or reverse engineered.",
       "quote": "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.",
       "src": "https://www.langchain.com/terms-of-service"
      },
      {
       "l": "inside-app-bundle",
       "v": "Yes",
       "status": "yes",
       "sub": "The langsmith client packages are MIT licensed; the key must stay on the server.",
       "quote": "MIT License",
       "src": "https://github.com/langchain-ai/langsmith-sdk/blob/main/LICENSE"
      },
      {
       "l": "client-work",
       "v": "With conditions",
       "status": "cond",
       "sub": "Fine on a paid seat or the client's own account; the data stays owned by the customer whose account it is.",
       "quote": "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.",
       "src": "https://www.langchain.com/terms-of-service"
      },
      {
       "l": "Trains on what you send",
       "v": "No",
       "quote": "LangSmith does not use your data to train models.",
       "src": "https://www.langchain.com/pricing"
      },
      {
       "l": "Keeps your data",
       "v": "Base traces are kept 14 days, extended traces 180 days; some trace metadata may be kept indefinitely for billing and analytics.",
       "quote": "Base traces have a shorter retention period of 14 days. Extended traces have a longer retention period of 180 days.",
       "src": "https://www.langchain.com/pricing"
      },
      {
       "l": "Where data is stored",
       "v": "Cloud accounts in US (default), EU or APAC on Google Cloud, or US on AWS; Enterprise can also self-host.",
       "quote": "If your account is in a region other than US (the default), also set LANGSMITH_ENDPOINT to the API URL for your region.",
       "src": "https://docs.langchain.com/langsmith/observability-quickstart.md"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "429 Too Many Requests",
       "v": "A per-minute rate limit or an hourly or monthly plan limit was reached.",
       "sub": "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."
      },
      {
       "l": "429 monthly unique traces limit",
       "v": "The free Developer plan without a payment method hit 5,000 traces this month.",
       "sub": "Add a payment method (then pay as you go) or wait for the new month in UTC."
      },
      {
       "l": "Authentication fails outside the US region",
       "v": "The account lives in the EU, APAC or AWS US region but the app talks to the default US address.",
       "sub": "Set LANGSMITH_ENDPOINT to your region's address, for example https://eu.api.smith.langchain.com."
      },
      {
       "l": "413 Request Entity Too Large",
       "v": "A batch of runs or a single field is too big for the JSON batch upload.",
       "sub": "Send large inputs, outputs and attachments through the multipart upload, which the official packages use."
      },
      {
       "l": "Runs rejected after 25,000 in one trace",
       "v": "One trace holds at most 25,000 runs; later runs are dropped.",
       "sub": "Split very long agent sessions into several traces."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "LangSmith Remote MCP",
       "sub": "claude mcp add --transport http -s user langsmith https://api.smith.langchain.com/mcp"
      },
      {
       "l": "npm",
       "v": "npm install langsmith",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install langsmith",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "LangSmith",
       "me": true,
       "facts": [
        "from $39/seat per",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Pydantic Logfire",
       "why": "Pick Pydantic Logfire when you want one place for AI agent traces plus logs and metrics of your services and servers.",
       "path": "apis/logfire/",
       "facts": [
        "from $2 per million records",
        "Free tier"
       ]
      },
      {
       "name": "LangWatch",
       "why": "Pick LangWatch when you want the same kind of tracing and testing as open source that you can also run yourself.",
       "path": "apis/langwatch/",
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "W&B Weave",
       "why": "Pick W&B Weave when your team already works in Weights & Biases and wants agent traces and evaluations there.",
       "path": "apis/wandb-weave/",
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      }
     ],
     "more": "All llm observability and evals APIs",
     "more_path": "apis/observability/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Create a free LangSmith account and an API key under Settings, API Keys.",
       "code": null,
       "src": "https://docs.langchain.com/langsmith/observability.md"
      },
      {
       "text": "Install the package next to your model provider's package.",
       "code": "pip install -U langsmith openai",
       "src": "https://docs.langchain.com/langsmith/observability-quickstart.md"
      },
      {
       "text": "Turn tracing on with environment variables; LangChain and LangGraph apps need nothing else.",
       "code": "export LANGSMITH_TRACING=true\nexport LANGSMITH_API_KEY=\"<your-langsmith-api-key>\"",
       "src": "https://docs.langchain.com/langsmith/observability-quickstart.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "from langsmith import Client\nclient = Client()\ndataset = client.create_dataset(\n    dataset_name=\"Sample dataset\",\n    description=\"A sample dataset in LangSmith.\"\n)\nexamples = [\n    {\n        \"inputs\": {\"question\": \"Which country is Mount Kilimanjaro located in?\"},\n        \"outputs\": {\"answer\": \"Mount Kilimanjaro is located in Tanzania.\"},\n    },\n]\nclient.create_examples(dataset_id=dataset.id, examples=examples)\nprint(\"Created dataset:\", dataset.name)",
       "intro": "From the evaluation quickstart (dataset.py), shortened to one example and without the main() wrapper; Client() reads LANGSMITH_API_KEY from the environment."
      },
      {
       "tab": "Response",
       "code": "Created dataset: Sample dataset"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Only setting LANGSMITH_API_KEY and expecting traces to appear.",
       "fix": "Also set LANGSMITH_TRACING=true in the environment where the app runs.",
       "why": "The quickstart turns tracing on with this variable next to the key."
      },
      {
       "dont": "Using an EU or APAC account with the default endpoint.",
       "fix": "Set LANGSMITH_ENDPOINT to the region's address, for example https://eu.api.smith.langchain.com.",
       "why": "The key is not recognized at the US address and every request fails to authenticate."
      },
      {
       "dont": "Setting LANGSMITH_PROJECT together with LANGSMITH_AGENT_ID and LANGSMITH_AGENT_ENVIRONMENT.",
       "fix": "In an agent-based workspace use only the two agent variables; in a project-based or self-hosted workspace use LANGSMITH_PROJECT.",
       "why": "The docs say not to mix the legacy destination settings with agent addressing."
      },
      {
       "dont": "Putting the LangSmith key in front-end code to send thumbs up or down.",
       "fix": "Create a presigned feedback token on the server and let the browser call that URL.",
       "why": "The key would be visible to every visitor."
      },
      {
       "dont": "Posting each run to the REST API inside the request path of the app.",
       "fix": "Use the Python or TypeScript package, which batches and sends traces in the background.",
       "why": "Sending traces one by one and waiting for them slows the app down."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free plan?",
       "a": "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.",
       "evidence": {
        "url": "https://www.langchain.com/pricing",
        "quote": "Up to 5k base traces / mo, then pay-as-you-go"
       }
      },
      {
       "q": "Does LangSmith train models on my data?",
       "a": "No. The pricing page and the terms both say your traces, prompts and outputs are not used for training.",
       "evidence": {
        "url": "https://www.langchain.com/pricing",
        "quote": "LangSmith does not use your data to train models."
       }
      },
      {
       "q": "Do I have to use LangChain?",
       "a": "No. It works with many frameworks and model providers, and with plain code through its wrappers.",
       "evidence": {
        "url": "https://docs.langchain.com/langsmith/observability.md",
        "quote": "LangSmith works with many frameworks and providers."
       }
      },
      {
       "q": "How long are traces kept?",
       "a": "14 days for base traces and 180 days for extended traces.",
       "evidence": {
        "url": "https://www.langchain.com/pricing",
        "quote": "Base traces have a shorter retention period of 14 days. Extended traces have a longer retention period of 180 days."
       }
      },
      {
       "q": "Can I log fewer traces to save money?",
       "a": "Yes. Set a sampling rate between 0 and 1, for example 0.75 to log three out of four traces.",
       "evidence": {
        "url": "https://docs.langchain.com/langsmith/sample-traces.md",
        "quote": "Sampling rates allow you to control what percentage of traces are logged, helping you balance observability needs with cost considerations."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "LangChain"
  ],
  [
   "Category",
   "LLM observability and evals"
  ],
  [
   "Status",
   "Up · 0 incidents in 30 days"
  ],
  [
   "Price",
   "from $39/seat per"
  ],
  [
   "Plans from",
   "$39/mo"
  ],
  [
   "Official SDK",
   "npm langsmith, PyPI langsmith"
  ],
  [
   "Latest SDK",
   "0.14.17 on npm"
  ],
  [
   "Agent check",
   "6 of 6"
  ],
  [
   "Pricing checked",
   "Oct 10, 2026"
  ]
 ],
 "good": [
  "You need a LangSmith account and a secret key; keep the key on the server, never in the web page.",
  "The free Developer plan has one seat and 5,000 base traces a month; after that you pay as you go.",
  "Traces disappear after 14 days unless they are upgraded to the 180-day tier, which costs more."
 ],
 "checked_line": "Read by AgentGid from 22 official pages, card checked Nov 10, 2026; usage numbers update daily."
}