Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

clawdefclawdef 效率

Agent Skill

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

总安装

5,256

周安装

219

GitHub Stars

公开资料未说明

下载量

1,752
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install clawdef

简介

clawdef 提供 OpenClaw 自托管令牌使用监控与成本优化。

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

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

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.31%
按下载量换算1,722

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills