Skip to main content
The Claude Agent SDK is an SDK for building agentic applications with Claude. LangSmith provides native integration with the Claude Agent SDK to automatically trace your agent executions, tool calls, and interactions with Claude models.

Installation

Install the LangSmith integration for Claude Agent SDK

Setup

Set your API keys:
You can find your LangSmith API key and project name in the LangSmith UI under Settings. For an Anthropic API key, refer to the Claude console.

Quickstart

To enable LangSmith tracing for your Claude Agent SDK application, call configure_claude_agent_sdk() at the start of your application:
Once configured, all Claude Agent SDK operations will be automatically traced to LangSmith, including:
  • Agent queries and responses
  • Tool invocations and results
  • Claude model interactions
  • MCP server operations