openclaw

openclaw is an agent for coding agents from pegasi-ai/reins. It costs 0 tokens per session (298 once invoked), scanned A, original, Apache-2.0.

A safety-instruction connector for OpenClaw, an open-source AI coding agent, that adds ToolShield guidance to its workspace instructions.

In plain words
What is it for?
Use it to import guidance for database, terminal, and filesystem tools, detect older OpenClaw workspace names, or unload the added guidance.
Why use it?
It gives OpenClaw persistent safety guidance while keeping the workspace instructions already there.

Agent

Part of the reins plugin — 1 skill, 5 agents, 2 hooks, 1 plugin shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/pegasi-ai/reins/openclaw
Clone the repo
git clone --depth 1 https://github.com/pegasi-ai/reins

Or install reins, the plugin that ships this one along with the rest of its 1 skill, 5 agents, 2 hooks, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openclaw

README.md
[![agentmods](https://agentmods.dev/badge/agents/pegasi-ai/reins/openclaw.svg)](https://agentmods.dev/agents/pegasi-ai/reins/openclaw)
Your own site
<a href="https://agentmods.dev/agents/pegasi-ai/reins/openclaw"><img src="https://agentmods.dev/badge/agents/pegasi-ai/reins/openclaw.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00298
Opus 5 $0.00000 $0.00149
Sonnet 5 $0.00000 $0.00060
Haiku 4.5 $0.00000 $0.00030

Measured 5d ago against content hash e3cb126eccc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openclaw scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/core/toolshield/docs/agents/openclaw.md · 45 lines

What it actually says

ToolShield + OpenClaw

OpenClaw is an open-source AI coding agent. ToolShield injects safety guidelines into its workspace instruction file.

How It Works

ToolShield appends guidelines to ~/.openclaw/workspace/AGENTS.md, which OpenClaw loads as persistent agent instructions. Legacy directory names (.clawdbot, .moltbot, .moldbot) are also detected automatically.

Import

toolshield import \
  --exp-file postgres-mcp.json \
  --agent openclaw

You can import multiple tools — each appends to the same file:

toolshield import --exp-file terminal-mcp.json --agent openclaw
toolshield import --exp-file filesystem-mcp.json --agent openclaw

Unload

toolshield unload --agent openclaw

This removes all ToolShield-injected guidelines while preserving your existing AGENTS.md content.

File Location

Platform Path
All ~/.openclaw/workspace/AGENTS.md

Custom Location

If your AGENTS.md is in a non-default location:

toolshield import --exp-file <path> --agent openclaw --source_location /path/to/AGENTS.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 45 lines · 0 tokens per session scan A e3cb126eccc0

Subscribe to this mod's changes

openclaw is an agent published in the GitHub repository pegasi-ai/reins (408 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 298 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.