#!/usr/bin/env bash
# x711.io quickstart — no signup needed, free tier (10/day per IP).
# Run:  curl -fsSL https://x711.io/agent-quickstart.curl | bash
set -euo pipefail
echo "→ Calling x711 web_search…"
curl -sS -X POST "https://x711.io/api/refuel" \
  -H "Content-Type: application/json" \
  -H "User-Agent: x711-quickstart/1.0" \
  -d '{"tool":"web_search","query":"x711 ai agent gas station"}' | tee /dev/stderr
echo
echo "✓ Done. Get a free API key: curl -X POST https://x711.io/api/onboard -H 'content-type: application/json' -d '{\"agent_name\":\"my-agent\"}'"
