Install
openclaw skills install drip-openclaw-billingAdd usage metering and billing telemetry to OpenClaw agents using Drip. Use when you need per-run cost attribution, tool-call usage tracking, and customer-level billing visibility.
openclaw skills install drip-openclaw-billingInstrument OpenClaw agents with Drip for run timelines, tool-call usage metering, and customer-level billing attribution.
clawhub install drip-openclaw-billing
Use slug only in CLI (
drip-openclaw-billing), notowner/slug.
start_run → events → usage → end_run)DRIP_API_KEY with /v1/* endpoints for full billing + telemetry control.OPENCLAW_IDENTITY_TOKEN with /openclaw/* endpoints.queryHash when needed).import { OpenClawBilling } from '@drip-sdk/node/openclaw';
const billing = new OpenClawBilling({
apiKey: process.env.DRIP_API_KEY,
customerId: 'cus_123',
workflowId: process.env.DRIP_WORKFLOW_ID ?? 'wf_openclaw',
});
await billing.withRun({ externalRunId: 'openclaw_req_456' }, async ({ runId }) => {
await billing.withToolCall({ runId, provider: 'brave', endpoint: '/res/v1/web/search' }, async () => {
// tool execution
});
});
from drip import Drip
import os
client = Drip(api_key=os.environ['DRIP_API_KEY'])
run = client.start_run(customer_id='cus_123', workflow_id='wf_openclaw', external_run_id='openclaw_req_456')
client.emit_event(run_id=run.id, event_type='tool.call', quantity=1, metadata={'provider': 'brave'})
client.track_usage(customer_id='cus_123', meter='brave_api_calls', quantity=1, metadata={'runId': run.id})
client.end_run(run.id, status='COMPLETED')
See references/API.md for: