langsmith-deployment

For deployment and operations with LangSmith: choose cloud, hybrid/self-hosted (with control plane), or standalone deployment models; prepare or validate langgraph.json; create or roll back deployment revisions; integrate CI/CD with the control plane API; configure environment variables and keys; set up monitoring, alerts, and webhooks; and troubleshoot deployment, runtime, or scaling issues for LangChain/LangGraph applications.

Last repository push
GitHub Stars
106
Forks
16
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "langsmith-deployment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-85d9209c9d32a18d8bfdb7e9d682bbc2aafe4d7e33efd3f1eba07c0a01c7c382. Verify the upstream source and version against https://github.com/soba-labs/langchain-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For deployment and operations with LangSmith: choose cloud, hybrid/self-hosted (with control plane), or standalone deployment models; prepare or validate langgraph.json; create or roll back deployment revisions; integrate CI/CD with the control plane API; configure environment variables and keys; set up monitoring, alerts, and webhooks; and troubleshoot deployment, runtime, or scaling issues for LangChain/LangGraph applications.

0 Downloads

Introduction source: third_party · soba-labs · 0.0.1 Reference

SkillPi interpretation

Tasks
Deploy and operate production agent servers with LangSmith Deployment. Use when work involves choosing Cloud vs Hybrid/Self-hosted-with-control-plane vs Standalone, preparing/validating langgraph.json, creating deployments or revisions, rolling back revisions, wiring CI/CD to control-plane APIs, configuring environment variables and secrets, setting monitoring/alerts/webhooks, or troubleshooting deployment/runtime/scaling issues for LangChain/LangGraph applications.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Note: `setup_monitoring.py` generates a docs-aligned setup plan/templates. Alerts are configured in LangSmith UI per project.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: langsmith-deployment
description: "Deploy and operate production agent servers with LangSmith Deployment. Use when work involves choosing Cloud vs Hybrid/Self-hosted-with-control-plane vs Standalone, preparing/validating langgraph.json, creating deployments or revisions, rolling back revisions, wiring CI/CD to control-plane APIs, configuring environment variables and secrets, setting monitoring/alerts/webhooks, or troubleshooting deployment/runtime/scaling issues for LangChain/LangGraph applications."

LangSmith Deployment

Use this skill to deploy, revise, monitor, and troubleshoot LangGraph-based agents in LangSmith Deployment.

Use This Skill When

  • You need to deploy a new agent to LangSmith Cloud.
  • You need to create a new deployment revision from Git changes or env changes.
  • You need rollback guidance for a failing revision.
  • You need to choose deployment model: Cloud, Hybrid/Self-hosted with control plane, or Standalone server.
  • You need CI/CD automation using LangSmith Deployment control-plane APIs.
  • You need monitoring and alert setup aligned with current LangSmith alert model.
  • You need langgraph.json validation and deployment compatibility checks.

Deployment Model Selection

Model Use when Build/Source Operates infra
Cloud Fastest managed production path GitHub repo via control plane LangSmith
Hybrid/Self-hosted with control plane You need private data plane + centralized deployment UI/API Container image + control plane You
Standalone server You want direct Agent Server hosting without control plane Containerized server You

Core Workflow

  1. Validate local deployment config.
  2. Choose deployment model and endpoint strategy.
  3. Create deployment or revision.
  4. Configure environment variables and secrets correctly.
  5. Configure monitoring and alerts.
  6. Verify runtime behavior and keep rollback path ready.

Script-First Commands

1) Validate langgraph.json

uv run python skills/langsmith-deployment/scripts/validate_deployment.py --config langgraph.json --target cloud

2) Create a Cloud deployment (US default)

uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
  --name "my-agent-prod" \
  --owner my-org \
  --repo my-agent-repo \
  --branch main \
  --config langgraph.json

3) Create a Cloud deployment (EU)

uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
  --name "my-agent-prod" \
  --owner my-org \
  --repo my-agent-repo \
  --region eu

4) Use a self-hosted control plane

uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
  --name "my-agent-prod" \
  --owner my-org \
  --repo my-agent-repo \
  --control-plane-url https://<your-langsmith-host>/api-host

5) Create a revision for an existing deployment

uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
  --name "my-agent-prod" \
  --owner my-org \
  --repo my-agent-repo \
  --deployment-id <deployment-id> \
  --branch main

6) Roll back deployment revision

uv run python skills/langsmith-deployment/scripts/rollback_deployment.py \
  --deployment-id <deployment-id> \
  --list-revisions

uv run python skills/langsmith-deployment/scripts/rollback_deployment.py \
  --deployment-id <deployment-id>

7) Generate monitoring + alert setup plan

uv run python skills/langsmith-deployment/scripts/setup_monitoring.py \
  --project my-agent-prod \
  --output-json /tmp/monitoring-plan.json

Note: setup_monitoring.py generates a docs-aligned setup plan/templates. Alerts are configured in LangSmith UI per project.

Configuration Rules To Enforce

  • graphs is required in langgraph.json.
  • For Python projects, dependencies is required.
  • For JS projects (node_version present), dependencies may be handled via package.json.
  • env may be either a string path to an env file or an inline object map.
  • python_version should be one of 3.11, 3.12, 3.13 when set.
  • pip_installer should be one of auto, pip, uv when set.
  • node_version currently documented for LangGraph.js as 20.

API/Endpoint Notes

  • LangSmith Deployment control-plane API defaults are:
  • US: https://api.host.langchain.com.
  • EU: https://eu.api.host.langchain.com.
  • Self-hosted control-plane base URL is typically https://<host>/api-host.
  • For org-scoped API keys, include workspace/tenant id (X-Tenant-Id), exposed by scripts as --tenant-id.

Secrets And Environment Guidance

  • Never hardcode secrets in langgraph.json or source code.
  • Prefer environment injection from deployment UI, Kubernetes Secrets, or cloud secret managers.
  • Avoid passing secrets in shell arguments when possible; prefer LANGSMITH_API_KEY env var.
  • In control-plane deployment flows, tracing auth env handling differs from standalone; rely on deployment model docs before overriding tracing/auth vars.
  • For standalone server, ensure required runtime vars are present (DATABASE_URI, REDIS_URI, license key, and any app provider keys).

Verification After Deploy

  • Check deployment/revision status in LangSmith Deployments UI.
  • Verify server API and health endpoints from deployment runtime (/docs etc.).
  • Run a smoke invocation against your assistant/graph.
  • Confirm traces, latency, and error metrics in Monitoring dashboards.

References To Load By Task

  • references/deployment-guide.md: Deployment model choice and end-to-end execution.
  • references/cicd-integration.md: CI/CD stages, control-plane automation patterns, preview/prod strategy.
  • references/environment-management.md: Env var sources, secrets patterns, standalone required vars.
  • references/monitoring-alerts.md: Dashboards, alert model, webhook payload guidance.
  • references/scaling-configuration.md: Scaling responsibilities by model and tuning knobs.
  • references/troubleshooting-deployment.md: Failure triage and rollback strategy.

Script Map

  • scripts/validate_deployment.py: Validate langgraph.json and deployment readiness.
  • scripts/deploy_to_langsmith.py: Create deployment or revision via control-plane API.
  • scripts/deploy_to_langsmith.ts: TypeScript equivalent deploy/revision script.
  • scripts/rollback_deployment.py: List and rollback revisions.
  • scripts/setup_monitoring.py: Generate alert/dashboard/webhook setup plan.

Assets

  • assets/templates/langgraph-cloud.json: Cloud-oriented starter config.
  • assets/templates/github-actions-deploy.yml: CI/CD template for deployment automation.
  • assets/templates/kubernetes-deployment.yaml: Kubernetes template for self-managed environments.
  • assets/templates/.env.example: Env var template for safe sharing.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供 LangSmith 生产级代理服务器部署的完整端到端解决方案
  • 覆盖云/混合/独立三种部署模型选型,满足不同安全与合规需求
  • 集成 CI/CD、监控告警、回滚机制,显著提升运维效率与系统稳定性
Trigger Precision95/100

Highlights

  • 触发词精准覆盖部署全生命周期关键场景(创建/修订/回滚/监控/故障排查)
  • 明确区分 Cloud/EU/自托管控制平面等部署变体,边界清晰无歧义
Structure and Standards95/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 description 字段为空,实际描述内容位于 skill_body 内部

    Recommendation: 将 description 内容移至顶层 frontmatter 字段,保持规范一致性

  • 文档长度接近上限 Reported severity: Minor

    SKILL.md 文件约 450 行,接近 500 行建议上限

    Recommendation: 考虑将部分参考内容移至独立文档文件,保持主文件简洁

Highlights

  • Core Workflow 六步法清晰划分部署阶段,逻辑严谨
  • Script-First Commands 提供可直接复用的完整命令模板,降低使用门槛
  • Configuration Rules 明确约束 langgraph.json 格式,提升配置可靠性
Execution Reliability90/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    未使用标准 When to Use 章节标题,而是使用 Use This Skill When

    Recommendation: 建议统一使用 When to Use 作为标准章节标题,便于用户快速定位

Highlights

  • scripts 路径明确,参数命名规范,与 LangSmith API 保持一致
  • Secrets And Environment Guidance 强调安全最佳实践,避免硬编码密钥
  • Verification After Deploy 提供部署后验证 checklist,确保上线质量
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • api.host.langchain.com
  • eu.api.host.langchain.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Note: `setup_monitoring.py` generates a docs-aligned setup plan/templates. Alerts are configured in LangSmith UI per project.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.