Skip to content
Fourohtwo

Check agent-generated SQL before execution

commandguard.grindfree.net/v1/sql

Check 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.

BaseAnswering
POSThttps://commandguard.grindfree.net/v1/sql

Uptime100% of 4 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/sql", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"dialect":"postgres","policy":{"read_only":false},"sql":"DELETE FROM orders"}),
});
console.log(await res.json());

Example input

{
  "dialect": "postgres",
  "policy": {
    "read_only": false
  },
  "sql": "DELETE FROM orders"
}

More from CommandGuardProvider status