Documentation Index
Fetch the complete documentation index at: https://docs.moda.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Moda automatically tracks your Anthropic Claude API calls. Messages, streaming, extended thinking, tool use, and content blocks are all captured with no additional code required.Setup
Supported Features
| Feature | Captured |
|---|---|
| Messages | Yes |
Streaming (messages.stream) | Yes |
| Extended thinking | Yes (captured as thinking content blocks) |
| Tool use | Yes (captured as tool_use / tool_result content blocks) |
| System prompts | Yes |
| Content blocks (text, image) | Yes |
| Token usage | Yes (input, output, reasoning tokens) |
| Model name | Yes (request and response) |
Extended Thinking
When using extended thinking, reasoning tokens and thinking content blocks are automatically captured.- The thinking content as
thinkingcontent blocks - Reasoning token count for cost tracking
- The final text response
Tool Use
Anthropic tool use is automatically captured with full request/response details:Streaming
Streaming is fully supported:Troubleshooting
Data not appearing?- Ensure
moda.init()is called before creating the Anthropic client - Call
moda.flush()(Python) orawait Moda.flush()(Node.js) before exit - Verify your API key is correct
- Ensure you’re using a model that supports extended thinking
- Check that the
thinkingparameter is properly configured
For full SDK documentation, see the Python SDK or Node.js SDK guides.