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.
| Endpoint | https://agent402.tools/api/code-run |
| Trust | Not checked yet |
| Pricing | Pay per call with x402, no account. Call it to get an exact quote before paying. |
| network | eip155:8453 |
| scheme | exact |
| pay to | 0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0 |
| method | POST |
| last updated | 2026-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-SIGNATUREThis listing as JSON
curl https://aipaygen.com/v1/catalog/api/x402-e20d0c5c1cbf6f70Search the whole marketplace from your agent (MCP)
{
"mcpServers": {
"aipaygen": {
"url": "https://aipaygen.com/mcp"
}
}
}