Skip to main content
Now Available on npm

Track AI Usage with One Line of Code

Drop-in replacement for OpenAI and Anthropic SDKs. Get automatic cost tracking, compliance evidence, and detailed analytics with less than 10ms overhead.

# Install in seconds
npm install @haiec/openai @haiec/anthropic
11 Models
Supported
<10ms
Overhead
100%
API Compatible
2 Providers
OpenAI & Claude

The Problem with API Keys Alone

Adding your OpenAI or Claude API key gives you aggregate usage. But you're flying blind on the details.

Which features are using AI?
What does each request cost?
How do you correlate usage to users?
Where is your compliance evidence?
Which prompts are most expensive?
How do you track dev vs production?

SDK Wrappers Give You Full Visibility

Replace one line of code. Get complete tracking, cost attribution, and compliance evidence for every API call.

Per-Request Costs

Know exactly what each API call costs. Track by feature, user, or environment.

Real-Time Analytics

See usage patterns, peak times, and token efficiency in real-time dashboards.

Compliance Evidence

Automatic audit trail with tamper-evident logs. SOC 2 and GDPR ready.

Installation Takes 60 Seconds

Three simple steps to get complete AI usage tracking

1

Install the Package

npm install @haiec/openai
# or for Claude
npm install @haiec/anthropic
2

Replace One Line

- import OpenAI from 'openai';
+ import TrackedOpenAI from '@haiec/openai';
// Change constructor
- const client = new OpenAI();
+ const client = new TrackedOpenAI({apiKey, haiecApiKey});
3

Done! Usage Tracked Automatically

Every API call is now logged with cost, tokens, latency, and compliance metadata.

100% API compatible - no other code changes needed

Everything You Need

Production-ready features built in

Automatic Cost Calculation

11 models with accurate pricing

Real-Time Tracking

See usage as it happens

Compliance Ready

SOC 2, GDPR, HIPAA evidence

<10ms Overhead

Minimal performance impact

100% API Compatible

Drop-in replacement

Error Handling

Graceful failures, no data loss

Included in All Plans

SDK wrappers are free with your HAIEC account

Free
with any HAIEC plan
  • @haiec/openai SDK
  • @haiec/anthropic SDK
  • Unlimited API calls tracked
  • Real-time cost monitoring
  • Compliance evidence
  • Priority support
Get Started

Ready to Track Your AI Usage?

Install in 60 seconds. Start tracking immediately.