LA

langchain-ai/langsmith-cli

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

80 stars 品質 68 トレンド 34MIT

LangSmithと相互作用するためのコーディングエージェントファーストCLI.

概要

LangSmithリソースのクエリと管理のためのエージェントファーストCLI AI コーディングエージェント(デペントエージェント、クロードコード、カーサーなど)やプロジェクト、トレース、ラン、データセット、評価、実験、スレッドへの高速なスクリプト可能なアクセスを必要とする開発者向けに構築されました。 GitHubリリースからプラットフォーム用の最新のバイナリをダウンロードしてください。 API キーを環境変数に設定します。 プロファイルは、~/.langsmith/config.json で、所有者のみを記述します。他のユーザーが読みやすい場合は、CLI が警告します。 プロジェクト上で動作する全てのコマンドは --project か --project-id で、 $LANGSMITH PROJECT はどちらも設定されていないときに名前を供給します。 2つのフラグは相互に排他的です。 プログラムがコマンドラインをビルドするときに --project-id を優先します。 プロジェクト名はフリーフォームです。ユーザーはスペース、引用符、またはシェルメタキャラクタを含む1つを作成できます。そのため、名前はすべてのコールサイトで正しく引用されなければなりません。また、誤って引用された名前は何もマッチせず、エラーではなく空の結果を返します.

概要(AI 翻訳)

LangSmithリソースのクエリと管理のためのエージェントファーストCLI

AI コーディングエージェント(デペントエージェント、クロードコード、カーサーなど)やプロジェクト、トレース、ラン、データセット、評価、実験、スレッドへの高速なスクリプト可能なアクセスを必要とする開発者向けに構築されました。

インストール

スクリプトをインストール (推奨)

macOS/Linux:

Windows (PowerShell):

アップグレード

GitHub リリース

GitHubリリースからプラットフォーム用の最新のバイナリをダウンロードしてください。

##認証

API キーを環境変数に設定します。

オプションでデフォルトを設定:

またはプロフィールで資格情報を保存します。

プロフィールは[~/.langsmith/config.json]で、所有者のみを書かれています。 クリップ警告 他のユーザーが読みやすい場合

そのファイルから API キーを保持するには、代わりにどこに住んでいるかを保存します。 変数 読み込み、またはコマンド実行、プロファイルが使用されます。

[langsmith auth info は、アクティブなプロファイルのキーがどこから来るかを示しています。

他の設定はフラグとして渡すことができます:

クイックスタート

プロダクトフィードバック

端末から直接CLIに関するフィードバックを送信します。

--category は [bug], [feature-request], [[usability] (デフォルト) を受け付けます。 [documentation, [other]]. フィードバックペイロードには、ノート、カテゴリ、,

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

langsmith-cli

An agent-first CLI for querying and managing LangSmith resources.

Built for AI coding agents (deepagents, Claude Code, Cursor, etc.) and developers who need fast, scriptable access to projects, traces, runs, datasets, evaluators, experiments, and threads.

Installation

macOS / Linux:

curl -fsSL https://cli.langsmith.com/install.sh | sh

Windows (PowerShell):

irm https://cli.langsmith.com/install.ps1 | iex

Upgrade

langsmith self-update

GitHub releases

Download the latest binary for your platform from GitHub Releases.

Authentication

Set your API key as an environment variable:

export LANGSMITH_API_KEY="lsv2_pt_..."

Optionally set defaults:

export LANGSMITH_ENDPOINT="https://api.smith.langchain.com"  # For self-hosted
export LANGSMITH_WORKSPACE_ID=""                # Default workspace
export LANGSMITH_PROJECT="my-default-project"                 # Default project for queries

Or save the credentials in a profile:

langsmith auth login                    # OAuth
langsmith auth signup                   # Create an account in the browser, then log in to it
langsmith profiles create prod           # API key, taken from $LANGSMITH_API_KEY

Profiles live in ~/.langsmith/config.json, written owner-only; the CLI warns if it is readable by other users.

To keep an API key out of that file, save where it lives instead. The variable is read, or the command run, each time the profile is used:

langsmith profiles create prod --api-key-env PROD_LANGSMITH_API_KEY
langsmith profiles create prod --api-key-cmd 'op read "op://Private/LangSmith/credential"'

langsmith auth info shows where the active profile’s key comes from.

Other settings can be passed as flags:

langsmith --workspace  trace list --project my-app

Quick Start

# List tracing projects
langsmith projects list

# List recent traces in a project
langsmith traces list --project my-app --limit 5

# Get a specific trace with full detail
langsmith traces get  --project my-app --full

# List LLM calls with token counts
langsmith runs list --project my-app --run-type llm --include-metadata

# List datasets
langsmith datasets list

# List experiments for a dataset
langsmith experiments list --dataset my-eval-set

Product feedback

Submit feedback about the CLI directly from the terminal:

langsmith report "Trace output is hard to scan"
langsmith report --category bug "The command fails on Windows"

--category accepts bug, feature-request, usability (the default), documentation, or other. The feedback payload contains the note, category, CLI version, operating system, architecture, and a fixed CLI source value. It

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add langchain-ai/langsmith-cli
MCP 初心者?mcpskill.org のガイドから始めましょう →