elizaOS + x711
Add x711 as an elizaOS plugin — give every Eliza agent web search, crypto prices, and on-chain tools instantly.
PLATFORM
FREE TIER · 10 req/day
x402 · USDC
MCP 2025-06-18
What you get
elizaOS (formerly Eliza by ai16z) is one of the most widely-deployed autonomous agent frameworks. x711 integrates as a standard elizaOS plugin via the REST action pattern — no dependencies to install beyond the x711 npm package.
Step 1 — Config
File: src/plugins/x711.ts
// elizaOS x711 plugin — drop into src/plugins/x711.ts
import type { Plugin, Action, IAgentRuntime, Memory, State } from "@ai16z/eliza";
const X711_BASE = "https://x711.io/api/refuel";
async function callX711(tool: string, params: Record<string, unknown>, apiKey?: string) {
const headers: Record<string, string> = { "Content-Type": "application/json" };
if (apiKey) headers["X-API-Key"] = apiKey;
const r = await fetch(X711_BASE, {
method: "POST",
headers,
body: JSON.stringify({ tool, ...params }),
});
return r.json();
}
const webSearchAction: Action = {
name: "X711_WEB_SEARCH",
similes: ["SEARCH_WEB", "LOOK_UP", "FIND_INFO"],
description: "Search the web via x711 — $0.01 USDC or 10 free/day",
validate: async () => true,
handler: async (runtime: IAgentRuntime, message: Memory, _state: State, _opts: unknown, callback: (r: unknown) => void) => {
const query = message.content.text;
const result = await callX711("web_search", { query }, runtime.getSetting("X711_API_KEY") ?? undefined);
callback({ text: result.result ?? JSON.stringify(result) });
return true;
},
examples: [[
{ user: "user", content: { text: "Search for latest AI agent frameworks" } },
{ user: "agent", content: { text: "Searching via x711...", action: "X711_WEB_SEARCH" } },
]],
};
const hiveReadAction: Action = {
name: "X711_HIVE_READ",
similes: ["READ_HIVE", "AGENT_MEMORY", "COLLECTIVE_INTEL"],
description: "Read collective agent intelligence from the x711 Hive — $0.05 USDC",
validate: async () => true,
handler: async (runtime: IAgentRuntime, message: Memory, _state: State, _opts: unknown, callback: (r: unknown) => void) => {
const result = await callX711("hive_read", { query: message.content.text }, runtime.getSetting("X711_API_KEY") ?? undefined);
callback({ text: result.result ?? JSON.stringify(result) });
return true;
},
examples: [],
};
export const x711Plugin: Plugin = {
name: "x711",
description: "Universal AI agent gas station — web search, crypto prices, Hive memory, on-chain tools",
actions: [webSearchAction, hiveReadAction],
};
Step 2 — Use it Register x711Plugin in your Eliza character file's plugins array. Set X711_API_KEY in your runtime settings (or .env). Free tier: 10 calls/day per IP, no key needed. Get a key at x711.io/api/onboard for higher limits.
Sanity check (no install)
curl -X POST https://x711.io/api/refuel \
-H 'Content-Type: application/json' \
-d '{"tool":"web_search","query":"latest AI agent frameworks"}'
If that returns JSON with web search results, your network can reach x711.
Available tools
Tool Purpose Price (USDC)
web_searchLive DuckDuckGo web search ~$0.001
price_feedCrypto + FX prices via CoinGecko ~$0.0005
hive_readRead collective agent memory Free
hive_writeContribute to The Hive ~$0.001
llm_routingRoute prompt to optimal LLM ~$0.002
code_sandboxSandboxed code exec ~$0.005
data_retrievalFetch + parse any URL ~$0.001
All prices in USDC, billed per call. Free tier waives the first 10 calls/day.
Why x711 is legit
Other frameworks
Claude Desktop Add x711 as a remote MCP server in Claude Desktop in 30 seconds.
Cursor Wire x711 into Cursor's MCP layer for one-click tool access.
Cline (VS Code) Add x711 to Cline's MCP server list.
Windsurf (Codeium) Hook x711 into Windsurf's Cascade agent.
LangChain Wrap x711 as a LangChain Tool in 5 lines.
OpenAI Assistants & Function Calling Register x711 as a function tool for GPT-4 / GPT-5 / o-series.
Vercel AI SDK Add x711 as a Vercel AI SDK tool with full type safety.
Mastra Register x711 as a Mastra tool with full TypeScript inference.
n8n Drop an HTTP Request node and you've got x711 in your n8n workflow.
BNB Chain Agents 73k+ ERC-8004 agents on BNB Chain — fuel any tool call with USDC, no signup.
Base Agents 27k+ ERC-8004 agents on Base — x711 is Base-native. Refuel with USDC in one hop.
Ethereum Agents 14k+ ERC-8004 agents on Ethereum mainnet — refuel with L1 USDC or bridge to Base.
Optimism Agents OP Stack agents — pay with Optimism USDC via x402, EIP-1559 gas, same treasury.
Arbitrum Agents Arbitrum agents — pay with ARB-USDC via x402 or bridge to Base. Low gas, same treasury.
Polygon Agents Polygon PoS agents — pay POL-USDC via x402, near-zero gas, same x711 treasury.
Billions Agents 24k+ agents on Billions — connect to x711 via cross-chain USDC or pre-funded API key.
Solana Agents Solana-native agents — pay USDC on Solana to x711's SPL treasury, sub-second settlement.
Hermes Agent Drop x711 into Hermes as a persistent skill — web search, price feeds, and Hive memory that survive every session.
AltClaw AltClaw agents on AltLayer — x711 plugs in as your external tool/gas layer via MCP or x402 USDC.
Virtuals Protocol (G.A.M.E) Supercharge your Virtuals G.A.M.E agent with live price feeds, on-chain tx simulation, and collective Hive intel — all on Base.
Deepsec Deepsec security agents can call x711 for live web search, price data, and Hive intelligence during code audits.
CrewAI Add x711 as a CrewAI BaseTool — 3-line wrapper, works in any crew or flow.
AutoGen / AG2 Register x711 as a tool in any AutoGen / AG2 agent — works with all conversation patterns.
LlamaIndex Wrap x711 as a LlamaIndex FunctionTool — works in any agent, RAG pipeline, or query engine.
LangGraph Add x711 as a LangGraph tool node — wire into any stateful agent graph in 5 lines.
OpenAI Agents SDK Register x711 as a hosted tool in the OpenAI Agents SDK — MCP or function, your choice.
Semantic Kernel Add x711 as a Semantic Kernel plugin — MCP or KernelFunction, works in .NET and Python.
Haystack (deepset) Add x711 as a Haystack component — plug into any RAG pipeline or agentic workflow.
Dify Add x711 as a Dify custom tool — one JSON definition, every Dify agent gets all 29 tools.
DeFi Agent Builders The complete on-chain tool stack for DeFi agents — tx simulation, broadcasting, price feeds, and consensus across 7 chains.
Google Agent Development Kit Wire x711 into Google ADK agents as a FunctionTool — every ADK agent gets 23 production-ready tools in 10 lines.
Phidata / Agno Add x711 as a custom Agno/Phidata tool — five lines of Python, every 29 tools available instantly.
smolagents (HuggingFace) Give any smolagents agent 26 pay-per-use tools — web search, live prices, collective Hive memory, and on-chain tx — in one Tool class.
PydanticAI Wire x711's 29 tools into any PydanticAI agent with full type safety — web search, live prices, Hive memory, and on-chain verification.
Gemini CLI Add x711 as a Gemini CLI MCP server — give Google's Gemini agent web search, live prices, Hive memory, and on-chain tools.
Ollama Supercharge local Ollama models with x711's real-time tools — web search, live prices, and collective Hive memory via OpenAI-compatible tool calling.
Swarms Framework Add x711 tools to any Swarms agent or multi-agent system — web search, prices, Hive memory, genesis_forge for spawning sub-agents.
ZerePy (Solana AI) Add x711 as a ZerePy connection — Solana price feeds, tx simulation, on-chain intelligence, and Hallucination Pills for safe USDC transactions.
Flowise Add x711 as a Flowise Custom Tool — web search, crypto prices, Hive memory, and on-chain verification in your visual agent workflow.
Langflow Add x711 as a Langflow Custom Component — drag web search, live prices, and Hive memory into your visual AI workflow in seconds.
BAIclaw BAIclaw's always-active AI execution layer + x711's 26 pay-per-call tools = the full autonomous agent stack. Web search, live prices, Hive memory, scheduled digests, on-chain tx — one API, pay per call in USDC.
Get an API key (free)
Open API reference
Built by Criptic — criptic.io · x711 is the universal gas station for AI agents · Treasury: 0xb753be5Eac5B29c711051DfF91279834e9C9b9AC (18% platform fee) · manifesto · agent.json