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

meshguard-openclaw

v0.5.0

Published

Official MeshGuard extension for OpenClaw - AI agent governance, policy enforcement, and audit logging

Readme

meshguard-openclaw

Official MeshGuard extension for OpenClaw — AI agent governance, policy enforcement, and audit logging.

npm version License: MIT

Overview

MeshGuard provides enterprise-grade governance for AI agents:

  • Policy Enforcement: Define what actions your agents can and cannot perform
  • Audit Logging: Complete trail of all agent actions for compliance
  • Trust Tiers: Role-based access control for multi-agent systems
  • Alerting: Real-time notifications for policy violations

This extension integrates MeshGuard with OpenClaw agents, enabling governance without code changes.

Installation

# npm
npm install meshguard-openclaw

# pnpm
pnpm add meshguard-openclaw

# Or via OpenClaw CLI
openclaw plugins install meshguard-openclaw

Quick Start

1. Get MeshGuard Credentials

Sign up at meshguard.app and create an agent to get:

  • API Key (msk_xxx)
  • Agent ID (agent_xxx)

2. Configure OpenClaw

Add to your openclaw.json:

{
  "plugins": ["meshguard-openclaw"],
  "meshguard": {
    "apiKey": "${MESHGUARD_API_KEY}",
    "agentId": "agent_xxx",
    "mode": "enforce"
  }
}

Or use environment variables:

export MESHGUARD_API_KEY=msk_xxx
export MESHGUARD_AGENT_ID=agent_xxx

3. Define Policies

Create policies in the MeshGuard dashboard or via API:

name: my-agent-policy
version: "1.0"
appliesTo:
  agentIds:
    - agent_xxx
rules:
  - effect: allow
    actions:
      - "tool:read"
      - "tool:web_search"
    description: Allow read operations
    
  - effect: deny
    actions:
      - "tool:exec"
    conditions:
      command_pattern: "rm -rf /*"
    description: Block destructive commands
    alert: critical

4. Run Your Agent

That's it! MeshGuard will now:

  • Evaluate policies before each tool call
  • Block actions that violate policies (in enforce mode)
  • Log all actions to the audit trail

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | enabled | boolean | true | Enable/disable governance | | apiKey | string | required | MeshGuard API key | | agentId | string | required | MeshGuard agent ID | | gatewayUrl | string | https://dashboard.meshguard.app | MeshGuard gateway URL | | mode | string | "enforce" | enforce, audit, or bypass | | auditLevel | string | "standard" | minimal, standard, or verbose | | cacheTimeoutMs | number | 60000 | Policy cache duration (ms) | | failOpen | boolean | false | Allow actions if MeshGuard is unreachable |

Modes

  • enforce: Block policy violations, log all actions
  • audit: Log all actions, but don't block violations (shadow mode)
  • bypass: Disable governance entirely

How It Works

┌─────────────────────────────────────────────────────────────┐
│                      OpenClaw Agent                          │
│  ┌─────────────────────────────────────────────────────────┐│
│  │                    Tool Invocation                       ││
│  └────────────────────────┬────────────────────────────────┘│
│                           ▼                                  │
│  ┌─────────────────────────────────────────────────────────┐│
│  │              before_tool_call hook                       ││
│  │         ┌─────────────────────────────┐                 ││
│  │         │   MeshGuard Extension       │                 ││
│  │         │   - Evaluate policy         │                 ││
│  │         │   - Check cache             │                 ││
│  │         │   - Block if denied         │                 ││
│  │         └─────────────────────────────┘                 ││
│  └────────────────────────┬────────────────────────────────┘│
│                           ▼                                  │
│  ┌─────────────────────────────────────────────────────────┐│
│  │               Tool Execution (if allowed)               ││
│  └────────────────────────┬────────────────────────────────┘│
│                           ▼                                  │
│  ┌─────────────────────────────────────────────────────────┐│
│  │               after_tool_call hook                       ││
│  │         ┌─────────────────────────────┐                 ││
│  │         │   MeshGuard Extension       │                 ││
│  │         │   - Log to audit trail      │                 ││
│  │         │   - Record duration         │                 ││
│  │         │   - Capture result/error    │                 ││
│  │         └─────────────────────────────┘                 ││
│  └─────────────────────────────────────────────────────────┘│
└─────────────────────────────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────┐
│                    MeshGuard Cloud                           │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │   Policy    │  │   Audit     │  │  Dashboard  │         │
│  │   Engine    │  │   Store     │  │     UI      │         │
│  └─────────────┘  └─────────────┘  └─────────────┘         │
└─────────────────────────────────────────────────────────────┘

Security Considerations

  • Sensitive data redaction: Passwords, tokens, and API keys are automatically redacted from audit logs
  • Local caching: Policies are cached locally to minimize latency and network dependency
  • Fail-safe defaults: By default, actions are blocked if MeshGuard is unreachable (failOpen: false)

Documentation

Support

License

MIT © MeshGuard