Skip to content
Fourohtwo

Spend gate for AI agents

screwtape.ai/v1/judge

Spend gate for AI agents: pass, fail or retry on an invoice, payment instruction or any agent output, checked against your evidence and checks (such as line items summing to the total), with an Ed25519-signed receipt.

BaseSolanaAnswering
POSThttps://screwtape.ai/v1/judge

Uptime100% of 2 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://screwtape.ai/v1/judge", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"agent_output":"The crew size was 4. The mission launched from Cape Canaveral.","criteria":["crew size","Cape Canaveral"],"evidence":["The mission launched on 2024-03-01 from Cape Canaveral.","The crew size was 4."],"task":"State the crew size and launch site."}),
});
console.log(await res.json());

Example input

{
  "agent_output": "The crew size was 4. The mission launched from Cape Canaveral.",
  "criteria": [
    "crew size",
    "Cape Canaveral"
  ],
  "evidence": [
    "The mission launched on 2024-03-01 from Cape Canaveral.",
    "The crew size was 4."
  ],
  "task": "State the crew size and launch site."
}

More from Screwtape.aiProvider status