cost-openrouter
하는 일
이 스킬은 OpenRouter 계정의 지출, 키 한도, 단일 요청의 청구 금액을 확인합니다. OpenRouter를 쓰면서 실제로 얼마가 청구되었는지 보고 싶은 사람을 위한 스킬입니다.
사용하는 경우
- ✓오늘, 이번 주, 이번 달 OpenRouter에 얼마가 청구되었는지 알고 싶을 때.
- ✓키가 지출 한도에 가까워졌는지 의심될 때.
- ✓특정 요청 하나의 실제 청구 금액을 알고 싶을 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-openrouter/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“OpenRouter 키가 한도에 얼마나 가까운지, 이번 달에 얼마를 썼는지 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 사용자의 키로 OpenRouter를 호출하되, 사용자가 허락한 뒤에만 호출합니다. 받은 수치를 공식 금액으로 보여 주며, 키는 출력하거나 저장하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Cost OpenRouter
Network skill. Ask the user before running it, and run it only with their yes.
node ${CLAUDE_PLUGIN_ROOT}/scripts/openrouter.mjs key --yes
node ${CLAUDE_PLUGIN_ROOT}/scripts/openrouter.mjs generation gen-abc123 --yes
node ${CLAUDE_PLUGIN_ROOT}/scripts/openrouter.mjs credits --yes
Rules
- Without
--yesthe script prints the call it would make and sends nothing. - The key comes from
OPENROUTER_API_KEY(credits:OPENROUTER_MANAGEMENT_KEY). A key the user stored as the plugin optionopenrouterApiKeyarrives asOPENROUTER_API_KEYtoo: the plugin's SessionStart hook puts it there for this session's commands when the variable is not already set (ADR-506). Never ask the user to paste a key, never print, log or write one. - OpenRouter's
usage.cost/total_costis authoritative; do not recompute it from list prices. creditsneeds a management key (a normal key returns 403). A fresh generation can 404 briefly: retry.- BYOK rows carry the 5% OpenRouter fee in
usage, the provider's charge inupstream_inference_cost: show both, labelled. - Fallback and
openrouter/autocan change the billed model: reportmodelandprovider_nameas returned.
자주 묻는 질문
허락 없이 네트워크 호출을 하나요?
아닙니다. 승인 옵션 없이 실행하면 호출 내용만 보여 주고 아무것도 보내지 않습니다.
키는 어디서 가져오나요?
컴퓨터의 환경 변수에서 가져옵니다. 스킬이 채팅에 키를 붙여 넣으라고 요청하지 않습니다.
크레딧 점검이 실패하는 이유는 무엇인가요?
크레딧 점검에는 관리용 키가 필요하며, 일반 키는 이 점검에서 거부됩니다.
상세 정보
작성자의 원본 설명
OpenRouter real spend — key limit and usage today/week/month, one request's billed cost by generation id, account credits. Use when asked what OpenRouter charged or whether a key is near its limit. Network and API key: asks first.
repo: ruvnet/ruflo
인기도
- GitHub 스타
- 81k
- 순위
- #1605
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.