← 返回
未分类 中文

Clawprobe

Monitor OpenClaw agent health, token usage, API cost, and context window in real time. Use when you need to check your own status, inspect context utilizatio...
实时监控OpenClaw智能体的健康状态、Token用量、API费用及上下文窗口。用于检查自身状态、查看上下文使用情况等场景。
liuhao6741
未分类 clawhub v0.6.9 1 版本 100000 Key: 无需
★ 0
Stars
📥 521
下载
💾 2
安装
1
版本
#latest

概述

clawprobe

Real-time observability for OpenClaw agents. Check health, token usage, API cost, context window, and optimization suggestions — all from the CLI.

Install

npm install -g clawprobe
clawprobe start

Core commands

CommandWhat it does
----------------------
clawprobe status --jsonFull health snapshot (session, model, context %, cost, alerts)
clawprobe cost --week --jsonAPI cost breakdown for the past week
clawprobe session --jsonCurrent session token timeline, turn by turn
clawprobe context --jsonContext window utilization and truncation warnings
clawprobe suggest --jsonActive optimization alerts with ruleId and action
clawprobe compacts --jsonList recent compaction events and lost content
clawprobe topLive auto-refreshing dashboard (human use)

Recommended self-check workflow

Run at session start or before any expensive task:

STATUS=$(clawprobe status --json)
UTIL=$(echo $STATUS | node -e "process.stdin.resume();let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>console.log(JSON.parse(d).utilizationPct))")
echo "Context: $UTIL%"

Or in a single call:

clawprobe status --json

Key fields to act on:

  • utilizationPct ≥ 85 → compact soon or start a fresh session
  • suggestions[].ruleId === "tools-truncation" → TOOLS.md is being cut off
  • suggestions[].ruleId === "cost-spike" → today's spend is unusually high
  • daemonRunning: false → run clawprobe start to enable monitoring

Handling suggestions programmatically

# List active suggestions
clawprobe suggest --json

# Dismiss a noisy rule
clawprobe suggest --dismiss memory-bloat --json
# → { "ok": true, "dismissed": "memory-bloat" }

Schema introspection

When you need to know exact field names for any command:

clawprobe schema status    # full field spec for status --json
clawprobe schema cost      # full field spec for cost --json
clawprobe schema           # list all available schemas

Error format

All errors under --json are structured — never colored text:

{ "ok": false, "error": "no_active_session", "message": "No active session found" }

Exit code is always 1 on error.

Cost note

Cost figures are estimates based on public model pricing. Verify exact amounts with your model provider's billing dashboard.

版本历史

共 1 个版本

  • v0.6.9 当前
    2026-03-30 16:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Mindkeeper

liuhao6741
AI大脑的时间机器——对代理上下文文件进行版本控制。当用户询问 SOUL.md、AGENTS.md、MEMORY.md 等文件的变更时使用。
★ 0 📥 778

WeChat Share

liuhao6741
在workspace之间导出和导入选定的OpenClaw工作区文件,可选择一次性阅读后销毁(burn‑after‑read)。适用于用户想要分享SOUL.md、AGENTS.md、TO...
★ 0 📥 417

agt0

liuhao6741
本地优先的代理存储 — SQLite 数据库、虚拟文件系统与内存集成在单个 .db 文件中。用于持久化代理状态、查询CSV/JSONL/日志等使用 SQL 的场景。
★ 0 📥 361