Skip to content
Fourohtwo

shellpermit.schemasure.com/v1/guard/shell

Decide whether an agent-authored bash command complies with an execution policy, using a real shell tokenizer rather than pattern matching. Catches recursive deletes, force pushes, cluster and infrastructure teardown, raw device writes, path escapes, privilege escalation, and curl-piped-to-shell through pipelines, substitutions, quoting games and base64. Returns reason codes with spans and an opti

BaseAnswering
POSThttps://shellpermit.schemasure.com/v1/guard/shell

Uptime100% of 1 check 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://shellpermit.schemasure.com/v1/guard/shell", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"audience":"executor:acme-prod-01","command":"rm -rf ./dist && npm run build","issue_permit":true,"policy":{"allow_destructive":true,"allow_network_egress":false,"allowed_roots":["/srv/app"],"cwd":"/srv/app"},"shell":"bash"}),
});
console.log(await res.json());

Example input

{
  "audience": "executor:acme-prod-01",
  "command": "rm -rf ./dist && npm run build",
  "issue_permit": true,
  "policy": {
    "allow_destructive": true,
    "allow_network_egress": false,
    "allowed_roots": [
      "/srv/app"
    ],
    "cwd": "/srv/app"
  },
  "shell": "bash"
}