Install
openclaw skills install windfall-inferenceSpatially-routed LLM inference at $0.004/req. Routes to cheapest, greenest energy. 200+ models. OpenAI-compatible. Onchain attestations on Base.
openclaw skills install windfall-inferenceSpatially-routed LLM inference gateway for AI agents on Base. Routes every request to the cheapest model on the cleanest energy.
Set WINDFALL_API_KEY in your environment. Get one free at:
curl -X POST https://windfall.ecofrontiers.xyz/api/keys \
-H "Content-Type: application/json" \
-d '{"wallet_address": "YOUR_WALLET"}'
Keys with an ERC-8004 agent identity or Basename get 100 free requests. Anonymous keys get 25.
Use as an OpenAI-compatible endpoint. Set these two environment variables:
OPENAI_BASE_URL=https://windfall.ecofrontiers.xyz/v1
OPENAI_API_KEY=wf_YOUR_KEY
Or call directly:
curl https://windfall.ecofrontiers.xyz/v1/chat/completions \
-H "Authorization: Bearer $WINDFALL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [{"role": "user", "content": "Hello"}]
}'
Windfall supports the x402 payment protocol. Any agent with a Base wallet can pay per-request without creating an API key. Send a request without auth and the server returns HTTP 402 with a PAYMENT-REQUIRED header containing USDC payment instructions on Base. Your x402 client handles the rest.
greenest (default) — lowest carbon intensitycheapest — lowest energy costbalanced — Pareto-weighted cost + carbonSet via "mode" in the request body or X-Routing-Mode header.
Default: DeepSeek V3 (auto-selected by engagement classifier). Override with "model" field. 200+ models available via OpenRouter.
greenest modeEvery response includes:
X-Windfall-Cache — HIT or MISSX-Windfall-Mode — routing mode usedX-Windfall-Model — model that handled the requestX-Windfall-Node — node that executed the requestX-Windfall-Cost — cost chargedX-Windfall-Saved — savings vs direct API (cache hits)Every inference call produces a verifiable EAS attestation on Base with: node location, energy price, carbon intensity, model used, and response hash. Query at base.easscan.org.