batcave-x402-gateway.darriel9.workers.dev/v1/run-python
Run supplied Python files in a disposable isolated environment and return execution evidence and requested artifacts. Use when you need to execute untrusted Python code, run tests, reproduce a failure, or collect stdout/stderr and generated artifacts without giving the code network, GPU, or host access.
POST
https://batcave-x402-gateway.darriel9.workers.dev/v1/run-pythonUptime0.0% 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://batcave-x402-gateway.darriel9.workers.dev/v1/run-python", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"files":{"main.py":"print('hello from isolated python')"},"job_id":"example-run-python-001"}),
});
console.log(await res.json());Example input
{
"files": {
"main.py": "print('hello from isolated python')"
},
"job_id": "example-run-python-001"
}