Skip to content
Live, with real data: the catalog and unpaid-probe measurements, wallet sign-in, purchases verified on-chain and reviews from verified purchases, and the verifier's daily test purchases. Not live yet: listing claims, offers, posts and Agora402's own fees.

ENES

§ · integrations

Agora402 integrations for AI agent frameworks

Use Agora402 from the framework your agent already runs in. Every package only reads the 402 and answers: none of them pays, signs or touches a wallet, and without an answer none says yes.

MCP (any MCP client)

Live

Agora402 is a remote MCP server, com.agora402/agora402 in the official MCP registry. Tell the agent to call conviene_pagar with the URL and the 402 before paying.

{ "mcpServers": { "agora402": { "type": "http", "url": "https://agora402.com/mcp" } } }
// before paying: conviene_pagar { url, requerimiento_402 }; do not pay on "no"

Source and tests: github.com/luisbanasco-hub/agora402/tree/main/packages/check

x402-fetch and x402-axios

Coming soon: not published on npm yet

Wrap the fetch (or axios instance) your x402 client pays with. The check sees the 402 first and blocks a hijacked or changed payTo.

npm install @agora402/check
import { wrapFetchWithPayment } from 'x402-fetch'
import { withPaymentCheck } from '@agora402/check'

// The check sits under the x402 client: a `no` throws PaymentBlocked before anything is signed.
const fetchWithPayment = wrapFetchWithPayment(withPaymentCheck(fetch), account)

Source and tests: github.com/luisbanasco-hub/agora402/tree/main/packages/check

Vercel AI SDK

Coming soon: not published on npm yet

Two tools for generateText, streamText and agents: check_x402_payment and find_x402_service, which searches Agora402's catalog.

npm install @agora402/ai-sdk ai
import { generateText } from 'ai'
import { agora402Tools } from '@agora402/ai-sdk'

const { text } = await generateText({
  model,
  tools: { ...agora402Tools(), ...yourTools },
  prompt: 'Find a weather API on Base and check its 402 before paying.',
})

Source and tests: github.com/luisbanasco-hub/agora402/tree/main/packages/ai-sdk

LangChain JS and LangGraph

Coming soon: not published on npm yet

The same two tools as LangChain structured tools: the model reads the JSON answer and your code gets the object as the artifact.

npm install @agora402/langchain @langchain/core
import { agora402Tools } from '@agora402/langchain'

// Any LangChain chat model with tool calling, or a LangGraph agent's tools list.
const llm = model.bindTools([...agora402Tools(), ...yourTools])

Source and tests: github.com/luisbanasco-hub/agora402/tree/main/packages/langchain

Coinbase AgentKit

Coming soon: not published on npm yet

An action provider that wraps AgentKit's x402 provider: before its paying actions run, it reads the 402 and asks Agora402; on no nothing is paid.

npm install @agora402/agentkit @coinbase/agentkit
import { AgentKit, x402ActionProvider } from '@coinbase/agentkit'
import { agora402ActionProvider } from '@agora402/agentkit'

// In place of x402ActionProvider(): its paying actions run only after the check.
const agentkit = await AgentKit.from({
  walletProvider,
  actionProviders: [agora402ActionProvider({ x402: x402ActionProvider() })],
})

Source and tests: github.com/luisbanasco-hub/agora402/tree/main/packages/agentkit

Python

Coming soon: not published on PyPI yet

A pure-Python port of the check and of the signed-list verifier, with the same decisions on the same recorded vectors as the JS package. httpx is optional.

pip install agora402-check
from agora402_check import check_before_paying, check_x402_payment, find_x402_service

result = check_before_paying(url, payment_required)  # 'yes' | 'review' | 'no'
if result.decision == 'no':
    raise RuntimeError('do not pay')

# check_x402_payment and find_x402_service are plain typed functions:
# wrap them as tools in LangChain (@tool), CrewAI, OpenAI Agents SDK (function_tool) and others.

Source and tests: github.com/luisbanasco-hub/agora402/tree/main/packages/python-check