Add risk scoring to your AI agent in 3 lines of code
| Endpoint | Price | Use Case |
|---|---|---|
/x402/risk-check | $0.005 | Quick risk score |
/x402/noleak | $0.01 | Execution integrity |
/x402/memguard | $0.01 | Memory verification |
/x402/riskoracle | $0.01 | Pre-action risk scoring |
/x402/secureexec | $0.01 | Tool call security |
/x402/validate | $0.01 | Policy validation |
/x402/delphi | $0.01 | Intelligence signals |
/x402/flowcore | $0.02 | Full pipeline (all checks) |
npm install @x402/fetch
// Your Base wallet with USDC
export PRIVATE_KEY="0x..."
// That's it. x402 handles payment automatically.
import { fetchWithPayment } from "@x402/fetch";
const res = await fetchWithPayment(
"https://achillesalpha.onrender.com/x402/riskoracle",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
agent_id: "my-trading-agent",
action: "swap 500 USDC to ETH",
value: 500
})
},
{ privateKey: process.env.PRIVATE_KEY }
);
const result = await res.json();
console.log(result);
// { risk_score: 0.23, recommendation: "proceed", factors: [...] }
# pip install x402-python
from x402 import Client
client = Client(private_key="0x...", network="base")
result = client.post(
"https://achillesalpha.onrender.com/x402/riskoracle",
json={"agent_id": "my-agent", "action": "transfer 100 USDC"}
)
print(result.json())
# Returns 402 + payment spec (no USDC needed to test)
curl -X POST https://achillesalpha.onrender.com/x402/riskoracle \
-H "Content-Type: application/json" \
-d '{"agent_id":"test","action":"swap 100 USDC"}'
Run all 4 checks in one call:
const res = await fetchWithPayment(
"https://achillesalpha.onrender.com/x402/flowcore",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
agent_id: "my-agent",
action: "deploy contract",
value: 1000,
memory_hash: "abc123"
})
},
{ privateKey: process.env.PRIVATE_KEY }
);
// { approved: true, risk_score: 0.15, integrity: "clean", pipeline_hash: "..." }
| x402 manifest | /.well-known/x402.json |
| OpenAPI spec | /openapi.json |
| LLM docs | /llms.txt |
| AI plugin | /.well-known/ai-plugin.json |
| MCP manifest | /.well-known/mcp.json |
| Agent card | /.well-known/agent.json |
| Status (free) | /x402/status |