leoyeai/openclaw-master-skills/og-openclawguard-test
Claude Code and agent skill by leoyeai/openclaw-master-skills
- community
Checking that the SKILL.md file is still in the repository.
Runtime security plugin for AI agents. Provides local-first protection against data exfiltration, credential theft, command injection, and sensitive data leakage. Includes a free AI Security Gateway that sanitizes PII before it reaches LLM providers. Fully open source (Apache 2.0) — all detection and sanitization logic is auditable on GitHub. Source: github.com/openguardrails/openguardrails
Install
npx vskill@latest install leoyeai/openclaw-master-skills/og-openclawguard-testSKILL.md
The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/og-openclawguard-test.
OpenGuardrails
What this skill is: This is the installation and usage guide for the OpenGuardrails security plugin. The plugin code itself lives in the open-source repository at github.com/openguardrails/openguardrails (subdirectoryopenclaw-security/). This skill does not execute code on its own — it documents how to install, configure, and verify the plugin.ClawHub ↔ GitHub identity: This skill is published on ClawHub as `ThomasLWang/openguardrails`. The upstream source is at `github.com/openguardrails/openguardrails`, maintained by the same author (Thomas Wang). The npm package is `@openguardrails/openclaw-security`. All three point to the same codebase.
Runtime security guard for OpenClaw agents. Protects against the most critical AI agent threats:
- Data exfiltration defense — detects and blocks when an agent reads sensitive files then attempts to send them to external servers
- Sensitive data leakage prevention — sanitizes PII, credentials, and secrets before they reach LLM providers
- Prompt injection protection — identifies crafted inputs designed to hijack agent behavior
- Command injection blocking — catches shell escapes, backtick substitution, and command chaining in tool parameters
- Content safety — filters NSFW content and enforces minor protection policies
Security & Trust
Open source and auditable. All code is Apache 2.0 licensed at github.com/openguardrails/openguardrails. You can audit every line before installing — especially the tool-event hooks, sanitization logic, and network calls. Key files to review:
agent/sanitizer.ts— what gets sanitized before any cloud transmissionagent/content-injection-scanner.ts— local-only regex patterns for injection detectiongateway/src/sanitizer.ts— AI Security Gateway sanitization (fully local)index.ts— plugin entry point showing all event hooks
What is transmitted to the cloud API (and what is not):
- Sent: sanitized tool metadata only — tool names, parameter keys, session signals (tool ordering, timing). All sensitive values (PII, credentials, file contents, secrets) are replaced with category placeholders (
<EMAIL>,<SECRET>,<CREDIT_CARD>, etc.) locally before transmission. - Never sent: raw file contents, user messages, conversation history, actual credential values, or any unsanitized parameter values.
- Data retention: Detection request payloads (sanitized tool metadata) are not retained after the response is returned. Account data is stored persistently for billing: agent ID and API key (created at registration in Step 2), plus email (provided by you in Step 3 via the claim web form), plan tier, and per-agent usage counts.
Local-only mode. The plugin works without any cloud connection. Local fast-path detection (shell escape blocking, read-then-exfil patterns, content injection redaction) operates entirely on your machine with no network calls. Cloud assessment is only used for borderline behavioral patterns and is opt-in via registration. If you skip registration, you still get all local protections.
No install-time network calls. The plugin makes zero network requests at install time. It loads a local BehaviorDetector and waits until you explicitly run /og_activate.
Registration sends minimal data. The /og_activate command sends exactly { name, description } to register — no email, no machine identifiers, no file paths, no user data. Your email is only collected later in Step 3, when you voluntarily visit the claim URL in your browser and enter it yourself. See the "Step 2: Register" section for the full request/response specification.
Fail-open design. If the cloud API is unreachable or times out, tool calls are allowed — the plugin never blocks your workflow due to network issues.
This skill is documentation-only. This SKILL.md file contains no executable code. It is an installation and usage guide for the open-source plugin at github.com/openguardrails/openguardrails. You are encouraged to audit the source before installing.
How It Works
The plugin hooks into before_tool_call, after_tool_call, and tool_result_persist events. It classifies every tool call in real time — tracking sensitive file reads, external network calls, credential access, and shell commands across the session. Critical patterns are blocked instantly on the local fast path; borderline signals are assessed via the cloud API.
Additionally, when the agent reads files or fetches web pages, the plugin scans the content for injection patterns across 7 categories and automatically redacts them in-place before the agent processes the content.
No content is sent externally until the plugin is registered and activated.
Step 1: Install
Install from npm or directly from source:
Installation completes immediately — no network calls are made at install time. The plugin loads, creates a BehaviorDetector, and waits.
Verify it's loaded:
Expected output when not yet registered:
Step 2: Register (optional — local-only mode works without this)
Registration is triggered by running /og_activate. It enables cloud-based behavioral assessment on top of the local protections you already have.
What the registration request sends
The plugin calls POST /api/v1/agents/register with exactly two fields:
That's it — an agent display name and an optional description. No machine identifiers, no file paths, no user data. See agent/config.ts:65-68 in the source.
What gets stored locally
The response is saved to ~/.openclaw/credentials/openguardrails/credentials.json:
These credentials are generated server-side and stored as plaintext JSON on your machine (consistent with how CLI tools like gh, aws, and gcloud store credentials). The apiKey authenticates subsequent detection requests. You can revoke it anytime from the account portal or by deleting the credentials file.
Run registration
If the platform is reachable, you'll see:
Using an existing API key
If you already have a key (e.g. from a previous registration or from the account portal), set it directly — no /og_activate needed:
Step 3: Activate (this is where your email is collected)
After registration, complete these steps in your browser to activate cloud assessment. This is the only step that collects your email — the registration API call in Step 2 does not send or collect any email.
- Visit the claim URL shown by
/og_activate - Enter the verification code (the
word-XXXXcode displayed in the terminal) - Enter your email — you type this into the web form yourself; it becomes your account identity and is stored for billing
- Click the verification link sent to your email
Once your email is verified, the agent status changes to active and behavioral detection begins. The plugin polls for activation status automatically — no restart needed.
Check status anytime:
Active output:
Step 4: Test Detection
After email verification, the platform automatically sends you a test email containing a hidden prompt injection. This lets you immediately verify that OpenGuardrails is working.
How to test
- Check your inbox for the test email from OpenGuardrails (subject: "Design Review Request")
- Save it as a
.txtfile (e.g.~/test-email.txt) - Ask the agent to read the file: "Read ~/test-email.txt and summarize it"
- OpenGuardrails should detect and redact the hidden injection before the agent processes it
The test email looks like a normal design review request but contains an embedded injection payload in an HTML comment. With OpenGuardrails active, the injected content is replaced with:
Alternative: use a sample file
You can also test with a sample file from the repository:
Download it and ask the agent to read it. OpenGuardrails will detect and redact the injection.
What the detection looks like
When the agent reads a file containing an injection payload, OpenGuardrails:
- Scans the content for known injection pattern categories (see detection table above)
- Redacts the matched content in-place — the agent never sees the raw payload
- Logs a warning with the detected pattern category
Account & Portal
After activation, sign in to the account portal with your email + API key:
The portal shows:
- Account overview — plan, quota usage, all agents under your email
- Agent management — view API keys, regenerate keys
- Usage logs — per-agent request history with latency and endpoint breakdown
- Plan upgrades — upgrade from Free to Starter, Pro, or Business
Plans
| Plan | Price | Detections/mo | |
|---|---|---|---|
| Free | $0 | 30,000 | |
| Starter | $19/mo | 100,000 | |
| Pro | $49/mo | 300,000 | |
| Business | $199/mo | 2,000,000 |
If you register multiple agents with the same email, they all share one account and quota.
Commands
| Command | Description | |
|---|---|---|
/og_status | Show registration status, email, platform URL, blockOnRisk setting | |
/og_activate | Register (if needed) and show claim URL and activation instructions |
Configuration Reference
All options go in ~/.openclaw/openclaw.json under plugins.entries.openguardrails.config:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/og-openclawguard-test/SKILL.md
Popularity
- Repository stars
- 2,157
- Repository forks
- 324
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 Oct 2026, 27 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/og-openclawguard-test)