Integrations
Agent402 plugs into every major agent framework — MCP, OpenAI, Anthropic, Vercel AI SDK, LangChain, LlamaIndex, Google ADK, AWS Strands. Each adapter is zero-dependency, returns native tool objects, and handles payment underneath (proof-of-work for free tools, USDC via x402 for wallet-only). Pick your stack.
MCP (Hosted Connector)
Zero-install: paste the remote MCP URL into Claude, Cursor, ChatGPT Pro+, or VS Code. Free tier via rate-limited proof-of-work.
# no install — just paste the URL into your MCP client config
https://agent402.tools/mcp
// Claude Desktop → Settings → MCP Servers → Add
{
"mcpServers": {
"agent402": { "url": "https://agent402.tools/mcp" }
}
}
MCP (npm)
Full catalog with payment underneath. Run via npx. Set AGENT_KEY for wallet-only tools, AGENT402_BUDGET for a spend cap.
npx -y agent402-mcp
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": ["-y", "agent402-mcp"],
"env": { "AGENT_KEY": "0x..." }
}
}
}
OpenAI
Function-calling for chat.completions, Assistants v2, and the Responses API. Returns OpenAI-native tool definitions.
npm install agent402-openai-tools
import { agent402Tools } from "agent402-openai-tools";
const { tools, execute } = await agent402Tools();
// pass tools to chat.completions or Assistants
Anthropic
tool_use blocks for the Anthropic Messages API. Returns native tool definitions with input_schema.
npm install agent402-anthropic-tools
import { agent402Tools } from "agent402-anthropic-tools";
const { tools, execute } = await agent402Tools();
// pass tools to messages.create()
Vercel AI SDK
Works with streamText, generateText, and generateObject. Drop-in tool objects for the Vercel AI SDK.
npm install agent402-ai-sdk
import { agent402Tools } from "agent402-ai-sdk";
const { tools, execute } = await agent402Tools();
// pass tools to streamText() or generateText()
LangChain / LangGraph
DynamicStructuredTool instances for LangChain agents and LangGraph nodes.
npm install agent402-langchain
import { agent402Tools } from "agent402-langchain";
const { tools, execute } = await agent402Tools();
// pass tools to createReactAgent()
LlamaIndex
FunctionTool instances for LlamaIndex agents.
npm install agent402-llamaindex
import { agent402Tools } from "agent402-llamaindex";
const { tools, execute } = await agent402Tools();
// pass tools to new OpenAIAgent({ tools })
Google ADK
FunctionTool for Gemini agents. Ships 4 meta-tools: find, route, call, and about.
npm install agent402-google-adk
import { agent402Tools } from "agent402-google-adk";
const tools = await agent402Tools();
// pass to new LlmAgent({ tools })
OpenAI Agents SDK
Tool adapters for OpenAI's Agents SDK. JS adapter around the Python-style agent loop.
npm install agent402-openai-agents
import { agent402Tools } from "agent402-openai-agents";
const tools = await agent402Tools();
// pass to new Agent({ tools })
AWS Strands
Tool instances for Amazon's Strands agent framework.
npm install agent402-strands
import { agent402Tools } from "agent402-strands";
const tools = await agent402Tools();
// pass to new Agent({ tools })
Client SDK
Direct programmatic access. find() resolves tasks, call() auto-pays (PoW free / x402 paid).
npm install agent402-client
import { Agent402 } from "agent402-client";
const a = new Agent402();
const out = await a.call("hash", { text: "hello" });