본문으로 건너뛰기
Skillpedia
기타81k · #1605

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가 스킬을 읽고 지침을 따릅니다.

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

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

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 --yes the 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 option openrouterApiKey arrives as OPENROUTER_API_KEY too: 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_cost is authoritative; do not recompute it from list prices.
  • credits needs 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 in upstream_inference_cost: show both, labelled.
  • Fallback and openrouter/auto can change the billed model: report model and provider_name as 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬