본문으로 건너뛰기
cccskills
무료GitHub에 공개

clawdbot-cost-tracker

Track token use across Clawdbot sessions and estimate API costs for supported Claude, GPT, and Codex models. Save daily snapshots, compare usage between dates, and produce cost figures for daily or weekly spending reports.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Track Clawdbot AI model usage and estimate costs. Use when reporting daily/weekly costs, analyzing token usage across sessions, or monitoring AI spending. Supports Claude (opus/sonnet), GPT, and Codex models.

sundial-org/awesome-openclaw-skills스타 671(GitHub 671 + cccskills 0)
연동 도구OpenAI

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Reviewing daily or weekly AI spending
  • Comparing token use across sessions
  • Tracking model usage over time

포함된 파일(3)

  • SKILL.md2.4 KB
  • scripts/calculate-cost.js5.6 KB
  • scripts/snapshot-usage.js4.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Clawdbot Cost Tracker

Track token usage and estimate API costs across all Clawdbot sessions.

Quick Start

Get Current Usage

# Use sessions_list to get token data
sessions_list --limit 20 --messageLimit 0

Extract totalTokens and model from each session.

Calculate Cost

Model pricing (USD per million tokens):

ModelInputOutputAvg Ratio
claude-opus-4-5$15$7530/70
claude-sonnet-4$3$1530/70
codex-mini-latest$1$530/70
gpt-4o$2.5$1030/70
gpt-4o-mini$0.15$0.630/70

Cost formula (assuming 30% input, 70% output):

cost = tokens * (0.3 * input_price + 0.7 * output_price) / 1,000,000

Daily Tracking

Save Usage Snapshot

Store daily snapshots in memory/usage/YYYY-MM-DD.json:

{
  "date": "2026-01-29",
  "timestamp": "2026-01-29T08:20:00+08:00",
  "sessions": {
    "session_key": {
      "model": "claude-opus-4-5",
      "totalTokens": 123456,
      "channel": "discord"
    }
  },
  "summary": {
    "totalTokens": 250000,
    "byModel": {
      "claude-opus-4-5": 220000,
      "codex-mini-latest": 30000
    }
  }
}

Calculate Daily Cost

Compare consecutive days to get daily usage:

daily_tokens = today.totalTokens - yesterday.totalTokens
daily_cost = estimate_cost(daily_tokens, model)

Scripts

scripts/snapshot-usage.js

Creates a usage snapshot from current session data.

node scripts/snapshot-usage.js [output-dir]
# Default output: memory/usage/YYYY-MM-DD.json

scripts/calculate-cost.js

Calculates cost for a date range.

node scripts/calculate-cost.js [date]
# Default: today
# Output: JSON with token delta and estimated cost

Integration with Daily Report

Add to HEARTBEAT.md:

  1. Call sessions_list to get current tokens
  2. Load previous day's snapshot from memory/usage/
  3. Calculate delta and estimate cost
  4. Include in daily report format:
    💰 **Clawdbot Cost** (yesterday)
    • Used: 45.2k tokens
    • Estimated: ~$1.23
    

Color Conventions (Chinese Style)

For financial displays in Chinese context:

  • 🔴 Red = Up/Increase
  • 🟢 Green = Down/Decrease

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

1password

무료

Set up and use the 1Password command-line tool `op` to sign in, verify account access, and work with vault data. The skill covers single or multiple accounts and shows how to run commands or fill templates with secrets while limiting exposure in logs and files.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Set up the `op` command-line tool
  • Sign in and verify access to an account
  • Run a command with vault secrets
sundial-org/awesome-openclaw-skills6712026년 3월 7일 업데이트

Check live prices, price changes, and trading volume for Shanghai, Shenzhen, and Beijing stocks. Review intraday volume patterns and possible large-investor activity, and manage holdings with cost, quantity, and profit or loss summaries.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking current prices for A-share stocks
  • Reviewing intraday volume and large-investor signals
  • Managing a stock portfolio and checking profit or loss
sundial-org/awesome-openclaw-skills6712026년 3월 7일 업데이트

Scan HTML or JSX files and directories for accessibility issues such as missing image descriptions, form labels, and keyboard access problems. The skill identifies WCAG guideline failures and provides suggested code fixes alongside its findings.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking a new component before release
  • Auditing an inherited codebase
  • Preparing for an accessibility compliance review
sundial-org/awesome-openclaw-skills6712026년 3월 7일 업데이트

Plan A/B tests that compare page or product changes, with clear hypotheses, sample sizes, success metrics, and traffic allocation. Get a structured test plan and guidance for interpreting results and deciding what to try next.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing signup button copy
  • Planning a pricing page experiment
  • Estimating sample size and test duration
sundial-org/awesome-openclaw-skills6712026년 3월 7일 업데이트

Turn LinkedIn profile URLs into coordinated account-based outreach. The workflow gathers profile details, enriches contacts with email and phone data, looks up mailing addresses, and prepares email, LinkedIn, and handwritten-letter touches with the specified services.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Building a multichannel campaign from LinkedIn prospect URLs
  • Enriching prospect records with work contact details
  • Coordinating email, LinkedIn, and handwritten mail outreach
sundial-org/awesome-openclaw-skills6712026년 3월 7일 업데이트

accli

무료

Work with Apple Calendar on macOS to list calendars, find and view events, and check busy time slots across calendars. Create, update, or delete events with details such as dates, locations, and descriptions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing events on a work or personal calendar
  • Checking availability before scheduling a meeting
  • Creating or updating a calendar event
sundial-org/awesome-openclaw-skills6712026년 3월 7일 업데이트

sundial-org의 스킬 모두 보기

이 스킬의 문제 신고