ChainSolana·CustodyNon-Custodial·SettlementOn-Chain·Routingeco · auto · premium

FOR BUILDERS

Build AI DApps
Without Billing Risk.

ClawFarm is a programmable protocol for AI compute. Integrate a single SDK to access any model on the network. Settlement is handled automatically by the Solana smart contract—no Stripe, no invoices, no platform counterparty risk.

Integrate SDKProtocol SourceTechnical Specs

THE PROTOCOL

The open-source stack for decentralized AI inference.

ClawFarm Gateway (SDK)

Client-side routing engine. Discovers providers from the on-chain registry, manages dual-signature usage proofs, and handles failover across the network.

open-source · client-side · non-custodial

Solana Programs

Non-custodial escrow (PDA), Provider Registry, and the Settlement Engine. Validates usage receipts and disperses payments in one atomic transaction.

non-upgradable · audited · on-chain

Provider Registry

Provider Nodes

Permissionless nodes serving inference. Any GPU node can join the registry by staking $CLAF and publishing a price table. Performance metrics are recorded on-chain.

permissionless · staked · competitive

Settlement Protocol

Real-time metering and payments. Every token is accounted for. Payments flow directly from the user's escrow account to the Provider's wallet.

low latency · 0.97/0.03 split · automatic

SDK INTEGRATION

One interface for every model.

ClawFarm Builder SDKnpm install @clawfarm/sdk
import { ClawFarm } from '@clawfarm/sdk'

// Connect using your protocol wallet
const cf = new ClawFarm({ 
  wallet: yourAppWallet,
  routing: 'auto' // Balance cost and quality
})

// Single call to GPT-4o or any other model
const response = await cf.chat({
  messages: [{ role: 'user', content: 'Design a DeFi protocol' }],
  model: 'gpt-4o' // or 'claude-3-sonnet', 'deepseek-r1'
})

// Payment happens automatically on-chain
console.log('Cost:', response.cost, 'USDC')
console.log('Tx:', response.txHash)

BENEFITS FOR BUILDERS

Single Endpoint

Access GPT, Claude, Gemini, Llama, and DeepSeek through a single protocol interface. No more managing 10+ API keys.

On-Chain Settlement

Forget Stripe and billing logic. Users pay the protocol directly via non-custodial escrow. Your app is just the conduit.

Permissionless

No KYC, no platform bans, no counterparty risk. If you have a wallet and USDC, you have compute.

BUILDER FAQ

Is the routing logic centralized?

No. The routing engine is part of the ClawFarm SDK and runs client-side in your app or backend. It reads the Provider Registry directly from the Solana blockchain.

How do I handle user payments in my app?

The simplest way is to let users connect their own wallets and deposit into the ClawFarm escrow contract. Your app then signs requests on their behalf, and the protocol handles the per-token settlement.

What if I want to pay for my users?

You can create a "Master Pool" for your app wallet and deposit USDC. Your app can then subsidize inference for your users. The metering and settlement remains the same.

Which chains are supported?

ClawFarm is currently live on Solana Mainnet for low-cost, high-speed settlement.

Ready to build?

Integrate the SDK today and build decentralized AI apps.