commandguard.grindfree.net/v1/check-and-approve
Optional add-on to CommandGuard's $0.001 checks, for agents that need a human sign-off: checks one shell command or SQL statement and, if it is warned or blocked, sends the owner a one-tap approve/deny link (ntfy, Slack, Discord or webhook) via AskHuman. Returns the check plus approval and poll URLs. Fails closed. $0.03 per call. No price increase without 30 days' notice.
POST
https://commandguard.grindfree.net/v1/check-and-approveUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://commandguard.grindfree.net/v1/check-and-approve", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"command":"terraform destroy -auto-approve","notify":{"ntfy_topic":"my-agent-approvals-7f3a"},"timeout_seconds":1800}),
});
console.log(await res.json());Example input
{
"command": "terraform destroy -auto-approve",
"notify": {
"ntfy_topic": "my-agent-approvals-7f3a"
},
"timeout_seconds": 1800
}More from CommandGuardProvider status
- commandguard.grindfree.net/v1/commandCheck an agent-generated shell command (bash/sh/zsh/PowerShell/cmd) before execution. Returns allow|warn|block with rule codes (rm -rf, curl|sh, force-push, credential exfil, cloud deletes). Caller must enforce. GET: no params runs the example.0.001
- commandguard.grindfree.net/v1/sqlCheck agent-generated SQL before execution. Returns allow|warn|block with rule codes (DROP/TRUNCATE, DELETE/UPDATE without WHERE or tautology, privilege grants, COPY PROGRAM, file/network access, read_only and protected_tables policy). Caller must enforce. No price increase without 30 days' notice.0.001
