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

@plusplus7/clawclamp

v0.1.1

Published

OpenClaw Cedar authorization guard with audit UI

Readme

Clawclamp

English README

npm scope cedar ui vibe coding

Clawclamp 是一个为 OpenClaw 提供 Cedar 权限控制的插件。它会在每次工具调用前执行 Cedar 鉴权,记录允许/拒绝审计日志,并提供一个网关 UI 用于查看日志、维护 Cedar policy 和发放短期授权。

这个仓库属于 vibe coding 项目,主要实现内容由 AI 辅助生成。

截图

准备发布到 GitHub 时,建议把截图放到 screenshots/ 目录,并在这里引用。

  • 建议文件名:screenshots/policy-lab.pngscreenshots/audit-log.png
  • 建议展示内容:策略编辑器、审计日志表格、模式切换和短期授权区域

功能

  • 基于 before_tool_call 的 Cedar 鉴权
  • 基于 Cedar policy 的长期授权控制
  • 基于带过期时间的 Cedar policy 的短期授权
  • 审计 UI,可查看允许、拒绝和灰度放行的工具调用
  • 灰度模式:即使被 Cedar 拒绝,调用也可继续执行,但会被审计记录

安装

通过 npm 安装:

openclaw plugins install @plusplus7/clawclamp

如果通过配置或插件管理安装,包名使用 @plusplus7/clawclamp

GitHub 展示文案

建议仓库描述:

OpenClaw 的 Cedar 权限控制与审计插件,一个 vibe coding / AI 辅助生成项目。

建议 topics:

openclawcedarauthorizationauditpluginai-generatedvibe-coding

配置

plugins.entries.clawclamp.config 下配置:

plugins:
  entries:
    clawclamp:
      enabled: true
      config:
        mode: gray
        principalId: openclaw
        policyStoreUri: file:///path/to/policy-store.json
        policyFailOpen: false
        # 可选:UI 访问令牌(非 loopback 时可通过 ?token= 或 X-OpenClaw-Token 访问)
        # uiToken: "your-ui-token"
        risk:
          default: high
          overrides:
            read: low
            web_search: medium
            exec: high
        grants:
          defaultTtlSeconds: 900
          maxTtlSeconds: 3600
        audit:
          maxEntries: 500
          includeParams: true

policyStoreUri 指向一个 Cedar policy store JSON(file://https://)。也可以使用 policyStoreLocal 直接传入原始 JSON 字符串。如果不配置,插件会使用内置的默认 policy store。默认情况下不会自动放行任何工具,只有显式 permit policy 或短期授权 policy 才能放行。

UI

打开网关路径 /plugins/clawclamp,可以查看审计日志、切换模式、创建短期授权,以及增删改查 Cedar policy。

UI 访问规则:

  • 来自 loopback(127.0.0.1 / ::1)的请求默认允许访问
  • 非 loopback 请求需要通过 ?token=X-OpenClaw-TokenAuthorization: Bearer 提供令牌

策略管理说明:

  • UI 内置 Cedar policy 面板,支持 CRUD
  • 如果配置了 policyStoreUri,策略将变为只读
  • 默认 policy 集为空,因此默认拒绝所有工具调用,除非你手动添加 permit policy 或创建短期授权