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

@byteplus/agent-sentry

v1.7.0

Published

AI Assistant Security plugin for OpenClaw, to protect your LLM models and Agent lifecycle (including tool calls) from harmful requests.

Readme

AgentSentry (OpenClaw Security Plugin)

agent-sentry is a security plugin for OpenClaw. It audits LLM traffic and key Agent lifecycle hook points to reduce harmful requests and sensitive data leakage.

Breaking rename migration notice

This release performs a breaking external brand rename from ClawSentry to AgentSentry. Old external entrypoints are not compatible in code after this change.

| Old external entrypoint | New external entrypoint | | --- | --- | | claw-sentry | agent-sentry | | plugins.entries.claw-sentry | plugins.entries.agent-sentry | | /clawSentry | /agentSentry | | /cs | /as | | clawSentryListConfig | agentSentryListConfig | | clawSentryListInfo | agentSentryListInfo | | clawSentryListAvailableTools | agentSentryListAvailableTools |

Requirements

  • OpenClaw: >=2026.4.14
  • Node.js: >=22

Install

Volcengine

openclaw plugins install @volcengine/agent-sentry
openclaw config set plugins.entries.agent-sentry.hooks.allowConversationAccess true

BytePlus

openclaw plugins install @byteplus/agent-sentry
openclaw config set plugins.entries.agent-sentry.hooks.allowConversationAccess true

Enable

After installing the plugin package, enable it and restart the gateway:

openclaw plugins enable agent-sentry
openclaw gateway restart

Configuration

Configure the plugin in your OpenClaw config (fields are aligned with openclaw.plugin.json):

plugins:
  entries:
    agent-sentry:
      enabled: true
      config:
        # Required
        apiKey: "<encrypted-api-key>"
        clawId: "<claw-id>"
        ctEndpoint: "https://<control-endpoint>"
        lmEndpoint: "https://<moderation-endpoint>"

        # Optional
        asClawId: "<as-claw-id>"
        configVersion: "<version-string>"
        openClawDir: "<path-to-openclaw-state-dir>"

        # Behavior
        logRecord: false
        # enableFetch is deprecated since 1.5.0-dlp and is now a no-op; DLP runs
        # via before_dispatch + before_prompt_build (see dlpInputGate below).
        enableFetch: false
        enableBeforeToolCall: true
        enableAfterToolCall: true
        enableHeartbeat: true
        timeoutMs: 30000
        failureThreshold: 3
        retryInterval: 60
        maxRetryInterval: 3600
        # Optional input-side DLP enforcement mode for before_dispatch.
        # 'marker_only' (default) keeps the user message and lets
        # before_prompt_build inject a system reminder. 'direct_block' returns
        # {handled:true, text:securityReason} from before_dispatch.
        dlpInputGate:
          mode: marker_only
        language: "en" # or "zh"

Hooks & auditing

  • before_dispatch + before_prompt_build: collect moderation results and inject safe context into prompts.
  • before_tool_call: audit tool name/params (and optional tool-result context). The isGroup flag is derived from ctx.sessionKey (format agent:<id>:<channel>:group|direct:<target>).
  • after_tool_call: store tool result context for subsequent audits.
  • llm_input: capture LLM input (e.g. system prompt) for auditing/traceability.
  • agent_end: upload conversation record and clear per-session cached contexts.
  • Degradation/circuit breaker: automatically bypasses checks when the security service is unavailable and probes for recovery.

Development

pnpm -C openclaw-plugin build
pnpm -C openclaw-plugin test

Publishing scripts are defined in openclaw-plugin/package.json (including beta and private tags).