Scan Report
0 /100
cost-optimizer
Smart cost optimization skill for OpenClaw. Reduces API costs by 70-97% through intelligent model routing, session management, output efficiency, and free model usage.
cost-optimizer v7.0.0 是一个完全合法的 OpenClaw 成本优化工具,包含 29 个 Shell 脚本用于成本审计、监控、配置管理和预设应用。无任何恶意行为。
Safe to install
可直接使用。pre-scan 标记的 `rm -rf ~` 为误报(实际为 `rm -rf ~/.openclaw/workspace/skills/cost-optimizer`)。无敏感操作。
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | SKILL.md:scripts reference — backup-config.sh writes to $HOME/.openclaw/config-b… |
| Shell | WRITE | WRITE | ✓ Aligned | SKILL.md — 29 bash scripts (cost-audit.sh, heartbeat-cost.sh, etc.) all via bash… |
| Environment | READ | READ | ✓ Aligned | Scripts read $HOME/.openclaw paths and config JSON files |
| Network | NONE | NONE | — | No curl/wget network calls in scripts (openrouter URLs in SKILL.md are informati… |
1 Critical 9 findings
Critical Dangerous Command 危险 Shell 命令
rm -rf ~ GUIDE.md:672 Medium External URL 外部 URL
https://openrouter.ai/keys GUIDE.md:13 Medium External URL 外部 URL
https://YOUR_DOWNLOAD_URL GUIDE.md:31 Medium External URL 外部 URL
https://vps.example.com:3578 GUIDE.md:603 Medium External URL 外部 URL
https://img.shields.io/badge/version-7.0.0-blue.svg README.md:5 Medium External URL 外部 URL
https://img.shields.io/badge/license-MIT-green.svg README.md:6 Medium External URL 外部 URL
https://img.shields.io/badge/OpenClaw-2026.3+-purple.svg README.md:7 Medium External URL 外部 URL
https://myclaw.example.com:3578 scripts/multi-instance.sh:37 Medium External URL 外部 URL
https://openrouter.ai/api/v1 scripts/setup-openrouter.sh:37 File Tree
40 files · 217.9 KB · 6216 lines Shell 27f · 4065L
Markdown 6f · 1858L
JavaScript 2f · 205L
JSON 5f · 88L
├─
▾
presets
│ ├─
agency-team.preset.json
JSON
│ ├─
researcher.preset.json
JSON
│ ├─
solo-coder.preset.json
JSON
│ ├─
writer.preset.json
JSON
│ └─
zero-budget.preset.json
JSON
├─
▾
references
│ ├─
model-tiers.md
Markdown
│ └─
setup-config.md
Markdown
├─
▾
scripts
│ ├─
apply-preset.sh
Shell
│ ├─
backup-config.sh
Shell
│ ├─
compaction-log.sh
Shell
│ ├─
config-diff.sh
Shell
│ ├─
context-monitor.sh
Shell
│ ├─
cost-audit.sh
Shell
│ ├─
cost-dashboard.js
JavaScript
│ ├─
cost-history.sh
Shell
│ ├─
cost-monitor.sh
Shell
│ ├─
cron-setup.sh
Shell
│ ├─
dedup-detector.sh
Shell
│ ├─
fallback-validator.sh
Shell
│ ├─
heartbeat-cost.sh
Shell
│ ├─
idle-sleep.sh
Shell
│ ├─
model-switcher.sh
Shell
│ ├─
model-test.sh
Shell
│ ├─
multi-instance.sh
Shell
│ ├─
parse-config.js
JavaScript
│ ├─
preset-manager.sh
Shell
│ ├─
prompt-tracker.sh
Shell
│ ├─
provider-compare.sh
Shell
│ ├─
provider-health.sh
Shell
│ ├─
restore-config.sh
Shell
│ ├─
session-replay.sh
Shell
│ ├─
setup-openrouter.sh
Shell
│ ├─
token-counter.sh
⚠
Shell
│ ├─
token-enforcer.sh
⚠
Shell
│ ├─
tool-audit.sh
Shell
│ └─
webhook-report.sh
Shell
├─
CHANGELOG.md
Markdown
├─
GUIDE.md
Markdown
├─
README.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ 纯成本优化工具,代码逻辑清晰易懂
✓ 所有文件操作均在用户授权范围内($HOME/.openclaw/ 目录)
✓ 脚本均有 --dry-run 选项,执行前可预览
✓ backup-config.sh 在任何修改前自动创建快照
✓ restore-config.sh 恢复前先备份当前配置
✓ API key 仅写入 /tmp 临时文件,不外传
✓ 无 eval、base64 解码、混淆等技术
✓ 无凭证收割、敏感路径访问、远程代码执行