Skip to main content
Integrate Helicone with Anthropic to track and monitor your Claude model usage with complete observability.

Quick Start

Integrate Helicone with Anthropic by changing your base URL and adding your API key:

Installation

Configuration

Basic Setup

Only two changes are needed:
  1. Change base URL to https://anthropic.helicone.ai
  2. Add Helicone-Auth header with your API key

Environment Variables

Set up your environment:
.env

Features

Streaming Support

Helicone fully supports streaming responses:

Prompt Caching

Helicone automatically tracks Anthropic’s prompt caching:
Helicone dashboard shows cache write tokens, cache read tokens, and cost savings from Anthropic’s prompt caching.

Vision Models

Log image inputs with Claude:

Tool Use

Track Claude’s tool usage:

Custom Properties

Add metadata to your requests:
Learn more about custom properties →

Advanced Usage

User Tracking

Track requests by user:

Session Tracking

Group related requests into sessions:

Prompt Tracking

Track prompt versions:

AWS Bedrock

Use Claude via AWS Bedrock with Helicone:

Troubleshooting

Check these common issues:
  1. Verify your HELICONE_API_KEY is correct
  2. Ensure base URL is https://anthropic.helicone.ai (no /v1)
  3. Check that Helicone-Auth header includes Bearer prefix
  4. Verify anthropic-version header is set (required by Anthropic)
  5. Wait 10-30 seconds for requests to appear
Still not working? Check the response for error details.
Anthropic requires the anthropic-version header. Add it to your requests:
The SDK usually handles this automatically.
Helicone does not add rate limits. If you’re hitting rate limits, they’re from Anthropic. The error message will be passed through.

Examples from Source

See real integration examples in the repository:

Next Steps

Custom Properties

Add metadata to your requests

Sessions

Track multi-turn conversations

Prompt Caching

Monitor cache performance

Dashboard

Explore your analytics