Looking for TypeScript? See the TypeScript guide.
Install
Setup
Use theregister function to connect your application to Phoenix:
Run Claude Agent SDK
A simple Claude Agent SDK application that is now instrumented:Observe
With instrumentation enabled, you will see the following in Phoenix:- AGENT spans wrapping the full
query()call, capturing the prompt and final response - TOOL spans for each tool invocation made by the agent during execution (e.g., Bash commands, file reads)
Privacy Configuration
If you need to hide sensitive data, use the instrumentor directly instead ofauto_instrument:

