← Back to Skills Marketplace
taod7062-a11y

Token Cost Optimizer

by taod7062-a11y · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
479
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install token-cost-optimizer
Description
OpenClaw Token 成本优化与 API 用量控制专家。当用户提到 token 消耗过高、API 费用上涨、 模型调用太贵、上下文太长、死循环、定时任务频率、多 Agent 重复请求、模型路由、 或任何与降低 OpenClaw 运行成本相关的话题时,立即使用此 Skill。 也适用于用户说"帮我省钱"、"...
Usage Guidance
This skill appears to do what it says (optimize token usage) and makes sensible recommendations, but several instructions are potentially disruptive: they delete files and restart gateways. Before using it, (1) ensure you have recent backups of ~/.openclaw (configs, memory, workspace), (2) run the diagnostic commands manually to inspect outputs, not automatically, (3) replace destructive commands with safe dry-runs first (e.g., run find ... -print before -delete), (4) verify the referenced model names and routing match your environment, and (5) apply changes in a staging environment if possible. Because the skill is instruction-only, the agent will execute any CLI commands you allow — review each command and confirm you trust the OpenClaw CLI and the machine running these commands.
Capability Analysis
Type: OpenClaw Skill Name: token-cost-optimizer Version: 1.0.0 The skill bundle is designed to optimize API token usage and reduce costs for the OpenClaw platform. It provides diagnostic shell commands and configuration advice (e.g., modifying 'openclaw.json' and 'soul.md') that are consistent with its stated purpose. While it includes a command to delete old workspace files ('find ~/.openclaw/workspace -mtime +30 -type f -delete'), this is a standard maintenance task and does not show malicious intent or unauthorized data access.
Capability Assessment
Purpose & Capability
The name/description (token cost optimization) matches the instructions: diagnosing cron/jobs, inspecting openclaw config and memory/workspace sizes, changing compaction settings, model routing, and pruning old files. No unrelated credentials, binaries, or external services are requested.
Instruction Scope
SKILL.md instructs the agent to run OpenClaw CLI commands and to read/edit files under ~/.openclaw (openclaw.json, soul.md, memory/workspace). These are within the skill's stated scope, but it also includes destructive actions (find ... -delete, removing unused skills/memory, openclaw gateway stop/start). The instructions grant broad discretion (e.g., '删除长期未用的 Skill 目录') without explicit safeguards or dry-run steps.
Install Mechanism
Instruction-only skill with no install spec, no downloads, and no code files—lowest install risk.
Credentials
No environment variables, credentials, or config paths outside ~/.openclaw are requested. The requested filesystem access is proportional to modifying OpenClaw configuration and cleaning OpenClaw workspaces.
Persistence & Privilege
The skill is not always-on and does not request persistent elevated privileges or modify other skills' configs. It advises editing OpenClaw files but does not itself install components or assert permanent presence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install token-cost-optimizer
  3. After installation, invoke the skill by name or use /token-cost-optimizer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of token-cost-optimizer skill. - Provides systematic guidance to reduce OpenClaw token usage and API costs across eight optimization dimensions. - Includes step-by-step diagnostic, analysis, optimization, and monitoring procedures. - Offers quick diagnostic scripts and suggested configurations for context control, model selection, agent workflow, and scheduled tasks. - Supplies reference checklists and model pricing comparisons for ongoing cost management.
Metadata
Slug token-cost-optimizer
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Token Cost Optimizer?

OpenClaw Token 成本优化与 API 用量控制专家。当用户提到 token 消耗过高、API 费用上涨、 模型调用太贵、上下文太长、死循环、定时任务频率、多 Agent 重复请求、模型路由、 或任何与降低 OpenClaw 运行成本相关的话题时,立即使用此 Skill。 也适用于用户说"帮我省钱"、"... It is an AI Agent Skill for Claude Code / OpenClaw, with 479 downloads so far.

How do I install Token Cost Optimizer?

Run "/install token-cost-optimizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Token Cost Optimizer free?

Yes, Token Cost Optimizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Token Cost Optimizer support?

Token Cost Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Token Cost Optimizer?

It is built and maintained by taod7062-a11y (@taod7062-a11y); the current version is v1.0.0.

💬 Comments