Skip to main content

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.

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

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.