Token导航 LogoToken导航

Agent Skill · 效率

clawdef(clawdef 效率)

clawdef 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

clawdef 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 10,339。

总安装 5,256周安装 219GitHub Stars 公开资料未说明下载 1,752核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.3.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:clawdef(clawdef 效率)
来源仓库:https://github.com/gs921302/clawdef
安装命令:
openclaw skills install clawdef
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install clawdef

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

clawdef 提供 OpenClaw 自托管令牌使用监控与成本优化。适合跟踪代币消耗、切换经济模型与估算支出时使用。支持一键专业服务与自动成本优化策略。安装命令:openclaw skills install clawdef,建议确认仪表板访问权限。使用前请核实是否会触发网络请求或数据写入操作。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install clawdef;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

clawdef 怎么安装?

在终端执行 openclaw skills install clawdef。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

clawdef 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

clawdef 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

clawdef 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

clawdef 用的人多吗?

公开数据是累计安装 5,256 次,近一周安装 219 次,下载 1,752 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

clawdef 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
clawdef

clawdef 效率 · 本页

5,256—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
clawdef
version
1.3.0
description
|
metadata
tags
[monitoring, cost-optimization, dashboard, token-management, smart-optimizer]
category
productivity
configPaths
openclaw
requires
bins
["node", "npm"]
install

ClawDef — Token Optimization Dashboard for OpenClaw

A local web dashboard that helps you monitor and reduce your OpenClaw token costs.

Features

FeatureDescription
🧠 Smart Auto-OptimizerAnalyzes usage every 5min, auto-switches to cheapest model based on budget and task complexity
💰 Cost EstimatorInput a task → see estimated cost per model, one-click switch
📊 Real-time DashboardToken/cost tracking, cache hit rate, hourly charts, waste detection
🤖 One-click Model Setup8 providers (Zhipu/OpenAI/Claude/DeepSeek/Qwen/Kimi/Gemini/Custom), just fill API Key
💳 Budget ControlDaily/monthly limits with 80% warning and 95% auto-downgrade
🔄 FailoverAuto-detect unhealthy models and switch
🚨 Emergency ControlsDisable all skills or stop Gateway (admin-only, manual trigger)
👥 Multi-userAdmin/Editor/Viewer roles with password auth

Prerequisites

  • Node.js v18+ (node --version)
  • OpenClaw installed and running
  • OS: Linux or macOS

Installation

Step 1: Copy files

CLAWDEF_DIR=/opt/openclaw-monitor   # or any directory you prefer
SKILL_DIR=~/.openclaw/workspace/skills/clawdef

mkdir -p "$CLAWDEF_DIR/data" "$CLAWDEF_DIR/public/lib"
cp "$SKILL_DIR/scripts/server.js" "$CLAWDEF_DIR/server.js"
cp "$SKILL_DIR/scripts/package.json" "$CLAWDEF_DIR/package.json"
cp "$SKILL_DIR/public/index.html" "$CLAWDEF_DIR/public/index.html"
cp "$SKILL_DIR/public/lib/chart.min.js" "$CLAWDEF_DIR/public/lib/chart.min.js"

Step 2: Install dependencies

cd "$CLAWDEF_DIR" && npm install --production

Step 3: Start

node "$CLAWDEF_DIR/server.js"

Or use the helper script:

bash ~/.openclaw/workspace/skills/clawdef/scripts/install.sh

Step 4: First-run setup

Open http://127.0.0.1:3456 in your browser. On first run, you'll be prompted to set an admin password.

Optional: Run as a service (Linux with systemd)

The install script copies files only. To run as a persistent service, create a systemd unit manually:

sudo tee /etc/systemd/system/clawdef.service << EOF
[Unit]
Description=ClawDef Token Optimizer
After=network.target

[Service]
Type=simple
ExecStart=$(which node) /opt/openclaw-monitor/server.js
WorkingDirectory=/opt/openclaw-monitor
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now clawdef

File Access

This skill reads and writes the following files:

File/PathAccessPurpose
~/.openclaw/openclaw.jsonRead + WriteRead current model config; write agents.defaults.model.primary (model switching) and skills.entries (skill enable/disable)
~/.openclaw/agents/*/sessions/*.jsonlRead onlyParse session transcripts for token counting
/tmp/openclaw/*.logRead onlyParse gateway logs for request tracking
~/.openclaw/workspace/skills/*/SKILL.mdRead onlyList installed skills with metadata
<install_dir>/data/clawdef.dbRead + WriteLocal SQLite database for dashboard data

Network Activity

DestinationTriggerData sent
127.0.0.1:3456AlwaysLocal web dashboard (served to your browser)
127.0.0.1:11612/healthDashboard loadHTTP GET health check (Gateway status)
127.0.0.1:11612/v1/chat/completionsUser sends chat messageProxied to Gateway
User-configured model APIsManual health checkMinimal POST to verify API is reachable

No data is sent to any third-party server. The dashboard UI is served entirely from local files (no CDN).

Security Notes

  • Binding: Listens on 127.0.0.1 only (not externally accessible)
  • Auth: JWT tokens with bcrypt-hashed passwords, 7-day expiry
  • No default password: First-run setup requires creating admin credentials
  • No telemetry: No outbound data collection or phone-home
  • Dependencies: express, better-sqlite3, jsonwebtoken, bcryptjs, ws (all well-known packages)
  • Native module: better-sqlite3 requires a C++ build step during npm install

Uninstall

# Stop service if using systemd
sudo systemctl stop clawdef && sudo systemctl disable clawdef
# Delete files
rm -rf /opt/openclaw-monitor

Supported Providers

Zhipu (智谱) · OpenAI · Anthropic Claude · DeepSeek · Qwen (通义) · Moonshot (Kimi) · Google Gemini · Custom (any OpenAI-compatible API)

License

MIT

平台分布

OpenClaw

98.31%
按下载量换算1,722

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills