Clawrence

Prize winner, GOAT Network Open Claw

what it is

AI agents on Celo need USDC to pay for x402 services such as data feeds, compute and API calls. Today each agent depends on a human to top up its wallet by hand, which limits how autonomous an agent can be.

Clawrence is a credit agent for that gap. It talks in natural language, checks a borrower's on-chain reputation, decides how much they can borrow and executes the transactions itself. It is written as a character, a private banker who respects only track record, rather than as a lending dashboard.

A borrower deposits WETH as collateral, borrows USDC, spends it on x402 services and repays. Each repaid loan raises a credit score from 0 to 100, and a higher score unlocks a better loan-to-value tier.

The score is built to resist gaming. Borrowing a tiny share of the limit earns almost nothing, a loan must be held for at least an hour, score-eligible loans have a 6 hour cooldown, and the score decays after 7 and 30 days of inactivity. The top tier needs at least 5 loans and 30 days of history.

how it's made

Two Solidity contracts run on Celo Sepolia. ClawrenceVault is the lending vault: WETH collateral, USDC lending, borrow, repay, withdraw and liquidation of undercollateralised positions. CreditScore is the weighted scoring engine that sets each wallet's LTV tier.

Deposits go through the HTTP 402 payment protocol. Users do not call the vault directly. They pay WETH to the skill server over x402 and the server deposits on their behalf with depositFor. Borrows are executed server-side by the agent, repayments are prepared for the user to sign in MetaMask, and withdrawals run after an EIP-712 signature check.

The agent's natural language interface runs on GPT-4o. A skill server built with thirdweb x402 also exposes paywalled endpoints at $0.10 USDC per call for credit score, borrow capacity, market rate and position data.

Clawrence is registered on the ERC-8004 Identity Registry, and every credit score update is written to the ERC-8004 Reputation Registry, so other protocols on Celo can query a wallet's credit history.

The ETH/USD price comes from a Bybit WebSocket stream. The server pushes it on-chain every 5 minutes, and a circuit breaker rejects prices older than an hour.