Integration Methods
Proxy Integration
Route requests through Helicone’s Anthropic proxy.
AI Gateway
Use Claude through the unified AI Gateway with OpenAI-compatible API.
Async Logging
Zero-latency logging using OpenLLMetry.
AWS Bedrock
Track Claude models on AWS Bedrock.
Quick Start
Get your API keys
You’ll need:
- Your Anthropic API key from console.anthropic.com
- Your Helicone API key from helicone.ai/developer
Update your base URL
Change the base URL to route requests through Helicone:
- TypeScript/JavaScript
- Python
- cURL
View your logs
All requests are now logged to your Helicone dashboard.
Streaming Support
Helicone fully supports Anthropic streaming:- TypeScript/JavaScript
- Python
Prompt Caching
Helicone tracks Anthropic’s prompt caching, showing cache hits and cost savings:Tool Use (Function Calling)
Track Claude’s tool use with full visibility:Vision
Use Claude with images:Session Tracking
Track multi-turn conversations:Custom Properties
Add custom metadata to track important context:Using the AI Gateway
Access Claude through the AI Gateway with OpenAI-compatible API:- OpenAI SDK
- Anthropic SDK
AWS Bedrock
Track Claude models on AWS Bedrock:Response Caching
Reduce costs with Helicone’s response caching:Zero-Latency Integration
For production applications, use async logging:Best Practices
Use environment variables
Use environment variables
Never hardcode API keys:
Track sessions and users
Track sessions and users
Include session and user IDs:
Leverage prompt caching
Leverage prompt caching
Use Anthropic’s prompt caching for large contexts:
Monitor token usage
Monitor token usage
Track both input and output tokens, plus cache usage:
Troubleshooting
Requests not appearing in dashboard
Requests not appearing in dashboard
- Verify your Helicone API key is correct
- Check the
Helicone-Authheader format:Bearer sk-helicone-... - Ensure you’re using
https://anthropic.helicone.ai - Confirm your Anthropic API key is valid
Authentication errors
Authentication errors
- Pass Anthropic API key as
apiKeyparameter - Pass Helicone API key in
Helicone-Authheader - Format:
Helicone-Auth: Bearer sk-helicone-...
Streaming not working
Streaming not working
- Ensure you’re using the latest
@anthropic-ai/sdkversion - Check that your base URL is correct
- Streaming works with both proxy and AI Gateway methods
Prompt caching not showing
Prompt caching not showing
- Prompt caching only works with Claude 3.5 Sonnet and later
- Cache blocks must be at least 1024 tokens
- View cache metrics in the Helicone dashboard
Supported Models
Helicone supports all Anthropic models:- Claude 3.5 Sonnet (
claude-3-5-sonnet-20240620) - Claude 3 Opus (
claude-3-opus-20240229) - Claude 3 Sonnet (
claude-3-sonnet-20240229) - Claude 3 Haiku (
claude-3-haiku-20240307) - All future Claude models
Next Steps
AI Gateway
Use Claude with the unified AI Gateway
Session Tracking
Track multi-turn conversations
Async Logging
Zero-latency integration
Custom Properties
Add custom metadata
