Track per-call LLM cost and latency across Anthropic and OpenAI — for Node.js and Python.
Built for buildit.sh Argus observability dashboard.
npm install @buildit-developer/argus-nodeconst argus = require('@buildit-developer/argus-node')
argus.init({
endpoint: 'https://api.buildit.sh',
apiKey: 'bld_live_...', // from buildit.sh → Settings → API Keys
})
// Wrap your Anthropic client — all calls tracked automatically
const Anthropic = require('@anthropic-ai/sdk')
const client = argus.wrapAnthropic(new Anthropic())
const msg = await client.messages.create({
model: 'claude-haiku-4-5-20251001',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Hello' }],
})Also works with OpenAI:
const { OpenAI } = require('openai')
const client = argus.wrapOpenAI(new OpenAI())Manual tracking for any other provider:
const result = await argus.track({
provider: 'my-provider',
model: 'my-model',
opName: 'chat',
fn: () => myLLMCall(),
})pip install argus-pythonimport argus
argus.init(endpoint='https://api.buildit.sh', api_key='bld_live_...')
import anthropic
client = argus.wrap_anthropic(anthropic.Anthropic())
msg = client.messages.create(
model='claude-haiku-4-5-20251001',
max_tokens=1024,
messages=[{'role': 'user', 'content': 'Hello'}],
)- Go to app.buildit.sh → Settings → API Keys
- Create a key
- Pass it to
argus.init()