搜索

PythonReactSEOPDF
OpenClaw

vaibot-guard

Policy-gated execution + tamper-evident audit trail for VAIBot/OpenClaw operations. Use to precheck/deny/require-approval before shell execution, and to produce signed receipts (hash-chained logs) for execution decisions and outcomes.

briantanthony0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install briantanthony/vaibot-guard

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

VAIBot Guard (OpenClaw Skill)

This skill provides a local policy decision service plus a vaibot-guard CLI that enforces pre-execution checks and writes a tamper-evident audit log.

Deployment modes

  • Local workstation mode (recommended default): run vaibot-guard as a systemd user service (systemctl --user), optionally coupled to openclaw-gateway.service so it starts whenever OpenClaw starts (typically at login).
  • VPS / production mode: run vaibot-guard as a systemd system service (sudo systemctl) under a dedicated user, with stricter sandboxing and boot-time startup.

See: references/ops-runbook.md.

Note: some registries/packagers may strip *.service files. This skill’s install-local command generates the user unit file at install time, so the Clawhub-installed package does not need to include systemd/*/*.service.

Quick Start (local workstation)

0) One-time install + configure (recommended)

Fast path (recommended): one-command local install.

This will:

  • install a systemd user service (~/.config/systemd/user/vaibot-guard.service)
  • create ~/.config/vaibot-guard/vaibot-guard.env (mode 0600) if missing
  • auto-generate VAIBOT_GUARD_TOKEN if it isn’t already set
node scripts/vaibot-guard.mjs install-local

Or run the interactive configurator only (writes/updates ~/.config/vaibot-guard/vaibot-guard.env with chmod 600):

node scripts/vaibot-guard.mjs configure
1) Start + smoke test
Foreground (quick dev check)

From this skill directory:

# 1) Start the guard service (foreground)
# Reads VAIBOT_GUARD_TOKEN (and other settings) from:
#   - env vars, or
#   - ~/.config/vaibot-guard/vaibot-guard.env
node scripts/vaibot-guard-service.mjs

In another terminal:

# 2) Precheck + exec (example)
node scripts/vaibot-guard.mjs precheck --intent '{"tool":"system.run","action":"exec","command":"/bin/echo","cwd":".","args":["hello"],"expect...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/briantanthony/vaibot-guard
Version
—
Commit
1b5180f2ab28ef2c1aa49a96ccda7514e25bd72c
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

VAIBot-Guard

Local policy guard + tamper-evident audit log for OpenClaw/VAIBot operations.

At a high level:

  • You run a local Guard service (vaibot-guard-service) on 127.0.0.1.
  • OpenClaw (via a bridge plugin) or a CLI wrapper asks Guard “is this tool call allowed?”
  • Guard returns allow | deny | approve and writes an append-only audit trail under .vaibot-guard/.

What this repo/package contains

  • scripts/vaibot-guard-service.mjs — HTTP service (policy decisions + audit + checkpoints)
  • scripts/vaibot-guard.mjs — CLI to install/configure/run precheck/exec/finalize/flush/proof
  • references/ — policy + receipt/checkpoint schema docs
  • systemd/ — example unit/env files (note: some registries strip .service files)

HTTP API (current)

Health:

  • GET /health

Exec decisions (shell commands):

  • POST /v1/decide/exec
  • POST /v1/finalize

Generic tool decisions (used by the OpenClaw bridge plugin):

  • POST /v1/decide/tool
  • POST /v1/finalize/tool

Ops / audit:

  • POST /v1/flush — attempt to flush/anchor checkpoints
  • POST /api/proof — inclusion proofs for checkpointed leaves

Auth: if VAIBOT_GUARD_TOKEN is set, protected endpoints require Authorization: Bearer <token>.

Quick start (local workstation)

1) Install local service + config (recommended)

From this directory:

node scripts/vaibot-guard.mjs install-local

This will:

  • create/update ~/.config/vaibot-guard/vaibot-guard.env (chmod 600)
  • generate a VAIBOT_GUARD_TOKEN if missing
  • generate a systemd user unit (so it can run continuously)

Start it:

systemctl --user daemon-reload
systemctl --user enable --now vaibot-guard
systemctl --user status vaibot-guard --no-pager
2) Dev-mode foreground run (fast check)
node scripts/vaibot-guard-service.mjs

Then in another terminal:

curl -s http://127.0.0.1:39111/health | jq

Wiring into OpenClaw

VAIBot-Guard can be used two ways:

  1. **Skill/CLI wr...

来源内容

SKILL.md
# VAIBot Guard (OpenClaw Skill)

This skill provides a **local policy decision service** plus a `vaibot-guard` CLI that enforces **pre-execution checks** and writes a **tamper-evident audit log**.

## Deployment modes

- **Local workstation mode (recommended default):** run `vaibot-guard` as a **systemd user service** (`systemctl --user`), optionally coupled to `openclaw-gateway.service` so it starts whenever OpenClaw starts (typically at login).
- **VPS / production mode:** run `vaibot-guard` as a **systemd system service** (`sudo systemctl`) under a dedicated user, with stricter sandboxing and boot-time startup.

See: `references/ops-runbook.md`.

Note: some registries/packagers may strip `*.service` files. This skill’s `install-local` command generates the **user** unit file at install time, so the Clawhub-installed package does not need to include `systemd/*/*.service`.

## Quick Start (local workstation)

### 0) One-time install + configure (recommended)

Fast path (recommended): one-command local install.

This will:
- install a **systemd user service** (`~/.config/systemd/user/vaibot-guard.service`)
- create `~/.config/vaibot-guard/vaibot-guard.env` (mode `0600`) if missing
- **auto-generate `VAIBOT_GUARD_TOKEN`** if it isn’t already set

```bash
node scripts/vaibot-guard.mjs install-local
```

Or run the interactive configurator only (writes/updates `~/.config/vaibot-guard/vaibot-guard.env` with `chmod 600`):

```bash
node scripts/vaibot-guard.mjs configure
```

### 1) Start + smoke test

#### Foreground (quick dev check)

From this skill directory:

```bash
# 1) Start the guard service (foreground)
# Reads VAIBOT_GUARD_TOKEN (and other settings) from:
#   - env vars, or
#   - ~/.config/vaibot-guard/vaibot-guard.env
node scripts/vaibot-guard-service.mjs
```

In another terminal:

```bash
# 2) Precheck + exec (example)
node scripts/vaibot-guard.mjs precheck --intent '{"tool":"system.run","action":"exec","command":"/bin/echo","cwd":".","args":["hello"],"expect...
README
# VAIBot-Guard

Local policy guard + tamper-evident audit log for OpenClaw/VAIBot operations.

At a high level:
- You run a **local Guard service** (`vaibot-guard-service`) on `127.0.0.1`.
- OpenClaw (via a bridge plugin) or a CLI wrapper asks Guard **“is this tool call allowed?”**
- Guard returns `allow | deny | approve` and writes an append-only **audit trail** under `.vaibot-guard/`.

## What this repo/package contains

- `scripts/vaibot-guard-service.mjs` — HTTP service (policy decisions + audit + checkpoints)
- `scripts/vaibot-guard.mjs` — CLI to install/configure/run precheck/exec/finalize/flush/proof
- `references/` — policy + receipt/checkpoint schema docs
- `systemd/` — example unit/env files (note: some registries strip `.service` files)

## HTTP API (current)

Health:
- `GET /health`

Exec decisions (shell commands):
- `POST /v1/decide/exec`
- `POST /v1/finalize`

Generic tool decisions (used by the OpenClaw bridge plugin):
- `POST /v1/decide/tool`
- `POST /v1/finalize/tool`

Ops / audit:
- `POST /v1/flush` — attempt to flush/anchor checkpoints
- `POST /api/proof` — inclusion proofs for checkpointed leaves

> Auth: if `VAIBOT_GUARD_TOKEN` is set, protected endpoints require `Authorization: Bearer <token>`.

## Quick start (local workstation)

### 1) Install local service + config (recommended)

From this directory:

```bash
node scripts/vaibot-guard.mjs install-local
```

This will:
- create/update `~/.config/vaibot-guard/vaibot-guard.env` (chmod 600)
- generate a `VAIBOT_GUARD_TOKEN` if missing
- generate a **systemd user** unit (so it can run continuously)

Start it:

```bash
systemctl --user daemon-reload
systemctl --user enable --now vaibot-guard
systemctl --user status vaibot-guard --no-pager
```

### 2) Dev-mode foreground run (fast check)

```bash
node scripts/vaibot-guard-service.mjs
```

Then in another terminal:

```bash
curl -s http://127.0.0.1:39111/health | jq
```

## Wiring into OpenClaw

VAIBot-Guard can be used two ways:

1) **Skill/CLI wr...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.