🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@byteplus/claw-sentry

Package Overview
Dependencies
Maintainers
21
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byteplus/claw-sentry

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

npmnpm
Version
1.4.0
Version published
Weekly downloads
13
-56.67%
Maintainers
21
Weekly downloads
 
Created
Source

AI Assistant Security Plugin

@omni-shield/claw-sentry is a security plugin designed for OpenClaw to protect your Large Language Models (LLM) and Agent lifecycle from harmful requests and sensitive data leakage.

Key Features

  • Multi-dimensional Protection: Covers LLM requests, pre-tool calls (Before Tool Call), and tool result persistence (Tool Result Persist).
  • Global Interception: Hooks into global.fetch to provide automated security auditing for underlying model calls.
  • Smart Degradation (Circuit Breaker): Built-in error handling and self-healing logic. Automatically enters degradation mode when security API failures exceed the threshold, ensuring business continuity.
  • Session Synchronization: Automatically synchronizes OpenClaw session files to mark intercepted content when a request is blocked.
  • Risk Label Support: Supports returning specific risk labels (e.g., PII, Prompt Injection) and displaying them in block messages.

Quick Start

Bundled plugins are disabled by default in OpenClaw. You can enable it using the following command:

openclaw plugins enable ai-assistant-security-openclaw

Restart the Gateway after enabling.

Configuration

Configure the plugin in your OpenClaw configuration file:

plugins:
  claw-sentry:
    enabled: true
    config:
      endpoint: "https://your-security-api-endpoint"  # Security API endpoint (Required)
      apiKey: "your-api-key-here"                     # API Key (Required)
      appId: "your-app-id"                            # Application Identifier (Required)
      timeoutMs: 5000                                 # API timeout in ms, default is no limit
      logRecord: true                                 # Enable plugin runtime logs, default is false
      failureThreshold: 3                             # Failures before entering degradation, default is 3
      retryInterval: 60                               # Initial retry interval in seconds after degradation, default is 60
      maxRetryInterval: 3600                          # Max retry interval in seconds, default is 
      enableFetch: true                                   # Whether to hook global.fetch
      enableBeforeToolCall: true                          # Whether to audit before tool execution
      enableToolResultPersist: false                       # Whether to audit before persisting tool results

Workflow

  • Registration & Validation: Validates the availability of endpoint, apiKey, and appId during startup.
  • Security Audit:
    • LLM Requests: Monitors inputs sent to models.
    • Pre-Tool Call: Audits the tool name and its parameters before execution.
    • Tool Result: Audits raw data returned by tools to prevent sensitive information leakage.
  • Interception: If a risk is detected, the plugin returns a block message or rewrites the response content accordingly.
  • Disaster Recovery: If the security service is unavailable, the plugin automatically bypasses checks to prioritize business availability and periodically probes for service recovery.

FAQs

Package last updated on 07 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts