Langsmith Data Migration Tool banner
langchain-ai langchain-ai

Langsmith Data Migration Tool

Data community

Description

A CLI tool to help users migrate data from their LangSmith cloud/self-hosted workspaces

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

LangSmith Data Migration Tool

A Python CLI for migrating users and roles, datasets, experiments, annotation queues, project rules, prompts, charts, Engine issues, and Fleet resources between LangSmith instances, plus CSV-driven access sync for a single LangSmith deployment.

Quick Start

# Install (requires uv: https://docs.astral.sh/uv/)
uv tool install "langsmith-data-migration-tool @ https://github.com/langchain-ai/langsmith-data-migration-tool/releases/latest/download/langsmith_data_migration_tool-0.0.83-py3-none-any.whl"

# Set up environment variables
export LANGSMITH_OLD_API_KEY="your_source_api_key"
export LANGSMITH_NEW_API_KEY="your_destination_api_key"

# Test connections
langsmith-migrator test

# Start migrating
langsmith-migrator datasets

Features

  • All-in-One Wizard: Interactive migration of all resources (migrate-all)
  • Users & Roles: Migrate custom roles, org members, and workspace memberships between instances
  • Export Users to CSV: Export active org and workspace members to a members CSV (export-users) that round-trips into the users --members-csv importer
  • Single-Instance Access Sync: Apply CSV-driven add/update or authoritative access sync to one LangSmith instance (users --csv ... [--sync]), including multi-row workspace role unionization for custom ABAC roles
  • Datasets: Migrate datasets with examples and file attachments
  • Experiments: Include experiments, runs, and feedback during dataset migration (datasets --include-experiments) or through migrate-all
  • Annotation Queues: Transfer queue configurations
  • Project Rules: Copy automation rules with project mapping and optional project creation in interactive flows
  • Prompts: Migrate prompts (latest by default, full history with --include-all-commits)
  • Charts: Migrate monitoring charts with filter preservation
  • Custom Model Pricing: Migrate workspace-custom model price entries (model-pricing). Global built-in p