← 返回
未分类 中文

Claw Insights Snapshot

Generate visual status cards for your OpenClaw agent as PNG, SVG, or JSON. The rendered cards are designed for social sharing and mobile-friendly channels —...
为 OpenClaw 代理生成可视化状态卡片,支持 PNG、SVG 或 JSON 格式,专为社交分享和移动端友好渠道设计。
lucal6 lucal6 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 434
下载
💾 0
安装
1
版本
#latest

概述

Snapshot Status Cards

Announce at start: "I'm generating a visual status card for your OpenClaw agent."

What is a Snapshot?

A snapshot is a server-rendered visual status card — not a browser screenshot. Powered by Satori, it renders in ~200ms with no browser dependency.

The output is designed to look great in chat: compact, readable on mobile, and visually appealing enough to share. It shows token usage, session activity, error counts, and gateway health in a single glance.

Formats: PNG (default), SVG, or raw JSON for programmatic use.

REST API

curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"detail":"standard","range":"6h","theme":"dark"}' \
  -o snapshot.png

No-auth mode: start with claw-insights start --no-auth, then omit the Authorization header.

Response includes Content-Disposition header with timestamped filename.

CLI

claw-insights snapshot                        # Save to ~/.claw-insights/snapshots/
claw-insights snapshot --quick -o status.png  # Compact mobile snapshot
claw-insights snapshot --format json | jq .   # JSON to stdout
claw-insights snapshot --dry-run              # Preview parameters only

CLI flags: --format, --detail, --range, --theme, --lang, -o , -t , --port, --quick, --dry-run. Run claw-insights snapshot --help for full usage.

Parameters

FieldDefault (REST / CLI)OptionsDescription
------------------------------------------------------------------------------------------
detailstandardcompact / standard / fullDetail level
formatpngpng / svg / jsonOutput format
range24h (REST) / 6h (CLI)30m / 1h / 6h / 12h / 24hTime range for metrics
themedarkdark / lightColor theme
langenen / zhLanguage

> Note: REST API and CLI have different default range values. REST defaults to 24h (full day overview), CLI defaults to 6h (quick status check). Both accept the same set of values.

Which detail level?

  • compact — Summary numbers only (session count, total tokens, error count). Best for embedding in chat messages.
  • standard — Session list + metrics charts. Default for most use cases.
  • full — Everything: session list, all charts, event log. Best for reports and archival.

Common Workflows

Push status card to a channel

Works with any messaging channel — Slack, Telegram, Discord, WhatsApp, etc.

# 1. Generate a compact status card
curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"detail":"compact","range":"6h"}' \
  -o /tmp/status.png

# 2. Send via your channel's tool or API
#    The compact detail level is optimized for mobile chat bubbles.

Tips:

  • compact — best for chat messages (summary numbers only, small image)
  • standard — best for daily check-ins (session list + charts)
  • full — best for reports and archival

Scheduled status report

# Full snapshot with 24h range
curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"detail":"full","range":"24h"}' \
  -o /tmp/daily-report.png

Programmatic metrics extraction

# Get raw data as JSON
curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"format":"json","range":"6h"}' \
  -o metrics.json

JSON schema: See references/json-schema.md

Error Handling

StatusCauseFix
-----------------------------------------------------------------------------------------
401Missing or invalid tokenCheck Bearer token, or use --no-auth mode
502OpenClaw gateway not runningopenclaw gateway start
500Internal server errorCheck logs: ~/.claw-insights/logs/
Connection refusedclaw-insights not runningclaw-insights start

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 09:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,547 📥 594,819
it-ops-security

Claw Insights Install

lucal6
安装并运行 Claw Insights,这是一个只读的可观测性仪表板,可监控您的 OpenClaw 代理,零侵入——无需代码改动、无云依赖。
★ 0 📥 737
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,192 📥 962,780