One-click install
npx skills add https://github.com/dz07/goku-skills --skill token-optimizer-dz07
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-optimizer
Source: https://github.com/dz07/goku-skills/tree/main/skills/openclaw-token-optimizer
Command: npx skills add https://github.com/dz07/goku-skills --skill token-optimizer-dz07

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Reduce OpenClaw API costs and token usage by optimizing context loading and model routing.

Core Features & Use Cases

  • Lazy context loading to minimize loaded data per session.
  • Smart model routing to select cheapest model tier per task.
  • Heartbeat optimization and budget tracking for cost governance.
  • Multi-provider strategy support and native OpenClaw 2026.2.15 features.

Quick Start

Generate optimized AGENTS.md and test routing by providing a sample prompt to see which files load and how the model selection changes.

Frequently Asked Questions about token-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce OpenClaw API token costs and optimize context loading?

Reduce OpenClaw API token costs by applying lazy context loading to minimize loaded data per session and smart model routing to select the cheapest model tier for each task. It coordinates heartbeat optimization and budget tracking for ongoing cost governance.

What is smart model routing and how does it lower API expenses?

Smart model routing lowers API expenses by dynamically selecting the cheapest model tier per task. It evaluates your prompt to determine the optimal model, ensuring you only pay for the processing complexity required rather than defaulting to higher-cost tiers.

Can I use multi-provider strategies for model routing with OpenClaw 2026.2.15?

Yes, you can use multi-provider strategies alongside native OpenClaw 2026.2.15 features. The skill supports optional multi-provider configurations to enhance model routing flexibility and optimize token usage across different API endpoints.

How do I test model routing and context loading before full deployment?

Test model routing and context loading by generating an optimized AGENTS.md file and providing a sample prompt. This lets you see exactly which files load and how the model selection changes, verifying the optimization before full deployment.

Does budget tracking for API costs work with local-only execution?

Yes, budget tracking for API costs works with local-only execution. The skill satisfies local-only requirements while coordinating heartbeat optimization and budget governance to monitor and control your token usage securely.

What are the limitations of lazy context loading for complex workflows?

Lazy context loading minimizes loaded data per session but may require careful coordination in complex workflows. It applies across simple chats and complex workflows, but you should verify file loading behavior with sample prompts to ensure all necessary context is available.