본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트394k · #64

model-usage

하는 일

AI 에이전트가 CodexBar 비용 로그를 읽고 모델별 사용 비용을 요약하도록 안내합니다. 어떤 AI 모델에 얼마를 썼는지 알고 싶은 사람을 위한 스킬입니다.

사용하는 경우

  • ✓최근 Codex나 Claude 사용 비용이 얼마인지 알고 싶을 때.
  • ✓모델별 지출 내역을 나누어 보고 싶을 때.
  • ✓여러 로그에서 특정 모델 하나의 비용이 필요할 때.

스킬 링크

https://github.com/openclaw/openclaw/blob/main/skills/model-usage/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/skills/model-usage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“지난달 Claude 모델에 얼마를 썼는지 모델별로 나누어 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 CodexBar 명령이나 사용자가 내보낸 파일에서 로컬 사용 데이터를 읽고, 비용을 모델별로 묶습니다. 가장 최근 모델만 보여 주거나 모든 모델의 전체 요약을 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Model usage

Overview

Get per-model usage cost from CodexBar's local cost logs. Supports "current model" (most recent daily entry) or "all models" summaries for Codex or Claude.

CodexBar ships CLI builds for macOS and Linux. When codexbar is on PATH, the skill reads local usage directly; the bundled Python summarizer also accepts exported CodexBar JSON through --input anywhere Python is available.

Quick start

  1. Fetch cost JSON via CodexBar CLI or pass a JSON file.
  2. Use the bundled script to summarize by model.
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

Current model logic

  • Uses the most recent daily row with modelBreakdowns.
  • Picks the model with the highest cost in that row.
  • Falls back to the last entry in modelsUsed when breakdowns are missing.
  • Override with --model <name> when you need a specific model.

Inputs

  • Default: runs codexbar cost --format json --provider <codex|claude>.
  • macOS and Linux: use the bundled Homebrew formula installer above for live local usage reads. Linux users can also use CodexBar's AUR package or official release tarballs.
  • Other platforms: use --input with exported CodexBar JSON.
  • File or stdin:
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

Output

  • Text (default) or JSON (--format json --pretty).
  • Values are cost-only per model; tokens are not split by model in CodexBar output.

References

  • Read references/codexbar-cli.md for CLI flags and cost JSON fields.
자주 묻는 질문

인터넷 접속이 필요한가요?

아닙니다. 스킬은 로컬 CodexBar 비용 로그를 읽으므로, 컴퓨터에 있는 데이터나 내보낸 파일로 작동합니다.

현재 모델만 보여 줄 수 있나요?

예. 현재 모드는 가장 최근 일별 기록에서 비용이 가장 높은 모델을 보여 줍니다.

어떤 AI 서비스를 다루나요?

CodexBar의 Codex와 Claude 사용량을 다룹니다.

상세 정보

작성자의 원본 설명

Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.

repo: openclaw/openclaw

인기도

GitHub 스타
394k
순위
#64
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬