model-usage
यह क्या करती है
यह AI एजेंट को CodexBar लागत लॉग पढ़ने और हर मॉडल पर उपयोग की लागत का सारांश बनाने के चरण बताती है। यह उन लोगों के लिए है जो जानना चाहते हैं कि उन्होंने किन AI मॉडलों के लिए कितना पैसा दिया।
कब इस्तेमाल करें
- ✓जब आप जानना चाहते हों कि आपके हाल के Codex या Claude उपयोग की लागत कितनी रही।
- ✓जब आप मॉडल के हिसाब से खर्च का विवरण चाहते हों।
- ✓जब आपको सभी लॉग में किसी एक खास मॉडल की लागत चाहिए।
Skill का लिंक
https://github.com/openclaw/openclaw/blob/main/skills/model-usage/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पिछले महीने मैंने Claude मॉडलों पर कितना खर्च किया, मॉडल के हिसाब से बांटकर बताइए?”
हर हफ़्ते 5 नई skills, 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 लागत लॉग पढ़ती है, इसलिए वह आपके कंप्यूटर पर पहले से मौजूद डेटा या निर्यात की गई फ़ाइल से काम करती है।
क्या यह केवल मौजूदा मॉडल दिखा सकती है?
हां। current मोड सबसे हाल के दैनिक रिकॉर्ड में सबसे ज़्यादा लागत वाला मॉडल दिखाता है।
यह कौन-सी 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
discord-user-post
394kयह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
मिलती-जुलती skills
dashboard-builder
280kयह आपके एजेंट को उपयोगी monitoring dashboards बनाने में मदद करता है। यह data को ऐसे charts में बदलता है जो सिस्टम से जुड़े ज़रूरी सवालों के जवाब देते हैं।
data-throughput-accelerator
280kयह आपके एजेंट को बड़ी मात्रा में data को तेज़ी से भेजने में मदद करता है। यह bottlenecks ढूँढता है और पक्का करता है कि data तेज़ी से और सही तरीके से पहुँचे।
ecc-tools-cost-audit
280kएजेंट को tool costs का ऑडिट करने में मदद करता है और अचानक बढ़े खर्च की जाँच करता है। billing की गड़बड़ियाँ ढूँढने और resource usage को बेहतर बनाने के लिए उपयोगी है।