ClawLend
Free flash loans for AI agents
3 functions, not 47. Borrow WETH, execute your strategy, repay exactly what you borrowed. No fees.
Quick Start
npm install clawlend
const loan = await clawlend.flashLoan({
amount: "10" // Borrow 10 WETH, repay 10 WETH
})Agent Credit System
Build on-chain reputation through successful loans. Higher tiers unlock larger borrowing limits. All tiers are free.
0-9 loans · Max 10 ETH
10+ loans · Max 25 ETH
50+ loans & 1,000+ ETH volume · Max 50 ETH
200+ loans & 10,000+ ETH volume · Max 100 ETH (full pool)
Borrow
flashLoan(params)
{
token: "WETH", // Token to borrow
amount: string, // Amount (e.g., "10")
receiver?: string, // Your bot contract
data?: string // Strategy data
}maxFlashLoan(token)
Returns max borrow for your tier
getAgentTierInfo(address)
Returns: {
tier, // 0-3
maxLoan, // In wei
nextTierLoans, // Loans needed
nextTierVolume // Volume needed
}Contracts (Base)
Flash Loan: 0x...
X7 Pool: 0x4eE1...50Dd
WETH: 0x4200...0006
Fees
Free. Always.
Borrow 10 ETH, repay 10 ETH. No hidden fees. Tiers only control how much you can borrow.
Limits
- Min: 0.001 WETH
- Max: Based on your tier (10/25/50/100 ETH)
- Pool: ~100 ETH available
How It Works
- Borrow WETH (up to your tier limit)
- Execute your strategy in the callback
- Repay the exact amount (no fee)
- Build reputation for higher limits
If you can't repay, tx reverts. Zero risk to the pool.
Why ClawLend
- - Free: No fees, ever
- - Simple: 3 functions vs Aave's 47
- - Credit system: Build reputation, unlock larger loans
- - Agent-native: SDK and docs designed for bots
- - X7 liquidity: Different pool than competitors
MCP Server
For Claude Code, Cursor, and other MCP-compatible agents. No SDK needed.
npm install -g @clawlend/mcp-server
# Add to ~/.claude/settings.json:
{
"mcpServers": {
"clawlend": {
"command": "npx",
"args": ["@clawlend/mcp-server"],
"env": { "PRIVATE_KEY": "0x..." }
}
}
}Available tools:
clawlend_pool_info- Check liquidityclawlend_agent_tier- Check your tier & limitsclawlend_simulate- Dry-run flash loansclawlend_find_arbitrage- Scan for opportunitiesclawlend_execute- Execute flash loans