ClawFarm Whitepaper
Decentralized AI Compute Marketplace — Protocol Architecture
v2.0 — April 2026
ClawFarm is a permissionless, non-custodial AI compute marketplace built on Solana. Users deposit USDC into an on-chain escrow contract, choose an automatic routing mode (eco / auto / premium), and consume AI inference from any registered Provider — without signing up with individual providers, configuring API keys, or trusting a central platform with their funds.
Providers register on-chain with a model endpoint, a public price table, and a $CLAF stake. The protocol routes requests, meters consumption via dual-signature usage proofs, settles payments through smart contracts, and distributes rewards — all without admin override.
Central Claim: ClawFarm is the first truly non-custodial AI compute marketplace. The platform never holds user funds. Every USDC sits in a program-owned escrow. Every settlement is a contract execution. Every Provider payout is an on-chain transfer.
1.1 Centralized AI Inference Market
Today's AI inference market is dominated by centralized intermediaries. Users must register with each provider individually, manage multiple API keys and billing accounts, and trust each platform with payment credentials. Providers must build their own payment infrastructure and accept opaque revenue splits.
1.2 Existing Decentralized AI Projects Fall Short
Most decentralized AI compute networks suffer from subjective quality scoring, governance-controlled treasuries, verification theater, and high provider barriers.
1.3 The Gap
No AI compute marketplace is simultaneously permissionless, non-custodial, transparent, and practical. ClawFarm fills this gap.
USER LAYER
Wallet + ClawFarm SDK
USDC Deposit/Withdraw · Route Selection
Client-Side Token Counting · Usage Proof Signing
│
▼
PROTOCOL LAYER (Solana Programs)
Escrow · Provider Registry · Settlement
Treasury · Reward Distribution
│
▼
PROVIDER LAYER
GPU Nodes · Cloud GPU · API Resellers · Custom Models3.1 Escrow Contract
Holds all user USDC in a Program Derived Address (PDA). No admin key can withdraw on behalf of a user.
deposit(amount) → USDC from wallet to PDA → update balance → emit event withdraw(amount) → verify signature → check available → PDA to wallet balance() → available = deposited - settled - pending
3.2 Provider Registry
Permissionless registration. Requires $CLAF stake as collateral.
register_provider(endpoint, models[], pricing[], stake_amount) → verify minimum stake (1,000 $CLAF) → lock $CLAF in staking account → create on-chain ProviderAccount → status = Active
3.3 Settlement Contract
Processes dual-signed usage proofs. Both user and provider must sign — neither can fabricate usage.
settle(usage_proofs[])
for each proof:
1. verify user_signature + provider_signature
2. cost = input_tokens × input_price + output_tokens × output_price
3. deduct from user escrow
4. transfer 97% → provider wallet
5. transfer 3% → treasury
6. record AWU for rewards3.4 Treasury Contract
Non-discretionary buyback-and-burn engine. No governance.
Off-chain but open-source. Runs client-side in the ClawFarm SDK. Reads on-chain Provider Registry.
Routing signals: prompt length, tool calls, deep thinking flag, on-chain price table, historical quality scores, user preferences.
Layer 1: Client-Side Counting
Input tokens: deterministic (tokenizer). Output tokens: stream counting. Independent of Provider.
Layer 2: Dual Signature
User SDK + Provider both sign usage proof. Mismatch → no settlement.
Layer 3: Sampling Audit
Random N% re-executed on different Provider. Deviation → dispute.
Layer 4: Stake Slashing
On-chain evidence resolves disputes. Guilty → $CLAF stake slashed.
User
Deposits USDC to escrow. Selects routing mode. Signs usage proofs. Earns $CLAF via Usage Mining. Withdraws anytime.
Provider
Registers on-chain with stake. Serves inference. Sets own prices. Earns 97% revenue + $CLAF rewards.
Protocol
Holds escrow (PDA). Settles payments. Computes rewards. Collects 3% tax. Burns $CLAF. No admin override.
User Escrow (PDA)
├─ dual-signature usage proof verified
├─ 97% → Provider Wallet (on-chain transfer)
└─ 3% → Treasury Contract (AI Agent Controlled)
├─ 70% → TWAP buyback $CLAF → burned
├─ 20% → Core development & Maintenance
└─ 10% → Infrastructure Resilience (Mirror Nodes)W_i = AWU_i × (P_avg / P_i) × Q_i Reward_i = E_t × W_i / ΣW
Epoch Distribution
Self-Flooding
Requires real USDC payment. Circular patterns detected. Dual-sig adds coordination cost.
Token Inflation
Client-side counting + dual-sig + sampling audit + stake slashing.
Phantom Service
Q_i degrades to 0. Sampling audit detects garbage. Failed requests excluded from AWU.
Predatory Pricing
Low price × low quality = W_i ≈ 0. Formula self-corrects.
No fund custody
User USDC in PDA escrow. No human holds private key. Withdraw anytime.
No whitelist
Providers register via contract call. Protocol cannot exclude a compliant Provider.
No manual rewards
Formula-only allocation. No admin key. No special allocation.
No centralized pricing
Each Provider sets own price on-chain. Routing by market signal.
No subjective scoring
Quality = success rate × latency × uptime. Machine-verifiable only.
No governance treasury
Buyback and burn is automatic. No allocation committee. No human spending.
Phase 1: Foundation (Q2 2026)
Deploy Escrow, Registry, Settlement on devnet. Open-source SDK with routing. Testnet launch. Initial Provider onboarding.
Phase 2: Mainnet (Q3 2026)
Mainnet deployment + audit. $CLAF token launch. Provider staking + slashing. Sampling audit live. Public API + SDK.
Phase 3: Full Decentralization (Q4 2026)
Client-side routing (no relay). Upgrade authority renounced. Cross-chain USDC deposits. Community relay nodes. Mobile SDK.
Phase 4: Maturity (2027)
ZK proofs for token counting. Multi-chain providers. Inference marketplace (jobs + bids). Protocol-level SLA enforcement.
ClawFarm is not another centralized aggregator on a blockchain. It is a fundamentally different architecture: users own their funds, providers own their business, and the protocol owns nothing — it executes rules, collects 3%, and burns tokens.
Compute is permissionless. Payment is trustless. Rewards follow contribution.
Official $CLAF Token Mirror: [https://ipfs.io/ipfs/Qmcq5NvjVqcpqSt3xA1ebrDmyXA8TgS9goPauocc5LPjh6/](https://ipfs.io/ipfs/Qmcq5NvjVqcpqSt3xA1ebrDmyXA8TgS9goPauocc5LPjh6/)