Install
openclaw skills install token-cost-optimizationToken savings and API cost optimization. Provides token calculator, three-tier optimization strategies (prompt compression / cache reuse / model downgrade), specific configuration guides, and quantified effect analysis.
openclaw skills install token-cost-optimizationUser mentions token savings, API cost optimization, prompt compression, cache strategy, model downgrade, cost analysis.
Run the calculation script, input conversation scale, and quickly estimate current token consumption and optimization potential:
python scripts/token_calculator.py
The script will prompt for:
Output: Current cost, optimized cost, savings percentage.
Ranked by effect / implementation cost:
| Tier | Strategy | Effect | Implementation Cost |
|---|---|---|---|
| L1 | Prompt compression & output truncation | 10-30% | Low |
| L2 | Conversation summary caching | 30-50% | Medium |
| L3 | Model downgrade + task routing | 50-70% | High |
Priority Recommendation: Implement in order L1 → L2 → L3, verifying results at each stage before proceeding.
Detailed strategies, configuration guides, and pitfalls → See references/tier-strategies.md
See the "Quantified Comparison" section in references/tier-strategies.md for details.