कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

token-optimizer

smartpeopleconnected द्वारा

Coding Agents & IDEs
5.5kclawskills.sh द्वारा बताए गए डाउनलोड
21स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Reduce OpenClaw AI costs by 97%.

विवरण

यह स्किल क्या करती है

Reduces OpenClaw AI API costs by routing most requests to Claude Haiku, offloading heartbeats to local or alternative providers, enabling prompt caching, and trimming loaded context size. All changes preview before writing, and backups are created automatically before any modification.

Combines model routing, multi-provider heartbeat offloading, prompt caching, and config rollback into a single CLI with dry-run preview, rather than requiring manual edits across multiple config files.

इसे कब इस्तेमाल करें

  • Switching routine coding tasks from Sonnet to Haiku to cut token spend
  • Routing OpenClaw heartbeats to a local Ollama instance instead of paid API
  • Previewing config diffs before applying changes in a CI pipeline
  • Setting daily and monthly spend caps to prevent runaway API bills
  • Rolling back to a previous config after an optimization produces unexpected behavior

उदाहरण वर्कफ़्लो

इनपुट

User asks: reduce my OpenClaw API costs

एजेंट
  1. 1

    Run python cli.py analyze to inspect current model routing and heartbeat configuration

  2. 2

    Run python cli.py optimize to generate a diff preview of proposed changes

  3. 3

    Review the diff showing Haiku as default model, caching enabled, and budget limits added

  4. 4

    Run python cli.py optimize --apply to write changes to ~/.openclaw/

  5. 5

    Run python cli.py verify to confirm the new configuration is active

आउटपुट

OpenClaw configured with Haiku as default model, prompt caching enabled, and daily/monthly budget limits set, with a timestamped backup of the previous config saved to ~/.openclaw/backups/

इंस्टॉलेशन

clawhub install smartpeopleconnected/token-optimizer

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक