ChainClaw
Open Source · Self-Hosted · MIT License

Your AI Agent
for DeFi

Natural language commands. Transaction safety built in. 15 chains, 23 skills, zero trust required.

# Talk to your wallet in plain English
> Swap 0.5 ETH for USDC on Base
Simulating... 0.5 ETH → 1,497.32 USDC
Gas: 0.0004 ETH ($1.20)
Risk: LOW (8/100)
Guardrails: PASSED
Confirmed: 0x7a3f...8b2c

See It in Action

50 seconds. 23 skills. One agent.

Rendered with code — no screen recording

Built for Safety

Every transaction goes through simulation, risk analysis, and guardrails before broadcast. No exceptions.

Transaction Simulation

Every transaction runs through Tenderly fork simulation before broadcast. See exact balance changes, gas costs, and potential failures before you sign.

Risk Analysis

GoPlus Security API checks for honeypots, hidden mints, sell taxes, blacklist functions, and holder concentration. Auto-blocks dangerous contracts.

Spending Guardrails

Per-user limits on transaction size ($1K default), daily volume ($5K default), and cooldown periods. Your rules, enforced automatically.

MEV Protection

Ethereum mainnet transactions route through Flashbots Protect to prevent sandwich attacks and frontrunning. Zero MEV leakage.

Encrypted Wallets

AES-256-GCM encryption with scrypt key derivation. Fresh salt and IV per wallet. Keys decrypted on-demand, never cached in memory.

Contract Audit

On-the-fly contract audit before every interaction. LP lock verification, ownership analysis, and anti-rug simulation.

Position Locking

Concurrent position locks prevent double-execution and race conditions. Atomic operations across all channels and skills.

ZK Privacy Layer

Zero-knowledge proof shielded transactions. Deposit, hold, and withdraw tokens with full sender-receiver unlinkability across supported chains.

Full Audit Trail

Every transaction logged with complete lifecycle tracking. Status progression from pending through simulation, approval, broadcast, to confirmation.

23 Skills, One Agent

From simple balance checks to multi-step DeFi workflows. Every skill goes through the safety pipeline.

Swap

swap

Swap tokens via DEX aggregators. Finds best price across DEXes with slippage protection.

Requires: 1inch API key

Bridge

bridge

Bridge tokens across chains via Li.Fi. Finds optimal route balancing speed and cost.

Requires: 1inch API key

Lend & Borrow

lend

Supply, borrow, withdraw, and repay via Aave V3. Full position management across chains.

Requires: 1inch API key

Balance

balance

Check native and token balances across all connected chains in one command.

Portfolio

portfolio

Aggregated portfolio view with USD values across Ethereum, Base, Arbitrum, Optimism, and Solana.

History

history

View transaction history with text, CSV, and JSON export. Filter by date, skill, or status.

DCA

dca

Dollar-cost averaging with hourly, daily, or weekly schedules. Pause, resume, or cancel anytime.

Price Alerts

alert

Get notified when token prices cross your thresholds. Delivered via Telegram, Discord, or WebChat.

Workflow

workflow

Chain multiple skills into multi-step operations. Bridge, swap, and lend in a single command.

Risk Check

risk_check

Analyze any token or contract for honeypot risk, owner privileges, taxes, and holder concentration.

Backtest

backtest

Run backtests on trading strategies with historical data. Validate before you deploy capital.

Agent

agent

Start, stop, pause, and monitor autonomous trading agents. Full lifecycle management.

Marketplace

marketplace

Browse and install community skills. Discover new strategies, share your own, and extend your agent.

Yield Finder

yield_finder

Find the best yields across DeFi protocols. 4-pillar scoring (yield, safety, liquidity, sustainability) with scam filtering.

Limit Order

limit_order

Place limit buy/sell orders that execute automatically when price targets are hit. No CEX needed.

Whale Watch

whale_watch

Track whale wallets in real-time with flow analysis. Get alerts on large movements and accumulation signals.

Snipe

snipe

Auto-snipe new token launches with contract audit, anti-rug simulation, and auto-sell protection.

Airdrop Tracker

airdrop_tracker

Track airdrop eligibility across protocols. Never miss a claim window with automated notifications.

Rebalance

rebalance

Set target allocations and auto-rebalance your portfolio. Drift detection with configurable thresholds.

Trailing Stop

trailing_stop

Protect profits with tier-based trailing stops. Auto-ratcheting floor price that rises with the market.

Performance Review

performance

HOWL scoring system — win rate, PnL, fee drag, risk-adjusted returns. Full per-chain breakdown.

Trading Signals

trading_signals

TX-verified signal publish/subscribe with leaderboard. Follow top traders with on-chain proof.

Private Transfers

privacy

ZK-shielded deposits, withdrawals, and balance checks. Break the on-chain link between sender and receiver with zero-knowledge proofs.

Built for Everyone

From first-time wallet users to DAO treasuries. ChainClaw scales with your needs.

Maya

The Beginner

Minimal

Check balances, set price alerts, explore risk scores. No API keys needed beyond a channel token.

> /balance ETH: 0.42 ($1,260.00) USDC: 500.00 ($500.00) > Alert me when ETH drops below $2000 Price alert set for ETH < $2,000

Marcus

The DeFi Trader

Active DeFi

Import wallets, swap tokens, set up daily DCA, build multi-step workflows across chains.

> Swap 0.5 ETH for USDC on Base Simulating... 0.5 ETH -> 1,497.32 USDC Gas: 0.0004 ETH ($1.20) Guardrails: PASSED Broadcast: 0x7a3f...confirmed > Set up a weekly $50 ETH DCA DCA created: $50 -> ETH every Monday

Priya

The Portfolio Manager

Full NL

Multi-wallet oversight, lending positions, portfolio tracking across 15 chains with alerts.

> Show my portfolio Ethereum: $12,400 (3.2 ETH, 5K USDC) Base: $3,200 (1.1 ETH, 800 USDC) Arbitrum: $1,800 (ARB, USDC) +12 more chains... Total: $17,400 > Check my Aave position Supplied: 2.0 ETH ($6,000) Borrowed: 2,000 USDC Health: 2.4 (safe)

DAO Treasury

Multi-sig Operations

Power User

Multi-chain portfolio management, risk assessment for every contract interaction, audit-ready history.

> Risk check 0x1f9840... Contract: Uniswap V3 Router Honeypot: No Owner privileges: Minimal Overall risk: LOW (12/100) > Export history as CSV Exported 47 transactions to history.csv

12 Packages, One Pipeline

Clean monorepo architecture. Every package builds independently, tested in isolation and integration.

# Package dependency graph
core chains wallet pipeline skills agent gateway server
executor → simulator → risk engine → contract audit → guardrails → position lock → nonce manager → MEV protect → gas optimizer → broadcast → confirm
10
Safety checks per tx
12
Packages
23
Built-in skills
15
Chains supported
Ethereum (1)Base (8453)Arbitrum (42161)Optimism (10)Polygon (137)BNB Chain (56)Avalanche (43114)zkSync Era (324)Scroll (534352)Blast (81457)Gnosis (100)Linea (59144)Fantom (250)Mantle (5000)Solana (900)

Run It in 60 Seconds

Clone, configure, run. Self-hosted means your keys never leave your machine.

# Clone and build
git clone https://github.com/chainclaw-xyz/chainclaw
cd chainclaw
npm install
npx turbo build
# Configure
cp .env.example .env
# Edit .env with your keys
# Run
node apps/server/dist/index.js
# Or use Docker
docker compose up

Configuration Tiers

Start minimal and add capabilities as you need them. Every tier builds on the previous one.

Tier 1Minimal
Wallet password + channel token
Balance, portfolio, alerts, risk check, history
Tier 2Active DeFi
+ 1inch API key
Swap, bridge, lend, DCA execution
Tier 3Full NL
+ LLM API key
Natural language routing, workflows, memory
Tier 4Power User
+ Tenderly API key
Full pre-execution simulation