Community코딩 & 개발github.com

모델 사용량

CodexBar 로컬 비용 로그를 모델별로 요약하여 Codex 또는 Claude의 현재 또는 전체 사용량을 보여줍니다.

모델 사용량란 무엇인가요?

이 스킬은 CodexBar의 로컬 비용 로그에서 모델별 사용 비용을 추출하고 요약합니다. '현재 모델' (가장 최근 일일 항목) 또는 '전체 모델' 요약을 지원하며, Codex와 Claude 모두에 사용할 수 있습니다. macOS 및 Linux용 CLI 빌드가 포함된 CodexBar가 `PATH`에 있으면 로컬 데이터를 직접 읽고, 그 외의 경우에는 번들된 Python 요약 스크립트를 통해 내보낸 CodexBar JSON 파일을 `--input`으로 받아 처리합니다. 사용자는 간단한 명령어로 현재 모델의 비용이나 전체 모델의 비용을 텍스트 또는 JSON 형식으로 출력할 수 있어, AI 에이전트나 개발자가 자신의 API 사용 패턴과 비용을 빠르게 파악하는 데 유용합니다.

지원 대상✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/model-usage

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

모델 사용량은(는) 무엇을 하나요?

개요

CodexBar의 로컬 비용 로그에서 모델별 사용 비용을 가져옵니다. Codex 또는 Claude에 대해 '현재 모델'(가장 최근 일일 항목) 또는 '전체 모델' 요약을 지원합니다.

CodexBar는 macOS 및 Linux용 CLI 빌드를 제공합니다. codexbar가 PATH에 있으면 스킬이 로컬 사용량을 직접 읽습니다. 번들된 Python 요약기는 Python이 설치된 모든 곳에서 --input을 통해 내보낸 CodexBar JSON도 처리할 수 있습니다.

빠른 시작

  1. CodexBar CLI를 통해 비용 JSON을 가져오거나 JSON 파일을 전달합니다.
  2. 번들 스크립트를 사용하여 모델별로 요약합니다.
python {baseDir}/scripts/model_usage.py --provider codex --mode current
python {baseDir}/scripts/model_usage.py --provider codex --mode all
python {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty

현재 모델 로직

  • modelBreakdowns가 있는 가장 최근 일일 행을 사용합니다.
  • 해당 행에서 비용이 가장 높은 모델을 선택합니다.
  • 분류가 없으면 modelsUsed의 마지막 항목으로 대체합니다.
  • 특정 모델이 필요할 때는 --model <이름>으로 재정의합니다.

입력

  • 기본값: codexbar cost --format json --provider <codex|claude>을 실행합니다.
  • macOS 및 Linux: 실시간 로컬 사용량 읽기를 위해 위에 있는 번들 Homebrew 공식 설치 프로그램을 사용합니다. Linux 사용자는 CodexBar의 AUR 패키지 또는 공식 릴리스 tarball을 사용할 수도 있습니다.
  • 기타 플랫폼: 내보낸 CodexBar JSON과 함께 --input을 사용합니다.
  • 파일 또는 표준 입력:
codexbar cost --provider codex --format json > /tmp/cost.json
python {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all
cat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current

출력

  • 텍스트(기본값) 또는 JSON (--format json --pretty).
  • 값은 모델별 비용만 포함합니다. CodexBar 출력에서는 토큰이 모델별로 분할되지 않습니다.

참고

  • CLI 플래그 및 비용 JSON 필드는 references/codexbar-cli.md를 읽으십시오.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

관련 스킬