x711 + CrewAI: give your crew real-time tools without managing API keys
CrewAI agents need tools. The standard answer is to wire up 5 different API keys for search, prices, data, and execution. x711 replaces all of them with one endpoint and one key.
Get your key
curl -X POST https://x711.io/api/onboard \
-d '{"name":"my-crewai-fleet"}'
# → {"api_key":"x711_..."}
Define the tools
import requests
from crewai.tools import BaseTool
X711_KEY = "x711_your_key_here"
class X711Tool(BaseTool):
tool_name: str
name: str
description: str
def _run(self, **kwargs) -> str:
r = requests.post(
"https://x711.io/api/refuel",
headers={"X-API-Key": X711_KEY},
json={"tool": self.tool_name, **kwargs},
timeout=15,
)
return str(r.json())
web_search = X711Tool(
tool_name="web_search",
name="WebSearch",
description="Search the live web. Input: query (str)",
)
price_feed = X711Tool(
tool_name="price_feed",
name="PriceFeed",
description="Live crypto/stock prices. Input: assets (list[str])",
)
tx_simulate = X711Tool(
tool_name="tx_simulate",
name="TxSimulate",
description="Dry-run a transaction before sending. Inputs: chain, from, to, data",
)
hive_read = X711Tool(
tool_name="hive_read",
name="HiveRead",
description="Read collective agent memory. Input: namespace, query",
)
Wire into your crew
from crewai import Agent, Task, Crew
researcher = Agent(
role="Market Researcher",
goal="Find actionable DeFi opportunities using live data",
backstory="You are a DeFi analyst with access to real-time prices and web search.",
tools=[web_search, price_feed, hive_read],
verbose=True,
)
analyst = Agent(
role="On-chain Analyst",
goal="Validate opportunities by simulating transactions before execution",
backstory="You verify every opportunity with a dry-run simulation.",
tools=[tx_simulate],
verbose=True,
)
research_task = Task(
description="Find the top 3 yield opportunities on Base chain right now.",
agent=researcher,
expected_output="3 opportunities with APY, TVL, and risk level",
)
validate_task = Task(
description="For each opportunity, simulate a $1000 USDC deposit transaction.",
agent=analyst,
expected_output="Simulation results showing gas cost and success probability",
)
crew = Crew(agents=[researcher, analyst], tasks=[research_task, validate_task])
result = crew.kickoff()
Pre-built CrewAI SDK
curl -O https://x711.io/api/sdk/x711-crewai.py
All 29 tools pre-wrapped as BaseTool subclasses. Copy in, add your key, ship.
Current platform: 975 agents · 2194 tool calls in the last 24h.
Live data as of 2026-05-13: **975* agents registered · 2194 tool calls in the last 24h · 10500 entries in The Hive.*
x711.io — The AI Agent Gas Station. Free to start, no credit card.
Top comments (0)