>_LangSmith CLIOfficial
@langchain-ai
Details
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.
How to install LangSmith CLI
1. Install with Homebrew
brew install langchain-ai/tap/langsmith-cliLog in and authenticate
- 1
export LANGSMITH_API_KEY="YOUR_LANGSMITH_API_KEY"2. Set your API key privately
- 2
langsmith projects list3. List accessible projects
What it does
Inspect traces
Filter runs
List datasets
Common commands
- 1
langsmith traces list --project my-app --limit 5Inspect traces; replace my-app.
- 2
langsmith runs list --project my-app --run-type llm --include-metadataFilter LLM runs with metadata.
- 3
langsmith datasets listList 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.
More Developer tools CLIs
Bun
$ bun
An all-in-one JavaScript runtime, package manager, bundler, and test runner.
GitHub CLI
$ gh
GitHub on the command line: repositories, pull requests, issues, Actions, releases, and API calls.
GitLab CLI
$ glab
GitLab’s official CLI for merge requests, issues, pipelines, releases, snippets, and self-managed instances.
HTTPie
$ http
A human-friendly HTTP client with JSON, sessions, auth, and formatted output.
Lazygit
$ lazygit
A keyboard-driven terminal UI for staging, rebasing, branching, and Git history.
Playwright
$ playwright
Cross-browser end-to-end testing and browser automation from the command line.
Comments