ClawAudit verdict

rotate-openrouter-key

88
🟢 Trusted
Low risk — reviewed by ClawAudit, behavior matches stated purpose

Key rotation utility that searches ~/.openclaw/ config files for an old OpenRouter API key and replaces it; the file reads are scoped to the user's own config directory and behavior is transparent and documented.

⚠ Flagged for review — coarse, uncorroborated signal, not a confirmed exploit. Review the config yourself before installing.

Automated static analysis — not a human review. ClawAudit flags capabilities, not confirmed intent, and can produce false positives. Disagree with this verdict? Use Dispute below.

0
security
90
transparency
70
maintenance

Findings (6)

Pattern match critical

Pipe to python — executes piped content as Python code

references/key-rotation-guide.md · code · | python3

Pattern match critical

Possible hardcoded credential

references/key-rotation-guide.md · code · API_KEY="sk-or-v1-YOUR-NEW-KEY

Pattern match high

Accesses OpenClaw config/secrets directly

SKILL.md · code · ~/.openclaw/.env

Pattern match high

Accesses shell history/config

references/key-rotation-guide.md · code · ~/.zshrc

Pattern match low

Python urllib.request — network access

scripts/update-openrouter-key.py · prose · downgraded · urllib.request

Pattern match low

Python os.environ.get — reads environment variable

scripts/update-openrouter-key.py · prose · downgraded · os.environ.get(

Permissions & capabilities

No declared permissions — minimal attack surface.

Is this flag fair?

Check another skill Browse the registry Auditing your own skills or configs? Use the API