← Back to list

pricing
by Piebald-AI
Fast, cross-platform, real-time token usage tracker and cost monitor for Gemini CLI / Claude Code / Codex CLI / Qwen Code / Cline / Roo Code / Kilo Code / GitHub Copilot / OpenCode / Pi Agent / Piebald.
⭐ 91🍴 9📅 Jan 23, 2026
SKILL.md
name: pricing description: Guide for updating model pricing in Splitrail. Use when adding new AI model costs or updating existing pricing data.
Pricing Model Updates
Token pricing is defined in src/models.rs using compile-time phf (perfect hash function) maps for fast lookups.
Adding a New Model
- Add a
ModelInfoentry toMODEL_INDEX(line 65 insrc/models.rs) with:pricing: UsePricingStructure::Flat { input_per_1m, output_per_1m }for flat-rate models, orPricingStructure::Tieredfor tiered pricingcaching: Use the appropriateCachingSupportvariant (None,OpenAI,Anthropic, orGoogle)is_estimated: Set totrueif pricing is not officially published
- If the model has aliases (date suffixes, etc.), add entries to
MODEL_ALIASESmapping to the canonical model name
See existing entries in src/models.rs for the pattern.
Price Calculation
Use models::calculate_total_cost() when an analyzer doesn't provide cost data.
Common Pricing Sources
Score
Total Score
75/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

