skillfed

langsmith-fetch

LangSmith Fetch - Minimal CLI for fetching LangSmith threads and traces

langsmith-fetch v0.3.1 83.7K downloads/30d#14,057 on PyPI
License unclear AGING released

What it is and what it does

LangSmith Fetch is a command-line tool for exporting traces and threads from LangSmith projects. It wraps the LangSmith API to let you bulk-download recent execution data or retrieve specific items by ID, saving them as JSON files or printing them to stdout. The tool is built on click, requests, and rich for a polished CLI experience, and integrates with python-dotenv for environment-based configuration.

You use it primarily for testing and debugging—pulling real LangSmith data locally to inspect, validate, or feed into other tools. It supports filtering by time range, customizable output formats (pretty, JSON, raw), and concurrent fetching. Configuration is minimal: set your API key and project name as environment variables, and the tool handles the rest, including automatic project UUID lookup and caching.

Use it for:

  • Export recent traces from a LangSmith project to a local directory for offline inspection and debugging.
  • Fetch a specific trace or thread by ID and pretty-print it to stdout for quick inspection during development.
  • Bulk-download traces with metadata and feedback for integration into test suites or validation pipelines.
  • Use as a programmatic data source for code agents that need to retrieve LangSmith execution history.
  • Filter and export traces from the last N minutes or since a specific timestamp for incident analysis.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A CLI tool for fetching traces and threads from LangSmith projects, designed for testing, debugging, and programmatic data export by humans or code agents.

Yes, if you actively use LangSmith and need a quick way to export traces and threads for testing or debugging. The low install friction and straightforward CLI make it easy to adopt. However, the aging maintenance status (no updates in 245 days) and unclear license warrant verification before use in production or proprietary contexts. No known security vulnerabilities.

Install

langsmith-fetch on PyPI

pip

pip install langsmith-fetch

uv

uv add langsmith-fetch

poetry

poetry add langsmith-fetch

Installing langsmith-fetch

Before you install

Low install friction with six common runtime dependencies. Maintenance status is aging—the package has not been updated since its initial release 245 days ago, which may indicate limited ongoing support or that it has reached a stable endpoint.

License in practice

License treatment is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license before use in proprietary or restricted contexts.

Quickstart

pip install langsmith-fetch
export LANGSMITH_API_KEY=lsv2_...
export LANGSMITH_PROJECT=your-project-name
langsmith-fetch traces ./my-traces --limit 10

Requires Python >=3.10 and valid LangSmith API credentials (LANGSMITH_API_KEY and LANGSMITH_PROJECT environment variables).

Verify before relying

  • Whether the package is actively maintained or has reached a stable, feature-complete state despite no updates in 245 days.
  • Actual license terms, since license_treatment is marked unclear and no SPDX or raw license text is provided.
  • Whether the 71 tests mentioned in the description are actually present and passing in the current release.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — click, langsmith, python-dotenv, pyyaml, requests, rich
Maintenance aging — 245 days since the last release
First released
Downloads 83,667/month — #14,057 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: langsmith_fetch-0.3.1-py3-none-any.whl

Tags

langsmith data export clifetch traces threads langsmithlangsmith debugging toollangsmith project data retrievallangsmith cli fetcherexport langsmith traceslangsmith thread export
langsmith-integrationcli-tooldebugging

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

langsmith-mcp-server

Exposes LangSmith observability data…

permissive · top 15,000 on PyPI

langsmith

LangSmith is a Python client SDK for the…

permissive · top 1,000 on PyPI

langchainplus-sdk

Client library for connecting to LangSmith, a…

permissive · top 15,000 on PyPI

langgraph-sdk

Python SDK for building and deploying agentic…

permissive · top 1,000 on PyPI

langgraph-checkpoint

Provides the base interface and serialization…

permissive · top 1,000 on PyPI

langgraph-checkpoint-sqlite

Provides a SQLite-backed checkpoint saver for…

permissive · top 5,000 on PyPI

langwatch

LangWatch is a Python SDK for instrumenting and…

permissive · top 15,000 on PyPI

langchain-cli

Command-line interface for building, testing,…

permissive · top 15,000 on PyPI

langgraph-checkpoint-postgres

Provides a Postgres-backed checkpoint saver for…

permissive · top 5,000 on PyPI

langgraph

LangGraph is a low-level orchestration…

permissive · top 1,000 on PyPI