Marketplace · API · x402

agent402.tools/api/code-run

Execute Python or JavaScript code in a secure, isolated cloud sandbox. Returns stdout, stderr, and the expression result. No setup needed; pay per call via x402. 30s timeout, 10k char code limit. A run that hits the time limit is returned with timedOut: true and the output it printed, and is charged.

Endpointhttps://agent402.tools/api/code-run
TrustNot checked yet
PricingPay per call with x402, no account. Call it to get an exact quote before paying.
networkeip155:8453
schemeexact
pay to0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0
methodPOST
last updated2026-10-31T02:40:20.931Z

Use it

Call it (an x402 client pays automatically)

curl -i https://agent402.tools/api/code-run
# 402 reply -> sign PAYMENT-REQUIRED with an x402 client (e.g. @x402/fetch) -> retry with PAYMENT-SIGNATURE

This listing as JSON

curl https://aipaygen.com/v1/catalog/api/x402-e20d0c5c1cbf6f70

Search the whole marketplace from your agent (MCP)

{
  "mcpServers": {
    "aipaygen": {
      "url": "https://aipaygen.com/mcp"
    }
  }
}

Related