---
name: aifuel-free-tier-ai-compute-harvester
description: 10-second developer and autonomous agent onboarding handbook for https://aifuel.fastmesh.dev (port 9049) — zero-secret multi-provider free-tier AI compute pool, COGS quote engine, failover proxy, route.fastmesh.dev exporter, and JSON-RPC 2.0 /mcp server across 18 providers (11 zero-card, 946 RPM, 33,073 RPD, 50.75M TPD) and 5 capability families.
---

# Free-Tier-AI-Compute-Harvester (`aifuel.fastmesh.dev`) — 10-Second Onboarding Guide

> **Hard Guarantees:** **Zero Secret Leak** (`reveal=False` via Register-Anything `POST /api/proxy/<domain>`) · **Zero CAPTCHA Bypass** (`PARKED_WITH_FALLBACK` / `PARKED_SILENTLY`, `0` retries) · **Zero Payment/Card Automation** · **Zero Trace Resale (`zero_trace_resale: true`)** · **Strictly `$0` Billed** on misses, empty outputs, HTTP `429` rate-limit exhaustion, `5xx` failures, CAPTCHA parks, and fake-`200` challenge traps.

---

## 1. Quick Endpoint Map (`https://aifuel.fastmesh.dev`)

| Surface | Method & Path | Price | Purpose |
| :--- | :--- | :---: | :--- |
| **Health & Readiness** | `GET /health` | `$0` | Reports service status and Register-Anything mode (`LIVE_DAEMON` or `DEGRADED_SAFE_OFFLINE`) |
| **Redacted Pool Telemetry** | `GET /v1/fuel/pool` | `$0` | Lists all `18` providers (`11` zero-card, `946` RPM, `33,073` RPD, `50.75M` TPD) across `5` capability families (`chat_json`, `embeddings`, `code_fim`, `vision_ocr`, `audio_asr`) |
| **COGS & Latency Quote** | `POST /v1/fuel/quote` | `$0` | Dry-run latency, failover ranking, and free-tier vs paid COGS savings estimate |
| **Harvest Plan Compiler** | `POST /v1/fuel/plan-harvest` | `$0.005` (`$0` on miss) | Enforces `120s` domain cooldown, `8`-slot cap, `$20/day` cap, `30` SMS/SIM/day cap, and instant CAPTCHA park |
| **Zero-Secret Proxy Inference** | `POST /v1/fuel/proxy-chat` | `$0.005` (`$0` on miss/error) | Calls upstream via Register-Anything (`reveal=False`), detects fake-`200`, backs off on `429`, emits SHA-256 receipt |
| **Route Export (`G20-07`)** | `GET /v1/fuel/export/route-fastmesh` | `$0` | Exports redacted upstream pool nodes for `route.fastmesh.dev` failover routers |
| **Remote MCP Server** | `POST /mcp` | `$0` / `$0.005` | Native JSON-RPC 2.0 (`initialize`, `tools/list`, `tools/call`) |
| **OpenAPI 3.1 Spec** | `GET /openapi.json` | `$0` | Full REST + MCP contract |
| **Creem Settlement Webhook** | `POST /webhooks/creem` | Webhook | Constant-time HMAC-SHA256 verified, replay-safe idempotent credit ledger |

Support & Security: `aifuel@fastmesh.dev`

---

## 2. 10-Second REST Quickstart (`curl`)

### Step 1 — Inspect the Redacted 18-Provider Pool (`$0`)
```bash
curl -fsSL "https://aifuel.fastmesh.dev/v1/fuel/pool"
```

### Step 2 — Run a Dry-Run COGS & Latency Quote (`$0`)
```bash
curl -fsSL -X POST "https://aifuel.fastmesh.dev/v1/fuel/quote" \
  -H "Content-Type: application/json" \
  -d '{
    "capability_family": "chat_json",
    "input_tokens": 1200,
    "output_tokens": 400,
    "requests_per_day": 1000
  }'
```

### Step 3 — Compile a Policy-Checked Harvest Plan
```bash
curl -fsSL -X POST "https://aifuel.fastmesh.dev/v1/fuel/plan-harvest" \
  -H "Content-Type: application/json" \
  -d '{
    "capability_families": ["embeddings"],
    "provider_ids": ["jina_ai", "cloudflare_workers_ai", "cohere"],
    "max_slots": 4,
    "dry_run": true
  }'
```

### Step 4 — Dispatch Zero-Secret Proxy Inference (`reveal=False`)
```bash
curl -fsSL -X POST "https://aifuel.fastmesh.dev/v1/fuel/proxy-chat" \
  -H "Content-Type: application/json" \
  -d '{
    "capability_family": "chat_json",
    "prompt": "Return a JSON object with status ok and provider count.",
    "json_mode": true
  }'
```

### Step 5 — Export Pool Nodes to `route.fastmesh.dev` (`$0`)
```bash
curl -fsSL "https://aifuel.fastmesh.dev/v1/fuel/export/route-fastmesh"
```

---

## 3. 10-Second Remote `/mcp` Quickstart (JSON-RPC 2.0)

### Initialize & Discover Tools
```bash
curl -fsSL -X POST "https://aifuel.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"agent","version":"1.0"}}}'

curl -fsSL -X POST "https://aifuel.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
```

### Canonical MCP Tools Exposed by `tools/list`
1. `fuel_pool` — Inspect redacted telemetry for all 18 free-tier AI compute providers across 5 capability families (`$0`).
2. `fuel_plan_harvest` — Compile a redline-compliant harvest batch plan (`120s` cooldown, `8` slots, `0` CAPTCHA retries, zero payment actions).
3. `fuel_quote` — Dry-run `$0` COGS savings and latency quote across `chat_json`, `embeddings`, `code_fim`, `vision_ocr`, and `audio_asr`.
4. `fuel_proxy_chat` — Execute zero-secret proxied AI inference (`reveal=False`) with automatic CAPTCHA park, fake-`200`/`429` failover, and `ArchiveCache`.
5. `fuel_export_route_fastmesh` — Export redacted zero-secret pool nodes for `route.fastmesh.dev` and `G20-07` failover routing (`$0`).

### Invoke a Tool via `tools/call`
```bash
curl -fsSL -X POST "https://aifuel.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "fuel_quote",
      "arguments": {
        "capability_family": "chat_json",
        "input_tokens": 1200,
        "output_tokens": 400,
        "requests_per_day": 1000
      }
    }
  }'
```

### Portable MCP Client Configuration
```json
{
  "mcpServers": {
    "aifuel": {
      "url": "https://aifuel.fastmesh.dev/mcp",
      "transport": "streamable-http"
    }
  }
}
```

---

## 4. Capability Families & Cache Isolation Rules

| Capability Family | Cataloged Providers | Cache Policy | Repeat Pricing | Typical Use Case |
| :--- | :---: | :--- | :---: | :--- |
| `chat_json` | `16` | `TTL_NEVER` (strictly non-cached cross-tenant) | Full (`5,000` micros) | JSON extraction, reasoning, structured agent steps |
| `embeddings` | `10` | Adaptive-TTL `ArchiveCache` (7d to 30d TTL) | `10%` (`500` micros) | RAG indexing, semantic retrieval, clustering |
| `code_fim` | `14` | `TTL_NEVER` (strictly non-cached cross-tenant) | Full (`5,000` micros) | Editor fill-in-the-middle and code completion |
| `vision_ocr` | `13` | Adaptive-TTL `ArchiveCache` (7d to 30d TTL) | `10%` (`500` micros) | Receipt, table, PDF, and document OCR |
| `audio_asr` | `9` | Adaptive-TTL `ArchiveCache` (7d to 30d TTL) | `10%` (`500` micros) | Meeting, voice-note, and podcast transcription |

---

## 5. Hard Operational Guardrails & Zero-Billing Matrix

- **Zero-Secret Transport:** Upstream traffic exits strictly through local Register-Anything (`http://127.0.0.1:18793/api/proxy/<domain>`) with `NO_PROXY` and `reveal=False`. Plaintext provider credentials never enter `aifuel.fastmesh.dev` responses or agent context windows.
- **Zero CAPTCHA Bypass:** Turnstile, reCAPTCHA, hCaptcha, or GeeTest gates trigger `PARKED_WITH_FALLBACK` or `PARKED_SILENTLY` with `0` retries and immediate failover.
- **Zero Payment/Card Automation:** Any checkout, credit-card, or CVV step is hard-rejected.
- **Rate & Budget Limits:** `120s` per-domain cooldown lock · `8` max concurrent slots · `$20/day` hard spend ceiling · `30` SMS/SIM/day ceiling.
- **`$0` Billing Trigger Conditions:** Empty payload, HTTP `422` validation failure, HTTP `429` exhaustion, HTTP `5xx` error, fake-`200` HTML/challenge trap, or CAPTCHA park -> always returns `billed_micros: 0` with a verifiable SHA-256 receipt.

---

## 6. Prepaid Creem Credit Packs & Local Edge Hand CLI

| Pack | Product ID | One-Time Price | Non-Expiring Credits | Checkout Link |
| :--- | :--- | :---: | :--- | :--- |
| **Starter** | `prod_aifuel_starter_19` | `$19` | `$19.00` (`19,000,000` micros, `3,800` calls) | https://www.creem.io/product/prod_aifuel_starter_19 |
| **Pro** | `prod_aifuel_pro_79` | `$79` | `$85.00` (`85,000,000` micros, `+7.6%` bonus) | https://www.creem.io/product/prod_aifuel_pro_79 |
| **Scale** | `prod_aifuel_scale_249` | `$249` | `$280.00` (`280,000,000` micros, `+12.4%` bonus) | https://www.creem.io/product/prod_aifuel_scale_249 |

### Local Causal Bazaar Hand (`w5_t09_aifuel_zero_secret_harvester_v1`)
```bash
python3 run_hand.py --action self-test
python3 run_hand.py --action pool
python3 run_hand.py --action quote --capability-family chat_json --estimated-tokens 250000
python3 run_hand.py --action export-route
```
