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.
npx agentmods add rules/mergisi/openclaw-rules/deploygit clone --depth 1 https://github.com/mergisi/openclaw-rulesWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00662 | $0.00662 |
| Opus 5 | $0.00331 | $0.00331 |
| Sonnet 5 | $0.00132 | $0.00132 |
| Haiku 4.5 | $0.00066 | $0.00066 |
Grade D, and why
deploy scanned grade D with 3 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 yesterday.
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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deployment Guide
When deploying OpenClaw agents to different environments.
Mac (Local Development)
# Install OpenClaw
npm install -g openclaw
# Start gateway
openclaw gateway run
# Register agent
openclaw agents add my-agent
# Agent is now live on Telegram
Raspberry Pi
Minimum: Raspberry Pi 4 (2GB RAM) or Pi 5.
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install -y nodejs
# Install OpenClaw
sudo npm install -g openclaw
# Copy agent files
scp -r agents/ [email protected]:~/mission-control/agents/
scp -r scripts/ [email protected]:~/mission-control/scripts/
scp -r secrets/ [email protected]:~/mission-control/secrets/
# Create systemd service
sudo tee /etc/systemd/system/openclaw-gateway.service > /dev/null << 'EOF'
[Unit]
Description=OpenClaw Gateway
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=mypi
ExecStart=/usr/bin/openclaw gateway run
Restart=always
RestartSec=10
Environment=HOME=/home/mypi
Environment=NODE_OPTIONS=--max-old-space-size=512
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable openclaw-gateway
sudo systemctl start openclaw-gateway
VPS (Ubuntu/Debian)
Same as Raspberry Pi but with more RAM. Recommended: 1GB+ RAM, Ubuntu 22.04+.
# Install and start
npm install -g openclaw
openclaw gateway run
# Use PM2 for process management (alternative to systemd)
npm install -g pm2
pm2 start "openclaw gateway run" --name openclaw
pm2 save
pm2 startup
Docker
FROM node:20-slim
RUN npm install -g openclaw
WORKDIR /app
COPY . .
CMD ["openclaw", "gateway", "run"]
# docker-compose.yml
services:
openclaw:
build: .
restart: always
volumes:
- ./agents:/app/agents
- ./secrets:/app/secrets
environment:
- NODE_OPTIONS=--max-old-space-size=512
Path Fixes After Deploy
Tool scripts may have hardcoded paths. Fix them after copying:
# Replace Mac paths with Raspi paths
sed -i 's|/Users/username/Documents/project|/home/mypi/mission-control|g' scripts/**/*.cjs
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.
- yesterday First seen · 121 lines · 662 tokens per session scan D 15fe721f45c5
deploy is a cursor rule published in the GitHub repository mergisi/openclaw-rules (2 stars, last pushed 6mo ago), licensed MIT. It adds 662 tokens to every session, about $0.0033 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
050-plan
When the user types /plan or asks to create a project plan, feature PRD, or retrospective.
002-verify-before-act
Requires Claude to read before writing, verify before installing, and confirm before destructive operations.
pre-flight-check
Mandatory fail-fast quality gate — run Typecheck, Lint, Test, and Security Audit sequentially before declaring any task done or committing code.
graphql
GraphQL: schema design, resolvers, performance.
infra-devops
Infrastructure, Cloud, Terraform, Docker & CI/CD Agent.
context-routing
System, platform, and developer instructions take precedence; then repository-specific rules; then this framework. Before work, read .ai/bootstrap/boot.md and .ai/rules/00-master-rules.md. Load focused rules and skills only when triggered.