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_..."}
Enter fullscreen mode
Exit fullscreen mode
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.…