Api Endpoint

CommandGuard

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.

Open interactive test console

Offering

Provider
commandguard.grindfree.net
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://commandguard.grindfree.net/v1/check-and-approve
MIME type
Not provided
First seen
2026-11-25T17:08:43.656Z
Last seen
Tags
Security, Agents, shell, sql, guardrails

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.03 USDC
Atomic price: 30000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "30000",
    "payTo": "0xe4b5827994B7B3Cd38F9830d9ECF58b51B77721b"
  }
]

Observed health

Status
Healthy
Latest latency
193 ms
Average latency
135 ms
HTTP status
204
Last checked
Reachability
100% over 2 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "properties": {
        "ask_on": {
          "description": "Verdicts that trigger a human request (default block, warn)",
          "items": {
            "enum": [
              "block",
              "warn",
              "allow"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "callback_url": {
          "type": "string"
        },
        "command": {
          "description": "Shell command to check (send command or sql)",
          "maxLength": 6000,
          "type": "string"
        },
        "context_url": {
          "type": "string"
        },
        "dialect": {
          "enum": [
            "postgres",
            "mysql",
            "mariadb",
            "sqlite",
            "mssql",
            "snowflake",
            "bigquery",
            "other"
          ],
          "type": "string"
        },
        "notify": {
          "description": "Exactly one channel",
          "properties": {
            "discord_webhook_url": {
              "type": "string"
            },
            "link_only": {
              "type": "boolean"
            },
            "ntfy_topic": {
              "type": "string"
            },
            "slack_webhook_url": {
              "type": "string"
            },
            "webhook_url": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "on_timeout": {
          "enum": [
            "deny",
            "expire"
          ],
          "type": "string"
        },
        "policy": {
          "description": "Optional owner policy",
          "properties": {
            "allow_rules": {
              "description": "Rule codes the owner accepts (downgraded to info)",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "mode": {
              "description": "strict: warn → block",
              "enum": [
                "balanced",
                "strict"
              ],
              "type": "string"
            },
            "protected_branches": {
              "description": "Default main, master, production, prod, release, trunk",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "sql": {
              "description": "Policy applied to SQL embedded in psql/mysql -c",
              "type": "object"
            }
          },
          "type": "object"
        },
        "shell": {
          "enum": [
            "bash",
            "sh",
            "zsh",
            "fish",
            "powershell",
            "cmd"
          ],
          "type": "string"
        },
        "sql": {
          "description": "SQL to check (send command or sql)",
          "maxLength": 6000,
          "type": "string"
        },
        "timeout_seconds": {
          "maximum": 86400,
          "minimum": 60,
          "type": "integer"
        },
        "title": {
          "maxLength": 80,
          "type": "string"
        }
      },
      "required": [
        "notify"
      ],
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}