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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- Fetch cost JSON via CodexBar CLI or pass a JSON file.
- 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
modelsUsedwhen 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
--inputwith 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.mdfor 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.
댓글
- …
이 저장소의 다른 스킬
discord-user-post
394k에이전트가 승인한 메시지를 정확한 채널을 확인한 뒤 Discord 데스크톱 앱에서 내 계정으로 올리도록 돕습니다.
discrawl
394k에이전트가 저장된 로컬 Discord 메시지 보관본을 검색하고 요약하며, 최신 상태를 확인하고 다이렉트 메시지를 읽도록 돕습니다.
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.