clawhound-r1-dashboard
Live security status dashboard for your Rabbit R1. Polls ClawHound scan results, displays the last 50 entries, and lets you trigger full audits and approve/deny WARN-level installs — all from the R1 PTT button and scroll wheel.
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- clawhound-r1-dashboard
- author
- clawhound
- version
- 1.0.0
- metadata
- { "openclaw": { "requires": { "env": [ "CLAWHOUND_STATUS_PATH" ], "bins": [ "node" ] }, "primaryEnv": "CLAWHOUND_STATUS_PATH" } }
- description
- Live security status dashboard for your Rabbit R1. Polls ClawHound scan results, displays the last 50 entries, and lets you trigger full audits and approve/deny WARN-level installs — all from the R1 PTT button and scroll wheel.
02 资源文件 1
- 参考文档index.html51.0 KB
03 SKILL.md 正文
ClawHound R1 Dashboard — Setup Guide
The R1 dashboard communicates with your local machine through the OpenClaw bridge (shared storage pub/sub). The R1 side sends commands; a small Node listener on your machine executes them and writes responses back.
1. Prerequisites
- Node.js 18+ installed and on your PATH.
- ClawHound scanner already set up:
~/.clawhound/clawhound-scan.js(copy fromE:\VS_Studio\rabbit-r1-skillz\clawhound\scanner\clawhound-scan.js). - OpenClaw skill installed (the
clawhoundskill inE:\VS_Studio\rabbit-r1-skillz\clawhound\skill\SKILL.md). - OpenClaw running on your local machine and connected to the R1.
2. Local bridge listener
The R1 app sends commands via openclaw:cmd in shared R1 storage and reads
responses from openclaw:resp. You need a local Node process that handles
the following commands:
Commands the R1 sends
command |
params |
Expected response shape |
|---|---|---|
get-status |
(none) | Full r1_status.json content |
scan-all |
{ reportPath: string } |
{ results: ScanEntry[] } |
scan-skill |
{ skill: string } |
Single ScanEntry |
approve-skill |
{ skill: string, ts: string } |
{ ok: true } |
deny-skill |
{ skill: string, ts: string } |
{ ok: true } |
ScanEntry shape
{
"ts": "2026-06-14T10:32:00.000Z",
"skill": "my-skill",
"name": "my-skill",
"verdict": "PASS",
"findingCount": 0,
"criticals": []
}
Minimal bridge implementation
Save this to ~/.clawhound/r1-bridge.js and run it with node r1-bridge.js:
"use strict";
const fs = require("fs");
const path = require("path");
const { execSync } = require("child_process");
// Paths — adjust if your OpenClaw shared storage lives elsewhere
const STORAGE_DIR = path.join(process.env.HOME || process.env.USERPROFILE, ".openclaw", "storage");
const CMD_FILE = path.join(STORAGE_DIR, "openclaw:cmd.json");
const RESP_FILE = path.join(STORAGE_DIR, "openclaw:resp.json");
const STATUS_FILE = path.join(process.env.HOME || process.env.USERPROFILE, ".clawhound", "r1_status.json");
const SCANNER = path.join(process.env.HOME || process.env.USERPROFILE, ".clawhound", "clawhound-scan.js");
const SKILLS_DIR = path.join(process.env.HOME || process.env.USERPROFILE, ".openclaw", "skills");
let lastCmdTs = 0;
function readJSON(p) {
try { return JSON.parse(fs.readFileSync(p, "utf8")); } catch { return null; }
}
function writeResp(data) {
fs.writeFileSync(RESP_FILE, JSON.stringify({ status: "done", ts: Date.now(), data }, null, 2));
}
function scanSkill(skillName) {
const skillDir = path.join(SKILLS_DIR, skillName);
try {
const raw = execSync(`node "${SCANNER}" "${skillDir}" --json`, { timeout: 30000 }).toString();
return JSON.parse(raw);
} catch (err) {
return { verdict: "ERROR", skill: skillName, findingCount: 0, criticals: [], error: err.message };
}
}
function poll() {
const cmd = readJSON(CMD_FILE);
if (!cmd || cmd.ts <= lastCmdTs || cmd.status !== "pending") return;
lastCmdTs = cmd.ts;
// Mark command as processing to avoid double-execution
fs.writeFileSync(CMD_FILE, JSON.stringify({ ...cmd, status: "processing" }, null, 2));
switch (cmd.command) {
case "get-status": {
const status = readJSON(STATUS_FILE) || { history: [], lastScan: null, lastVerdict: "PASS" };
writeResp(status);
break;
}
case "scan-all": {
const skills = fs.existsSync(SKILLS_DIR)
? fs.readdirSync(SKILLS_DIR).filter(d => fs.statSync(path.join(SKILLS_DIR, d)).isDirectory())
: [];
const results = skills.map(s => {
const r = scanSkill(s);
return { ts: new Date().toISOString(), skill: s, name: r.meta?.name || s,
verdict: r.verdict || "PASS", findingCount: (r.findings || []).length,
criticals: (r.findings || []).filter(f => f.severity === "CRITICAL").map(f => f.id) };
});
// Persist updated status
const newStatus = { lastScan: new Date().toISOString(),
lastVerdict: results.some(r => r.verdict === "BLOCK") ? "BLOCK"
: results.some(r => r.verdict === "WARN") ? "WARN" : "PASS",
history: [...results, ...(readJSON(STATUS_FILE)?.history || [])].slice(0, 50) };
fs.writeFileSync(STATUS_FILE, JSON.stringify(newStatus, null, 2));
writeResp({ results });
break;
}
case "scan-skill": {
const r = scanSkill(cmd.params.skill);
const entry = { ts: new Date().toISOString(), skill: cmd.params.skill,
name: r.meta?.name || cmd.params.skill, verdict: r.verdict || "PASS",
findingCount: (r.findings || []).length,
criticals: (r.findings || []).filter(f => f.severity === "CRITICAL").map(f => f.id) };
writeResp(entry);
break;
}
case "approve-skill":
case "deny-skill": {
const action = cmd.command === "approve-skill" ? "approved" : "denied";
const logFile = path.join(path.dirname(STATUS_FILE), "decisions.log");
const entry = `${new Date().toISOString()} ${action} ${cmd.params.skill}\n`;
fs.appendFileSync(logFile, entry);
writeResp({ ok: true, action, skill: cmd.params.skill });
break;
}
default:
writeResp({ ok: false, error: `Unknown command: ${cmd.command}` });
}
}
console.log("ClawHound R1 bridge listening…");
setInterval(poll, 500);
3. Running the bridge
node ~/.clawhound/r1-bridge.js
Keep this running in a terminal while using the R1 dashboard. For permanent
background operation, use pm2 or a systemd/launchd service:
# pm2 (recommended)
pm2 start ~/.clawhound/r1-bridge.js --name clawhound-r1
pm2 save
# macOS launchd (minimal plist)
# Save to ~/Library/LaunchAgents/com.clawhound.r1bridge.plist and launchctl load it
4. r1_status.json schema
ClawHound's scanner (clawhound-scan.js) writes and updates this file
automatically when you run scans. The R1 dashboard reads it on every
30-second poll. Manual edits are safe; the schema is:
{
"lastScan": "2026-06-14T10:32:00.000Z",
"lastVerdict": "PASS",
"history": [
{
"ts": "2026-06-14T10:32:00.000Z",
"skill": "some-skill",
"skillPath": "/Users/you/.openclaw/skills/some-skill/SKILL.md",
"name": "some-skill",
"verdict": "PASS",
"findingCount": 0,
"criticals": []
}
]
}
The history array is capped at 50 entries (newest first). The criticals
array contains rule IDs (e.g. ["PI-001", "EX-002"]) from CRITICAL-severity
findings only.
5. R1 interaction reference
| Action | Result |
|---|---|
| Open app | Speaks daily brief, polls status, sets LED |
| PTT (single tap) | Trigger full audit of all installed skills |
| PTT (double-tap) | Enter quick-scan mode (scroll to skill, PTT to scan) |
| PTT (long-press) | Open approve/deny flow for WARN-level pending decisions |
| Scroll up/down | Browse recent scans (home) or full history (log tab) |
| Tab: HOME | Status summary + last 5 scans |
| Tab: LOG | Full scrollable scan history (up to 50 entries) |
LED color key
| Color | Meaning |
|---|---|
| Green | All clear — no threats in last 24 hours |
| Amber | WARN — skills pending review |
| Red | CRITICAL — BLOCK verdict in last 24 hours (stays red until 24h window passes) |
| Blue | Scan in progress |
| Teal | Initializing / connecting |
6. Security notes
- The bridge runs locally on your machine and never sends data externally.
approve-skillanddeny-skillwrite to a localdecisions.logonly — they do not automatically install or uninstall skills. You apply decisions manually viaclawhub install/clawhub remove.- The R1 app stores the last-known status in R1 local storage so it displays data instantly on open even when the bridge is offline.
- Alert acknowledgement is stored in the R1's localStorage. Clearing app data will reset the acknowledged set.
04 同仓库更多 Skills
whisper-quiz
WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.
walk-cast
Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).
voice-novel
Local machine skill for VoiceNovel — handles story export to disk.
voice-guide
Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.
voice-draft
Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.
voice-commit
Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.