{
  "schemaVersion": "1.0",
  "item": {
    "slug": "windfall-inference",
    "name": "Windfall Inference",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/papa-raw/windfall-inference",
    "canonicalUrl": "https://clawhub.ai/papa-raw/windfall-inference",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/windfall-inference",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=windfall-inference",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "LICENSE.md",
      "SKILL.md",
      "acp-service.json",
      "deploy/setup.sh",
      "package-lock.json",
      "package.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "windfall-inference",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T13:22:23.929Z",
      "expiresAt": "2026-05-11T13:22:23.929Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=windfall-inference",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=windfall-inference",
        "contentDisposition": "attachment; filename=\"windfall-inference-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "windfall-inference"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/windfall-inference"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/windfall-inference",
    "agentPageUrl": "https://openagent3.xyz/skills/windfall-inference/agent",
    "manifestUrl": "https://openagent3.xyz/skills/windfall-inference/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/windfall-inference/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Windfall Inference",
        "body": "Spatially-routed LLM inference gateway for AI agents on Base. Routes every request to the cheapest model on the cleanest energy."
      },
      {
        "title": "Setup",
        "body": "Set WINDFALL_API_KEY in your environment. Get one free at:\n\ncurl -X POST https://windfall.ecofrontiers.xyz/api/keys \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"wallet_address\": \"YOUR_WALLET\"}'\n\nKeys with an ERC-8004 agent identity or Basename get 100 free requests. Anonymous keys get 25."
      },
      {
        "title": "Usage",
        "body": "Use as an OpenAI-compatible endpoint. Set these two environment variables:\n\nOPENAI_BASE_URL=https://windfall.ecofrontiers.xyz/v1\nOPENAI_API_KEY=wf_YOUR_KEY\n\nOr call directly:\n\ncurl https://windfall.ecofrontiers.xyz/v1/chat/completions \\\n  -H \"Authorization: Bearer $WINDFALL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"auto\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n  }'"
      },
      {
        "title": "x402 Payment (No API Key Needed)",
        "body": "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."
      },
      {
        "title": "Routing Modes",
        "body": "greenest (default) — lowest carbon intensity\ncheapest — lowest energy cost\nbalanced — Pareto-weighted cost + carbon\n\nSet via \"mode\" in the request body or X-Routing-Mode header."
      },
      {
        "title": "Models",
        "body": "Default: DeepSeek V3 (auto-selected by engagement classifier). Override with \"model\" field. 200+ models available via OpenRouter."
      },
      {
        "title": "Pricing",
        "body": "Standard: $0.004/request\nPremium (Claude, GPT-4): $0.008/request\nGreen surcharge: +10% for greenest mode\nCache hits: free"
      },
      {
        "title": "Response Headers",
        "body": "Every response includes:\n\nX-Windfall-Cache — HIT or MISS\nX-Windfall-Mode — routing mode used\nX-Windfall-Model — model that handled the request\nX-Windfall-Node — node that executed the request\nX-Windfall-Cost — cost charged\nX-Windfall-Saved — savings vs direct API (cache hits)"
      },
      {
        "title": "Onchain Attestations",
        "body": "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."
      }
    ],
    "body": "Windfall Inference\n\nSpatially-routed LLM inference gateway for AI agents on Base. Routes every request to the cheapest model on the cleanest energy.\n\nSetup\n\nSet WINDFALL_API_KEY in your environment. Get one free at:\n\ncurl -X POST https://windfall.ecofrontiers.xyz/api/keys \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"wallet_address\": \"YOUR_WALLET\"}'\n\n\nKeys with an ERC-8004 agent identity or Basename get 100 free requests. Anonymous keys get 25.\n\nUsage\n\nUse as an OpenAI-compatible endpoint. Set these two environment variables:\n\nOPENAI_BASE_URL=https://windfall.ecofrontiers.xyz/v1\nOPENAI_API_KEY=wf_YOUR_KEY\n\n\nOr call directly:\n\ncurl https://windfall.ecofrontiers.xyz/v1/chat/completions \\\n  -H \"Authorization: Bearer $WINDFALL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"auto\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n  }'\n\nx402 Payment (No API Key Needed)\n\nWindfall 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.\n\nRouting Modes\ngreenest (default) — lowest carbon intensity\ncheapest — lowest energy cost\nbalanced — Pareto-weighted cost + carbon\n\nSet via \"mode\" in the request body or X-Routing-Mode header.\n\nModels\n\nDefault: DeepSeek V3 (auto-selected by engagement classifier). Override with \"model\" field. 200+ models available via OpenRouter.\n\nPricing\nStandard: $0.004/request\nPremium (Claude, GPT-4): $0.008/request\nGreen surcharge: +10% for greenest mode\nCache hits: free\nResponse Headers\n\nEvery response includes:\n\nX-Windfall-Cache — HIT or MISS\nX-Windfall-Mode — routing mode used\nX-Windfall-Model — model that handled the request\nX-Windfall-Node — node that executed the request\nX-Windfall-Cost — cost charged\nX-Windfall-Saved — savings vs direct API (cache hits)\nOnchain Attestations\n\nEvery 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."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/papa-raw/windfall-inference",
    "publisherUrl": "https://clawhub.ai/papa-raw/windfall-inference",
    "owner": "papa-raw",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/windfall-inference",
    "downloadUrl": "https://openagent3.xyz/downloads/windfall-inference",
    "agentUrl": "https://openagent3.xyz/skills/windfall-inference/agent",
    "manifestUrl": "https://openagent3.xyz/skills/windfall-inference/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/windfall-inference/agent.md"
  }
}