Install
openclaw skills install moltblockVerification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution.
openclaw skills install moltblockMoltblock provides verification gating for AI-generated artifacts. It runs policy checks to catch dangerous patterns before they reach production.
What moltblock does:
moltblock.json, ~/.moltblock/moltblock.json) if present — no config is requiredUse moltblock when the task involves:
rm -rf, DROP TABLE), privilege escalation (sudo, chmod 777), credential/key access (.ssh/, id_rsa, .env), system modification, raw disk writescurl, wget, fetch), file writes, database modifications, subprocess spawning, dynamic code evaluationVerify a task before execution.
npx moltblock@0.11.8 "<task description>" --provider <provider> --json
| Parameter | Required | Description |
|---|---|---|
| task | Yes | The task description to verify |
| --provider | No | LLM provider: openai, google, zai, local (auto-detected from env) |
| --model | No | Model override |
| --json | No | Output structured JSON result |
Moltblock auto-detects the LLM provider from whichever API key is set. If no key is set, it falls back to a local LLM at localhost:1234. Set one of these for a cloud provider:
OPENAI_API_KEY — OpenAI (primary)ANTHROPIC_API_KEY — Anthropic/Claude (optional)GOOGLE_API_KEY — Google/Gemini (optional)ZAI_API_KEY — ZAI (optional)# Verify a task
npx moltblock@0.11.8 "implement a function that validates email addresses" --json
{
"verification_passed": true,
"verification_evidence": "All policy rules passed.",
"authoritative_artifact": "...",
"draft": "...",
"critique": "...",
"final_candidate": "..."
}
Use directly with npx (recommended, no install needed):
npx moltblock@0.11.8 "your task" --json
Or install globally:
npm install -g moltblock@0.11.8
No configuration file is required. Moltblock auto-detects your LLM provider from environment variables and falls back to sensible defaults.
Optionally, place moltblock.json in your project root or ~/.moltblock/moltblock.json to customize model bindings:
{
"agent": {
"bindings": {
"generator": { "backend": "google", "model": "gemini-2.0-flash" },
"critic": { "backend": "google", "model": "gemini-2.0-flash" },
"judge": { "backend": "google", "model": "gemini-2.0-flash" }
}
}
}
See the full configuration docs for policy rules and advanced options.
When used as a skill, moltblock performs policy checks only — no code is generated, written to disk, or executed. The tool analyzes task descriptions against configurable policy rules and returns a pass/fail verification result.
API key scope: Consider using a limited-scope API key dedicated to verification rather than a key with broader permissions.
Moltblock reduces risk but does not eliminate it. Verification is best-effort — policy rules and LLM-based checks can miss dangerous patterns. Always review generated artifacts before executing them. The authors and contributors are not responsible for any damage, data loss, or security incidents resulting from the use of this tool. Use at your own risk.