Xpersona
D

Drip OpenClaw Billing

CLAWHUB · Unverified

Add usage metering and billing telemetry to OpenClaw agents using Drip. Use when you need per-run cost attribution, tool-call usage tracking, and customer-le...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175vw40fhkr3bm546tvt7skw583zkwm:drip-openclaw-billing
  1. Install using `clawhub skill install s175vw40fhkr3bm546tvt7skw583zkwm:drip-openclaw-billing` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/lucas-309/drip-openclaw-billing before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lucas-309-drip-openclaw-billing/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

146,871 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: drip-openclaw-billing
description: Add 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.
license: MIT
compatibility: OpenClaw runtime + Drip API. Supports Node.js and Python integrations.
credentials:
  primary: DRIP_API_KEY
  alternate: OPENCLAW_IDENTITY_TOKEN
requiredEnvVars:
  - name: DRIP_API_KEY
    description: Drip API key for /v1 telemetry APIs (recommended default path).
    required: false
  - name: OPENCLAW_IDENTITY_TOKEN
    description: OpenClaw identity token for /openclaw endpoints.
    required: false
  - name: DRIP_BASE_URL
    description: Optional API base URL (default https://api.drippay.dev).
    required: false
  - name: DRIP_WORKFLOW_ID
    description: Workflow ID for run lifecycle telemetry.
    required: false
metadata:
  author: lucas-309
  publisher: lucas-309
  version: "1.1.1"
  securityModel: "least-privilege telemetry keys, sanitized metadata, no raw prompt/output/PII"
---

# Drip OpenClaw Billing

Instrument OpenClaw agents with Drip for **run timelines**, **tool-call usage metering**, and **customer-level billing attribution**.

## Install (copy/paste)

```bash
clawhub install drip-openclaw-billing
```

> Use slug only in CLI (`drip-openclaw-billing`), not `owner/slug`.

## What this gives you

- Per-run billing traceability (`start_run` → events → usage → `end_run`)
- Metered usage by unit (tokens, tool calls, API calls, compute time)
- Customer/project-level cost and usage visibility in Drip
- Idempotent writes for retry-safe telemetry

## Integration paths

1. **Recommended**: `DRIP_API_KEY` with `/v1/*` endpoints for full billing + telemetry control.
2. **Lightweight**: `OPENCLAW_IDENTITY_TOKEN` with `/openclaw/*` endpoints.

## Security rules

- Use least-privilege runtime keys (prefer scoped telemetry key).
- Never send raw prompts, raw model outputs, credentials, or PII.
- Send sanitized metadata only (hash content fields like `queryHash` when needed).
- Emit stable idempotency keys for all writes.
- Validate payload schemas in staging before production rollout.

## Quickstart (Node.js)

```ts
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
  });
});
```

## Quickstart (Python)

```py
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(

_meta.json

{
  "ownerId": "kn7e71vvsnt6c0n3ew8mg020xx8273m4",
  "slug": "drip-openclaw-billing",
  "version": "1.1.1",
  "publishedAt": 1774951223428
}

references/API.md

# Drip OpenClaw Billing API Reference (v1.1.0)

## Primary flow (recommended)

1) `POST /v1/runs` start run  
2) `POST /v1/events` emit tool/event timeline  
3) `POST /v1/usage` emit billable usage  
4) `PATCH /v1/runs/:id` finalize status

Use idempotency keys for retry-safe writes.

## OpenClaw identity flow (lightweight)

Use `X-OpenClaw-Identity` with `/openclaw/*` endpoints for lightweight usage tracking.

## Minimal payload guidance

Allowed metadata examples:
- provider name
- endpoint name
- status code
- latency ms
- hashed request fingerprints (`queryHash`)

Do not send:
- raw prompts or model outputs
- auth tokens / credentials
- personal data
- raw request/response bodies

## Failure strategy

- Fail-open for telemetry writes in user-facing paths (configurable)
- Keep idempotency key stable across retries
- Mark run `FAILED` with compact error code when terminal failure occurs

## Verification checklist

- Run appears in Drip dashboard
- Event count matches tool invocation count
- Usage meters increment correctly
- No duplicate usage writes under retry

skill-card.md

## Description:

Add usage metering and billing telemetry to OpenClaw agents using Drip for per-run cost attribution, tool-call usage tracking, and customer-level billing visibility.

This skill is ready for commercial/non-commercial use.

## Publisher:

[lucas-309](https://clawhub.ai/user/lucas-309)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to instrument OpenClaw agents with Drip billing telemetry, including run lifecycle events, tool-call usage metering, and customer-level cost attribution.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Billing telemetry could expose sensitive prompts, outputs, credentials, PII, or raw request bodies if callers send unsanitized data.

Mitigation: Send sanitized metadata only, keep the documented restriction against raw prompts, raw outputs, credentials, PII, and raw request bodies, and hash content fields such as query fingerprints when needed.

Risk: Incorrect telemetry endpoint or credential scope could route billing data to the wrong Drip environment or over-privileged key.

Mitigation: Use scoped telemetry keys, verify DRIP_BASE_URL before production, and prefer the documented DRIP_API_KEY path for complete run, event, and usage telemetry.

Risk: Retries can duplicate billable usage events if writes are not idempotent.

Mitigation: Emit stable idempotency keys for writes and verify in staging that retries do not create duplicate usage records.

## Reference(s):

- [Drip OpenClaw Billing API Reference](artifact/references/API.md)
- [ClawHub skill page](https://clawhub.ai/lucas-309/skills/drip-openclaw-billing)
- [ClawHub publisher profile](https://clawhub.ai/user/lucas-309)

## Skill Output:

**Output Type(s):** [Guidance, Code, Shell commands, Configuration]

**Output Format:** [Markdown with TypeScript, Python, and shell snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Guidance emphasizes sanitized telemetry metadata, scoped credentials, idempotency keys, and fail-open billing writes.]

## Skill Version(s):

1.1.1 (source: server release metadata and skill metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Drip OpenClaw Billing and adjacent AI workflows.