LangSmith

{/* Generated by scripts/generate-integration-catalog.mjs. Do not edit by hand. */}

At a glance

  • Availability: Experimental (how to enable).
  • Authentication: API key.
  • Connection: The key from LANGSMITH_API_KEY is sent as the x-api-key header.
  • Provider documentation: Authentication reference.

Credentials

Set these per environment. See Connect an integration.

VariableRequiredDescription
LANGSMITH_API_KEYYesLangSmith API key (starts with lsv2_) Docs.

Setup

  1. Create a LangSmith account: Sign up at https://smith.langchain.com - the free Developer plan includes traces for testing.
  2. Create an API key: In LangSmith go to Settings → API Keys and create a key (Personal Access Token or Service Key). Copy it immediately - it is only shown once.
  3. Store the key: Add it to your .env file as LANGSMITH_API_KEY=lsv2_...
  4. Verify access: Run the List Projects tool. If you belong to multiple workspaces, make sure the key was created in the workspace you want to query.

Provider notes

Provider API reference.

Tools

ToolAccessDescription
List Projects<br /><code className="reference-identifier">langsmith__list_projects</code>ReadList projects
Query Runs<br /><code className="reference-identifier">langsmith__query_runs</code>ReadQuery runs
Get Run<br /><code className="reference-identifier">langsmith__get_run</code>ReadGet run
List Datasets<br /><code className="reference-identifier">langsmith__list_datasets</code>ReadList datasets
List Examples<br /><code className="reference-identifier">langsmith__list_examples</code>ReadList examples

Verify the connection

Call a read tool such as langsmith__list_projects with arguments for your account. Confirm that the result comes from the intended account or workspace before enabling write tools.