Skip to content
Fourohtwo

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.

BaseAnswering
POSThttps://commandguard.grindfree.net/v1/check-and-approve

Uptime100% 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