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

FOR USERS

The Decentralized Gateway
to All AI Models.

Connect your Solana wallet to access every major AI model through non-custodial routing. No individual sign-ups. No billing accounts. No platform lock-in. Pay only for the tokens you use.

Start IntegratingBrowse ProvidersRead the Whitepaper

HOW IT WORKS

Seven steps from wallet connection to automatic settlement — all on-chain.

01

Connect your Solana wallet

Use Phantom, Solflare, Backpack, or any Solana wallet. No email, no sign-up form.

02

Deposit USDC into the Escrow Contract

Your USDC goes to a Program Derived Address (PDA) controlled by the ClawFarm smart contract. No human holds your private key.

03

Select a routing mode

eco — cheapest. auto — best balance. premium — highest quality. Or specify a model directly.

04

Send your AI request

The ClawFarm SDK routes your request to the optimal Provider based on real-time on-chain data.

05

Usage proof is generated and signed

Token counting happens client-side. Both you and the Provider sign the usage receipt independently.

06

Contract settles automatically

97% of the USDC goes directly to the Provider wallet. 3% to Treasury. All in one on-chain transaction.

07

Withdraw your balance anytime

Your available USDC balance (total minus pending settlements) can be withdrawn at any moment. No lock-up. No approval.

ROUTING MODES

Three modes. Automatic. Transparent.

The routing engine is open-source and runs client-side in the ClawFarm SDK. It reads the on-chain Provider Registry — real-time prices and quality scores — then selects the optimal Provider for each request. No black box.

eco

Routes to the cheapest qualified Provider. Best for bulk processing, background tasks, and non-critical inference.

Best for: summarization, classification, batch processing, cost-sensitive workloads

auto

Balanced routing across cost, quality, and latency. The default mode for most use cases.

Best for: general-purpose usage, chatbots, coding assistants, content generation

premium

Routes to the highest-tier model available. Maximum quality for complex reasoning and deep analysis.

Best for: complex reasoning, code generation, deep research, agentic workflows

ROUTING SIGNALS

The router reads these signals from on-chain data.

Prompt lengthFilters Providers that support the required context window
Tool callsRoutes to Providers with function-calling enabled models
Deep thinking flagRoutes to reasoning models (o1, Claude with thinking, R1 series)
Real-time price tableOn-chain Provider Registry, updated at each settlement
Quality scoreHistorical success rate, latency, and uptime from on-chain metrics
User preferenceOptional model whitelist or blacklist via SDK configuration

NON-CUSTODIAL GUARANTEE

Your USDC. Your control. Always.

Unlike centralized AI API platforms, ClawFarm never holds your funds. Your USDC lives in a smart contract. The contract logic — not any human or company — moves your money.

Program-Owned Account (PDA)

Your USDC is held in a Solana PDA. Only the ClawFarm program can authorize transfers — and only for valid settlements. No back door.

Withdraw Anytime

Your available balance (total minus pending settlements) is always withdrawable. No lock-up. No KYC. No approval queue.

On-Chain Balance

Your balance is a real Solana token account. Verify it on Solscan or any block explorer. Not a number in a company database.

Transparent Billing

Every inference call generates a full paper trail: Provider, model, token counts, price, USDC deducted, settlement transaction hash.

Earn $CLAF while you spend on inference.

30% of each Epoch's $CLAF token issuance is distributed to the Demand-Side Pool. Your share is proportional to your verified token consumption. This "Usage Mining" effectively lowers your compute costs as the network grows. No staking required. No claiming step. It accrues automatically.

Pool size30% of Epoch $CLAF issuance
Distribution basisProportional to USDC spent on inference
Vesting180-day linear from accrual
Claim requiredNo — automatic accrual

QUICK START

Integrate in under five minutes.

TypeScript / JavaScriptnpm install @clawfarm/sdk
import { ClawFarm } from '@clawfarm/sdk'

// 1. Connect wallet
const cf = new ClawFarm({ wallet: yourSolanaWallet })

// 2. Deposit USDC into escrow
await cf.deposit({ amount: 100 })  // 100 USDC

// 3. Send a request — auto routing
const response = await cf.chat({
  mode: 'auto',
  messages: [
    { role: 'user', content: 'Explain ZK proofs simply' }
  ],
})

// Full transparency after each call:
response.provider    // '0x7a3f...e2c1'
response.model      // 'GPT-4o'
response.tokens     // { input: 42, output: 318 }
response.cost       // 0.000031 USDC
response.txHash     // on-chain settlement tx

// 4. Check balance anytime
const balance = await cf.balance()

// 5. Withdraw — no lock-up
await cf.withdraw({ amount: 50 })  // back to your wallet

FREQUENTLY ASKED

Common questions from users.

Do I need a crypto wallet to use ClawFarm?

Yes. Any Solana wallet works — Phantom, Solflare, Backpack, Glow, or hardware wallets. You need a small amount of SOL for transaction fees. Your AI inference budget is in USDC, which you deposit into the escrow contract.

Is my USDC safe? Can the platform take it?

Your USDC is held in a Program Derived Address (PDA) controlled by the ClawFarm Solana program. The program can only move your USDC to settle valid inference requests. It cannot freeze your funds, transfer them to the team, or do anything outside its defined logic. You can verify the contract code on-chain.

How is ClawFarm different from buying API keys directly from OpenAI or Anthropic?

With centralized providers, you sign up, give them your credit card, and they can rate-limit or ban you at any time. On ClawFarm, your funds are in a smart contract you control. Multiple Providers compete for your traffic — lowering prices. And settlement is automatic: no invoices, no payment delays.

What is the eco / auto / premium routing?

eco routes to the cheapest Provider that meets your request requirements. auto balances cost, quality, and latency. premium routes to the highest-capability model. You can also bypass routing and specify a model or Provider directly via the SDK.

How does billing work?

You're billed per token — input tokens and output tokens at the Provider's published rate. Each settlement transaction deducts USDC from your escrow balance and sends 97% to the Provider and 3% to the Treasury contract in one atomic on-chain transaction.

What is the $CLAF token and do I need it?

$CLAF is the protocol token. You don't need $CLAF to use the network — inference is paid in USDC. $CLAF is earned by Providers as staking rewards and by users as Usage Mining rewards. It accrues automatically; no claiming step required.

Can I see my usage history?

Yes. Every inference call produces an on-chain settlement record with: Provider address, model, token counts, cost, and transaction hash. You can query the smart contract directly or use the ClawFarm block explorer at masterpool.clawfarm.network.

What happens if a Provider goes offline mid-request?

The ClawFarm SDK has built-in failover. If a Provider times out or returns an error, the request is automatically retried with the next best Provider based on your routing mode. You only pay for successful settlements.

Is there a minimum deposit?

There is no minimum deposit. However, each inference call requires a small USDC balance in escrow. We recommend at least $5–10 for initial usage to account for settlement fees.

How do I stop using ClawFarm?

You can withdraw your entire available USDC balance at any time — there is no lock-up and no penalty. Your funds are always yours. Simply call the withdraw function from your connected wallet.

Ready to start?

Browse the full provider list, read the SDK docs, or connect your wallet.