Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

drip-billing点滴计费

Agent Skill

drip-billing 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,985

周安装

343

GitHub Stars

公开资料未说明

下载量

2,799
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:drip-billing(点滴计费)
来源仓库:https://github.com/lucas-309/drip-billing
安装命令:
openclaw skills install drip-billing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install drip-billing

简介

drip-billing 用于跟踪 AI 代理的使用情况和成本,支持 LLM 使用量、工具调用和运行记录的聚合。

  • 适合需要计量计费和成本归因的 AI 项目团队或企业用户。
  • 通过 Drip 平台记录使用情况,便于后续分析和预算控制。
  • 安装前需确认权限范围、维护状态,以及是否会触发外部 API 调用。
  • 建议核实计费接口的数据格式和隐私政策后再集成。

SKILL.md

name
drip-billing
description
Track AI agent usage and costs with Drip metered billing. Use when you need to record aggregate LLM usage, tool calls, agent runs, or other metered usage for billing.
license
MIT
compatibility
Requires Node.js 18+, npm, and a DRIP_API_KEY environment variable (Node 24.x if developing the Drip monorepo)
credentials
primary
DRIP_API_KEY
keyTypes
scope
Usage tracking, customers, billing, analytics, sessions
recommended
true
scope
Same as pk_live_ but on testnet
recommended
true
scope
Full API access — all endpoints including webhooks, key management, feature flags
recommended
false
scope
Same as sk_live_ but on testnet
recommended
false
leastPrivilege
Use pk_ (public) keys for usage tracking and billing. Only use sk_ (secret) keys if you need webhook management, API key rotation, or feature flags.
requiredEnvVars
description
API key from the Drip dashboard. Use a public key (pk_live_... or pk_test_...) for usage tracking. Only use a secret key (sk_live_... or sk_test_...) if you need admin operations (webhooks, key management).
required
true
description
Trusted Drip API base URL used for telemetry emission.
required
true
description
Workflow identifier for run telemetry.
required
false
dataSent
dataNotSent
securityNotes
metadata
author
drip
version
1.2

Drip Billing Integration

Track usage and costs for AI agents, LLM calls, tool invocations, and any metered workload.

When to Use This Skill

  • Recording LLM usage quantities (for example total tokens per call)
  • Tracking tool/function call costs
  • Logging agent execution traces
  • Metering API requests for billing
  • Attributing costs to customers or workflows

Security & Data Privacy

Key scoping (least privilege):

  • Use pk_ (public) keys for usage tracking, customer management, and billing. This is sufficient for all skill operations.
  • Only use sk_ (secret) keys if you need admin operations: webhook management, API key rotation, or feature flags.
  • Public keys (pk_) cannot manage webhooks, rotate API keys, or toggle feature flags — this limits blast radius if the key is compromised.

Metadata safety:

  • Include only minimal non-sensitive operational context in metadata.
  • Never include PII, secrets, passwords, API keys, raw user prompts, model outputs, or full request/response bodies.
  • Use a strict allowlist and redaction policy before telemetry writes.
  • Prefer hashes/IDs (for example queryHash) instead of raw user text.

What data is transmitted:

  • Usage quantities (meter name + numeric value)
  • Customer identifiers
  • Run lifecycle events (start/end, status, duration)
  • Sanitized metadata you explicitly provide (model family, tool name, status code, latency, hashed IDs)

What is NOT transmitted:

  • Raw prompts, completions, or model outputs
  • Environment variables or secrets
  • File contents or source code

Installation

npm install @drip-sdk/node

Environment Setup

# Recommended: public key — sufficient for all usage tracking and billing
export DRIP_API_KEY=pk_live_...

# Only if you need admin operations (webhooks, key management, feature flags):
# export DRIP_API_KEY=sk_live_...

Telemetry Safety Contract

  • Send only metadata needed for billing and diagnostics.
  • Do not send raw prompts, raw model outputs, raw query text, full request/response bodies, or credentials.
  • Prefer stable identifiers and hashes (for example queryHash) over raw user content.
  • Emit telemetry only to a trusted DRIP_BASE_URL.

Quick Start

1. Initialize the SDK

import { Drip } from '@drip-sdk/node';

// Reads DRIP_API_KEY from environment automatically (pk_live_... recommended)
const drip = new Drip({
  apiKey: process.env.DRIP_API_KEY
});

2. Track Usage (Simple)

await drip.trackUsage({
  customerId: 'customer_123',
  meter: 'llm_tokens',
  quantity: 1500,
  // metadata is optional — only include operational context, never PII or secrets
  metadata: { model: 'gpt-4' }
});

3. Record Agent Runs (Complete Execution)

await drip.recordRun({
  customerId: 'cus_123',
  workflow: 'research-agent',
  events: [
    { eventType: 'llm.call', model: 'gpt-4', quantity: 1700, units: 'tokens' },
    { eventType: 'tool.call', name: 'web-search', duration: 1500 },
    { eventType: 'llm.call', model: 'gpt-4', quantity: 1000, units: 'tokens' },
  ],
  status: 'COMPLETED',
});

4. Streaming Execution (Real-Time)

// Start the run
const run = await drip.startRun({
  customerId: 'cus_123',
  workflowSlug: 'document-processor',
});

// Log each step as it happens
await drip.emitEvent({
  runId: run.id,
  eventType: 'llm.call',
  model: 'gpt-4',
  quantity: 1700,
  units: 'tokens',
});

await drip.emitEvent({
  runId: run.id,
  eventType: 'tool.call',
  name: 'web-search',
  duration: 1500,
});

// Complete the run
await drip.endRun(run.id, { status: 'COMPLETED' });

Event Types

Event TypeDescriptionKey Fields
llm.callLLM API callmodel, quantity, units
tool.callTool invocationname, duration, status
agent.planPlanning stepdescription
agent.executeExecution stepdescription, metadata
errorError occurreddescription, metadata

Common Patterns

Wrap Tool Calls

async function trackedToolCall<T>(runId: string, toolName: string, fn: () => Promise<T>): Promise<T> {
  const start = Date.now();
  try {
    const result = await fn();
    await drip.emitEvent({
      runId,
      eventType: 'tool.call',
      name: toolName,
      duration: Date.now() - start,
      status: 'success',
    });
    return result;
  } catch (error: unknown) {
    const message = error instanceof Error ? error.message : 'Unknown error';
    await drip.emitEvent({
      runId,
      eventType: 'tool.call',
      name: toolName,
      duration: Date.now() - start,
      status: 'error',
      // Only include the error message — never include stack traces, env vars, or user data
      metadata: { error: message },
    });
    throw error;
  }
}

LangChain Auto-Tracking

import { DripCallbackHandler } from '@drip-sdk/node/langchain';

const handler = new DripCallbackHandler({
  drip,
  customerId: 'cus_123',
  workflow: 'research-agent',
});

// All LLM calls and tool usage automatically tracked
const result = await agent.invoke(
  { input: 'Research the latest AI news' },
  { callbacks: [handler] }
);

API Reference

See references/API.md for complete SDK documentation.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.62%
按下载量换算2,285

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills