OpenClaw is an open-source AI coding agent. ToolShield injects safety guidelines into its workspace instruction file.
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.
toolshield import \
--exp-file postgres-mcp.json \
--agent openclawYou 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 openclawtoolshield unload --agent openclawThis removes all ToolShield-injected guidelines while preserving your existing AGENTS.md content.
| Platform | Path |
|---|---|
| All | ~/.openclaw/workspace/AGENTS.md |
If your AGENTS.md is in a non-default location:
toolshield import --exp-file <path> --agent openclaw --source_location /path/to/AGENTS.md