model-usage
하는 일
이 스킬은 CodexBar 도구의 로컬 비용 기록을 바탕으로 AI 모델별 사용 비용을 AI가 보고하도록 합니다. 어떤 AI 모델이 비용을 가장 많이 드는지 알고 싶은 사람들을 위한 스킬입니다.
사용하는 경우
- ✓Codex나 Claude에서 최근에 가장 많이 쓴 모델을 알고 싶을 때.
- ✓모델별 비용을 전부 나눠 보고 싶을 때.
- ✓스크립트가 읽을 수 있는 형식으로 모델별 비용 요약이 필요할 때.
스킬 링크
https://github.com/spinabot/brigade/blob/main/skills/model-usage/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Claude 모델마다 얼마를 썼는지 간단한 목록으로 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 CodexBar 도구나 사용자가 준 파일에서 비용 데이터를 읽습니다. 그다음 비용을 모델별로 묶어, 가장 최근 모델만 고르거나 모든 모델을 나열해 일반 텍스트나 JSON으로 보여 줍니다.
기술 내용 (원본 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.
TODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux.
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>. - 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의 로컬 비용 기록에서 오며, 스킬이 CodexBar 명령줄 도구를 통해 읽습니다.
토큰 수도 모델별로 나뉘나요?
아닙니다. 데이터는 모델별 비용을 주지만 토큰은 모델별로 나뉘지 않습니다.
대신 저장된 파일을 쓸 수 있나요?
네. 도구를 실시간으로 실행하는 대신, 저장된 비용 파일을 주거나 데이터를 파이프로 넣을 수 있습니다.
상세 정보
작성자의 원본 설명
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
repo: spinabot/brigade
인기도
- GitHub 스타
- 11k
- 순위
- #11727
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
1password
11k에이전트가 1Password 명령줄 도구를 설정하고 안전하게 로그인하도록 가르친 뒤, 필요할 때 저장된 비밀 정보를 읽거나 넣도록 합니다.
apple-reminders
11k에이전트가 터미널에서 Apple 미리 알림을 보고, 추가하고, 수정하고, 완료하고, 삭제하도록 돕습니다. 목록과 날짜 필터도 포함합니다.
bluebubbles
11k에이전트가 BlueBubbles를 통해 iMessage를 보내고 관리하도록 돕습니다. 문자, 첨부 파일, 탭백 반응, 수정, 그룹 설정을 포함합니다.
camsnap
11k에이전트가 이미 설정한 네트워크 보안 카메라에서 스냅샷을 찍고, 짧은 클립을 녹화하거나, 움직임을 감시하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.