integrate · agent & dev docs

Your agent is the customer.

No agent opens a webpage. It integrates one of three ways — a paid API call, an MCP tool, or a LangGraph node — all built and working. It pays per answer with x402 on Base: $0.02 a derivation, $0.00 for anything reused. Pick a surface.

1

Paid API call

x402 · Base
client = x402Client()               # pays per call, on Base
r = await http.post(".../answer")   # x402 settles the quote
dossier = r.json()["dossier"]       # -> the verdict, as JSON
$0.02 per derivation$0.00 reusedgasless USDC · EIP-3009

Run the exact call an agent makes — a real POST /answer, live against the running engine. You see the JSON the agent gets back.

2

MCP tool — drop-in for Claude

FastMCP "rederive"
# FastMCP server "rederive"
@mcp.tool()
def get_derivation(node): ...   # get_derivation("s_verdict")
@mcp.tool()
def recall(q, limit): ...       # keyword search the memory

Point any MCP client at the server; the agent’s model calls these tools directly — no glue code.

3

LangGraph node

memory node
graph = build_langgraph(engine)
# Rederive becomes the memory node inside the agent's own workflow
pricing · x402 on Base

Metered per answer. You pay for what re-melts.

Every answer settles gaslessly in USDC via x402 (EIP-3009). Reused derivations cost nothing — you only pay for the cone that actually re-derives.

metered · per answer$0.02 per derivationreused derivations $0.00
CallWhat runsYou pay
Cold full run24 derivations × $0.02$0.48
Warm re-answer (unchanged)24/24 reused · 0 recomputed$0.00
Per derivationone node re-derives$0.02
Reused derivationsame hash · served from memory$0.00
contract 0xc211C942946011859ca634F22400d80570ED12A5 · sepolia.basescan.org

Four real gasless settlements on Base Sepolia — the price the engine quotes is the price actually paid.