A comprehensive toolkit for cutting OpenClaw token costs through context optimization, model routing, and heartbeat tuning. The context optimizer is the standout feature here, offering 50-80% savings by lazy-loading files based on prompt complexity instead of dumping everything upfront. Model routing enforces Haiku for casual chat and greetings so you never burn Opus tokens on "thanks." Heartbeat optimization spaces out polling intervals and respects quiet hours. All four core scripts run locally with no network calls, though the reference docs describe optional multi-provider setups if you want to route across OpenRouter or Together. Security audit is recent and the approach is solid. If you're running multiple agents or hitting rate limits, this pays for itself quickly.

skills.sh installs
397
GitHub stars
7
last updated
Aug 21, 2026

Install

$ npx -y skills add asif2bd/openclaw-token-optimizer --skill token-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Files

A comprehensive toolkit for cutting OpenClaw token costs through context optimization, model routing, and heartbeat tuning. The context optimizer is the standout feature here, offering 50-80% savings by lazy-loading files based on prompt complexity instead of dumping everything upfront. Model routing enforces Haiku for casual chat and greetings so you never burn Opus tokens on "thanks." Heartbeat optimization spaces out polling intervals and respects quiet hours. All four core scripts run locally with no network calls, though the reference docs describe optional multi-provider setups if you want to route across OpenRouter or Together. Security audit is recent and the approach is solid. If you're running multiple agents or hitting rate limits, this pays for itself quickly.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/asif2bd/openclaw-token-optimizer
Category
Security
First seen
Jun 3, 2026

Recommended

More Security
1secondsky avatarmulti-ai-consultantsecondsky/claude-skillsConsult external AIs (Gemini 2.5 Pro, OpenAI Codex, Claude) for second opinions. Use for debugging failures, architectural decisions, security validation, or ne397skills.sh installs
2aliyun avataralibabacloud-das-agentaliyun/alibabacloud-aiops-skillsDiagnose and manage Alibaba Cloud databases through natural language. Use when users need to troubleshoot database performance issues (high CPU, slow queries, a395skills.sh installs
3promptfoo avatarpromptfoo-evalspromptfoo/promptfooWrite, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions, model-graded rubrics, transforms, dat393skills.sh installs
4onewave-ai avatarapi-documentation-writeronewave-ai/claude-skillsGenerate comprehensive API documentation including endpoint descriptions, request/response examples, authentication guides, error codes, and SDKs. Creates OpenA384skills.sh installs
5galaxy-dawn avatarverification-loopgalaxy-dawn/claude-scholarThis skill should be used when the user asks to "verify code", "run verification", "check quality", "validate changes", or before creating a PR. Provides compre375skills.sh installs
6zzci avatarpma-rustzzci/skillsProduction-grade Rust acceptance baseline for PMA-managed Rust services and CLIs. Use with /pma when creating, reviewing, or upgrading Rust workspaces, Axum/Tok372skills.sh installs