Drip OpenClaw Billing

v1.1.1

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...

2· 569·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for lucas-309/drip-openclaw-billing.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Drip OpenClaw Billing" (lucas-309/drip-openclaw-billing) from ClawHub.
Skill page: https://clawhub.ai/lucas-309/drip-openclaw-billing
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install drip-openclaw-billing

ClawHub CLI

Package manager switcher

npx clawhub@latest install drip-openclaw-billing
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill's name and description match the behavior in SKILL.md and references (start_run, events, usage, end_run). Requested credentials (DRIP_API_KEY, OPENCLAW_IDENTITY_TOKEN) and optional DRIP_BASE_URL/DRIP_WORKFLOW_ID are appropriate for a telemetry/billing integration. One minor inconsistency: the registry summary at the top of the package metadata states 'Required env vars: none', while SKILL.md and _meta.json list several env vars — confirm which is authoritative.
Instruction Scope
SKILL.md confines instructions to telemetry operations (start run, emit events, track usage, end run) and explicitly forbids sending raw prompts, outputs, credentials, or PII. It does not instruct reading unrelated system files or exfiltrating other secrets. The Node/Python examples assume existing Drip SDKs but do not include explicit dependency installation or commands to collect extra system context — verify SDK availability on your agent runtime.
Install Mechanism
This is an instruction-only skill with no install spec or code — low risk because nothing is written to disk by the skill itself. Note: SKILL.md references npm/@drip-sdk and a Python 'drip' package but the skill provides no dependency list or install steps for those SDKs (other than 'clawhub install' - which may be platform-managed). Confirm how the runtime will provide the SDKs before relying on the examples.
Credentials
The only environment/credential requirements (DRIP_API_KEY and alternate OPENCLAW_IDENTITY_TOKEN, plus optional base URL and workflow id) are proportionate to a billing/telemetry integration. All listed env vars are reasonable for the stated purpose. The SKILL.md marks them optional; verify whether your deployment requires them and prefer least-privilege/scoped keys as recommended.
Persistence & Privilege
No elevated privileges requested: always:false, user-invocable:true, and there is no indication the skill modifies other skills or system-wide configs. The skill does not request persistent system presence beyond being invoked by the agent.
Assessment
This skill appears to do exactly what it says: send run, event, and usage telemetry to Drip. Before installing: 1) Confirm which metadata is authoritative (the registry summary said 'no required env vars' but SKILL.md/_meta.json list DRIP_API_KEY and others). 2) Use a scoped, least-privilege DRIP_API_KEY (or the lightweight OPENCLAW_IDENTITY_TOKEN) and avoid giving any key that allows full account control. 3) Verify the Drip SDKs referenced in the examples are available in your agent runtime or supply/install them in a controlled way. 4) Validate in staging that the agent never sends raw prompts, model outputs, credentials, or PII (the skill requests this, but enforcement depends on your instrumentation). 5) Review the concrete Drip endpoints you will be posting to (DRIP_BASE_URL) and confirm you trust that service and its retention/processing policies. If you want higher assurance, ask the publisher for the actual SDK/package sources or a link to the Drip API docs/owner homepage before deploying in production.

Like a lobster shell, security has layers — review code before you run it.

latestvk97fm97pzktbvb0qh8fkb17eyh83yfw2
569downloads
2stars
13versions
Updated 3w ago
v1.1.1
MIT-0

Drip OpenClaw Billing

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

Install (copy/paste)

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)

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)

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')

Load detailed API docs

See references/API.md for:

  • endpoint shapes
  • run/event/usage lifecycle
  • pricing units and rate-limit notes
  • error handling patterns

Comments

Loading comments...