← 返回 Skills 市场
taod7062-a11y

Token Cost Optimizer

作者 taod7062-a11y · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
479
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install token-cost-optimizer
功能描述
OpenClaw Token 成本优化与 API 用量控制专家。当用户提到 token 消耗过高、API 费用上涨、 模型调用太贵、上下文太长、死循环、定时任务频率、多 Agent 重复请求、模型路由、 或任何与降低 OpenClaw 运行成本相关的话题时,立即使用此 Skill。 也适用于用户说"帮我省钱"、"...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install token-cost-optimizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /token-cost-optimizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug token-cost-optimizer
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Token Cost Optimizer 是什么?

OpenClaw Token 成本优化与 API 用量控制专家。当用户提到 token 消耗过高、API 费用上涨、 模型调用太贵、上下文太长、死循环、定时任务频率、多 Agent 重复请求、模型路由、 或任何与降低 OpenClaw 运行成本相关的话题时,立即使用此 Skill。 也适用于用户说"帮我省钱"、"... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 479 次。

如何安装 Token Cost Optimizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-cost-optimizer」即可一键安装,无需额外配置。

Token Cost Optimizer 是免费的吗?

是的,Token Cost Optimizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Token Cost Optimizer 支持哪些平台?

Token Cost Optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Token Cost Optimizer?

由 taod7062-a11y(@taod7062-a11y)开发并维护,当前版本 v1.0.0。

💬 留言讨论