본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

session-cost

khaney64 제작

Coding Agents & IDEs
1.7kclawskills.sh가 보고한 다운로드 수
1스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Analyze OpenClaw session logs to report token usage, costs, and performance metrics grouped by model.

설명

이 스킬이 하는 일

Reads OpenClaw session .jsonl log files and reports token usage, costs, and performance metrics grouped by agent and model. Supports filtering by agent name, provider, and time range. Output formats include plain text, JSON, compact table, and a Discord-friendly summary.

Aggregates costs and token counts across multiple agents and models in one command without needing to check each provider dashboard separately.

사용 시점

  • Checking total API spend across all agents for the past week
  • Comparing token costs between Anthropic and OpenAI providers
  • Generating a daily usage digest formatted for a Discord bot
  • Auditing how much a specific agent consumed during a debugging session
  • Exporting session cost data as JSON for further processing

예시 워크플로

입력

User asks: how much did I spend on Anthropic models in the last 24 hours?

에이전트
  1. 1

    Run node scripts/session-cost.js --provider anthropic --offset 24h

  2. 2

    Scan ~/.openclaw/agents/ for all agent directories

  3. 3

    Read .jsonl session files matching the time and provider filters

  4. 4

    Group results by agent and model, compute token and cost totals

출력

A breakdown of sessions, token counts, and dollar costs per agent and model for Anthropic usage in the past 24 hours

설치

clawhub install khaney64/session-cost

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크