Automatically monitor Claude API calls with seamless integration
@anthropic-ai/sdk
package installedAnthropicAgentMonitor
class for automatic Claude monitoring:
sessionId
:
Events not appearing in dashboard
monitor.flush()
is called if you’re not seeing events immediately.Cost calculations seem incorrect
Compliance violations not detected
enableComplianceChecks: true
is set in your monitor configuration. Compliance checks only run on agent responses.Tool calls not being tracked
tool_use
content. Ensure your tools are properly configured in your Claude API call.