MCP.so
Sign In
>_

LangSmith CLIOfficial

@langchain-ai

Details

Category

Developer tools

Command

langsmith

Maintainer

langchain-ai

Type

Developer tool

About LangSmith CLI

LangSmith CLI gives developers and coding agents terminal access to projects, traces and evaluation datasets.

This official LangChain tool differs from the third-party langsmith-cli package. The official Python distribution is langchain-langsmith-cli.

#langsmith#developer-tools#developer-tool#official#agent-ready#langchain-langsmith-cli

How to install LangSmith CLI

1. Install with Homebrew

brew install langchain-ai/tap/langsmith-cli

Log in and authenticate

  1. 1
    export LANGSMITH_API_KEY="YOUR_LANGSMITH_API_KEY"

    2. Set your API key privately

  2. 2
    langsmith projects list

    3. List accessible projects

What it does

Inspect traces

Filter runs

List datasets

Common commands

  1. 1
    langsmith traces list --project my-app --limit 5

    Inspect traces; replace my-app.

  2. 2
    langsmith runs list --project my-app --run-type llm --include-metadata

    Filter LLM runs with metadata.

  3. 3
    langsmith datasets list

    List accessible datasets.

Notes and limits

  • Which Python package? Use langchain-langsmith-cli; langsmith-cli is third-party.
  • How to select a workspace? Set LANGSMITH_WORKSPACE_ID; access depends on key permissions.
  • Self-hosted support? Set LANGSMITH_ENDPOINT to your authorized instance.
  • Requirements: supported binary, network and LangSmith credentials. MIT licensing does not include a service subscription or waive service costs.
  • Traces may contain sensitive data. These examples only list resources; other management commands can mutate them.
  • Official README checked 2026-11-29; no authentication or API operations executed.

Sources

Checked against the official documentation on 2026-11-29.

Comments

More Developer tools CLIs