npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@percival-labs/openclaw-vouch

v0.1.0

Published

Trust verification for OpenClaw agents via Vouch — gate tool execution by reputation score

Downloads

46

Readme

@percival-labs/openclaw-vouch

Trust verification plugin for OpenClaw agents via the Vouch network. Gates tool execution based on an agent's reputation score -- agents must earn trust through real interactions before executing sensitive tools like shell commands, HTTP requests, or file writes.

Installation

openclaw plugins install @percival-labs/openclaw-vouch

Or add to your OpenClaw configuration:

{
  "plugins": ["@percival-labs/openclaw-vouch"]
}

Configuration

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | VOUCH_NSEC | No | Nostr private key (bech32). Auto-generates ephemeral key if omitted. | | VOUCH_API_URL | No | Vouch API base URL. Defaults to production. |

Plugin Config

Pass configuration when activating the plugin:

import activate from '@percival-labs/openclaw-vouch';

activate(api, {
  // Minimum score for any tool execution (0-1000)
  minScore: 200,

  // Tool-specific thresholds
  trustedTools: {
    'shell': 700,      // Shell commands need gold-tier trust
    'http': 500,       // HTTP requests need silver-tier
    'write': 400,      // File writes need silver-tier
  },

  // Tools that bypass trust checks entirely
  allowlistedTools: ['read', 'list', 'search'],

  // Auto-register with Vouch on activation
  autoRegister: true,
  agentName: 'my-agent',

  // Log tool executions as Vouch outcomes
  logOutcomes: true,

  // Score cache TTL (default: 60 seconds)
  cacheTtlMs: 60_000,
});

How Trust Gating Works

The plugin registers three OpenClaw lifecycle hooks:

1. preToolExecution -- Trust Gate

Before any tool runs, the plugin checks the agent's Vouch score:

Agent wants to run "shell" (requires score >= 700)
  -> Agent score: 450 (silver tier)
  -> BLOCKED: Tool "shell" requires score >=700, agent has 450

Allowlisted tools skip the score check entirely:

Agent wants to run "read" (allowlisted)
  -> ALLOWED (no score check needed)

If the Vouch API is unreachable, the plugin fails open -- tools still execute. This prevents the trust layer from becoming a single point of failure.

2. postToolExecution -- Outcome Logging (opt-in)

When logOutcomes: true, significant tool executions (shell, write, edit, http, email, message) are reported to Vouch as outcomes. This builds the agent's performance history over time.

3. onError -- Error Tracking

Tool execution errors are logged for observability.

Trust Tiers

| Tier | Score Range | What It Means | |------|-------------|---------------| | Diamond | 850-1000 | Highly trusted, extensive track record | | Gold | 700-849 | Well-established, consistent performance | | Silver | 400-699 | Building reputation, positive trend | | Bronze | 200-399 | New but verified | | Unranked | 0-199 | Not yet established |

Programmatic Usage

You can also use the components directly without the OpenClaw plugin system:

import { VouchPluginClient, shouldAllowTool } from '@percival-labs/openclaw-vouch';

// Create a client
const client = new VouchPluginClient({
  nsec: process.env.VOUCH_NSEC,
});

// Check a score
const score = await client.getScore();
console.log(`Score: ${score.score}, Tier: ${score.tier}`);

// Evaluate policy
const decision = shouldAllowTool('shell', score.score, {
  trustedTools: { 'shell': 700 },
});
console.log(decision); // { allowed: false, reason: '...' }

API Reference

  • Vouch API: https://percivalvouch-api-production.up.railway.app
  • Documentation: https://percival-labs.ai/research
  • Vouch SDK: @percival-labs/vouch-sdk

License

Proprietary -- Percival Labs LLC