In an agent-based workspace, create an agent once before sending traces. Use agent addressing to select its identifier and environment. If an integration requires
project_name, use the selected environment’s tracer_session_name as a compatibility value.Installation
Install the LangSmith integration for Claude Agent SDKSetup
Sending traces to an agent requireslangsmith>=0.14.9 in Python or langsmith@>=0.11.0 in TypeScript.
Set your API keys, agent identifier, and environment:
Quickstart
To enable LangSmith tracing for your Claude Agent SDK code, callconfigure_claude_agent_sdk() before running your agent:
- Agent queries and responses
- Tool invocations and results
- Claude model interactions
- MCP server operations
Connect these docs to your agent of choice via MCP for real-time answers.

