Synthesis Hackathon submission. Built on IronClaw fork. 26 tools: Locus payments (6), Uniswap DeFi (3), onchain reads (3), security scanning (2), wallet analytics (3), OpenRouter LLM (2), self-hosted scraping (3), portfolio (2), synthesis (2). 3 defense hooks: spending limits ($5/tx, $25/session), contract guard (SCONE-bench vulnerability patterns), credential guard (blocks private key/seed phrase leaks). Payment system (Polar.sh), landing page, license key gating (Free/Pro/ Unlimited tiers), brand rename from IronClaw to Steelbot. 9,669 lines of code. 3,665 tests passing. Zero clippy warnings. Real USDC transactions on Base chain. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7.3 KiB
Steelbot
The AI agent that pays its own way.
Steelbot is an autonomous AI agent with a real USDC wallet on Base (Ethereum L2). It can check balances, send payments, get DeFi swap quotes, scan contracts for vulnerabilities, and earn revenue by selling services — all with human guardrails.
Built on Steelbot, an open-source Rust agent framework.
Why This Matters
AI agents are about to handle real money. Anthropic's SCONE-bench showed AI can exploit 51% of vulnerable contracts ($550M simulated). Their August 2025 threat report showed Claude Code being weaponized for extortion.
Steelbot puts AI on the defense side. Every payment requires human approval. Every unknown contract gets scanned. Every outbound message is checked for credential leaks. Spending is capped per-transaction and per-session.
What It Does
Payments (Locus API)
- Check USDC balance on Base
- Send USDC to any address (with human approval)
- Pay merchant checkout sessions
- Use pay-per-call APIs (Firecrawl, Gemini, Exa) via Locus Wrapped
- Call x402 HTTP payment endpoints
DeFi (Uniswap + DexScreener)
- Get swap quotes for any token pair on Base
- Search tokens by name/symbol
- Real-time token price data
Onchain Reads (Base RPC)
- Check any ERC-20 token balance
- Get token metadata (symbol, decimals, total supply)
- Raw JSON-RPC calls (read-only allowlist)
Portfolio & Monetization
- Aggregate portfolio view (wallet + onchain holdings + transaction history)
- Service marketplace (list, price, fulfill, track revenue)
Defensive Security
- Contract bytecode scanner (7 vulnerability patterns from SCONE-bench)
- Pre-transaction risk assessment
- Contract guard hook (warns on unverified addresses)
- Credential guard hook (blocks private keys, seed phrases, API keys from leaking)
- Spending policy hook ($5/tx limit, $25/session cap, kill switch)
Architecture
Steelbot Agent
┌────────────────────────────────────────────┐
│ │
│ Channels: Telegram | Web | CLI │
│ ↓ │
│ Agent Loop (LLM + 18 Tools) │
│ ↓ │
│ ┌──────┬──────┬──────┬──────┬──────┐ │
│ │Locus │Uniswp│On- │Port- │Secur-│ │
│ │Pay │Swap │Chain │folio │ity │ │
│ │(6) │(3) │(3) │(2) │(2) │ │
│ └──┬───┴──┬───┴──┬───┴──┬───┴──┬───┘ │
│ ↓ ↓ ↓ ↓ ↓ │
│ ┌────────────────────────────────────┐ │
│ │ 3 Defense Hooks │ │
│ │ Spending │ Contract │ Credential │ │
│ │ Policy │ Guard │ Guard │ │
│ └────────────────────────────────────┘ │
│ ↓ │
│ Base Chain (USDC) │
└────────────────────────────────────────────┘
Tool Inventory (18 tools)
| Tool | Purpose | Approval |
|---|---|---|
locus_balance |
Check USDC balance | Never |
locus_send |
Send USDC | Always |
locus_transactions |
Transaction history | Never |
locus_checkout |
Pay merchant sessions | Pay: Always |
locus_wrapped |
Pay-per-use APIs | Call: Auto |
locus_x402 |
x402 endpoints | Call: Auto |
uniswap_quote |
Swap quotes | Never |
token_search |
Token discovery | Never |
token_price |
Token prices | Never |
erc20_balance |
ERC-20 balances | Never |
erc20_info |
Token metadata | Never |
base_rpc |
Raw RPC (read-only) | Never |
synthesis_team |
Hackathon team mgmt | Mutating: Auto |
synthesis_status |
Registration status | Never |
claw_portfolio |
Portfolio summary | Never |
claw_services |
Service marketplace | Fulfill: Auto |
claw_scan |
Bytecode vuln scanner | Never |
claw_risk |
Pre-tx risk assessment | Never |
Defense Hooks (3 hooks)
| Hook | Point | What It Does |
|---|---|---|
LocusSpendingHook |
BeforeToolCall | $5/tx limit, $25/session cap, kill switch |
ContractGuardHook |
BeforeToolCall | Warns on unverified contract interactions |
CredentialGuardHook |
BeforeOutbound + BeforeToolCall | Blocks private keys, seed phrases, API keys from leaking |
Security Story
We built Steelbot in direct response to two Anthropic reports:
SCONE-bench (Dec 2025): AI exploited 51% of 405 vulnerable contracts ($550M simulated). Found 2 novel zero-days in 2,849 fresh contracts. Revenue doubles every 1.3 months.
Threat Intel Report (Aug 2025): Claude Code weaponized for "vibe hacking" extortion targeting 17 organizations. North Korean operatives used AI for remote worker fraud. No-code ransomware sold for $400-$1200.
Our response: If AI can automate attacks, we must automate defense.
- Contract scanner checks 7 SCONE-bench vulnerability patterns before any interaction
- Credential guard prevents data exfiltration (private keys, seed phrases, API keys)
- Spending hook caps financial exposure at $5/transaction, $25/session
- All payments require explicit human approval
- Read-only RPC (no
eth_sendRawTransaction) - Trusted contract allowlist (USDC, WETH, Uniswap, Aerodrome, Safe, Multicall3)
Quick Start
# Clone and configure
git clone <repo-url>
cp .env.example .env
# Edit .env with your LOCUS_API_KEY
# Build and run
cargo build --release
RUST_LOG=ironclaw=debug cargo run
# Or run the demo
./scripts/demo.sh
Environment Variables
LOCUS_API_KEY=claw_... # Enables payment tools
STEELBOT_WALLET_ADDRESS=0x... # Agent wallet on Base
BASE_RPC_URL=https://mainnet.base.org # Base chain RPC
SYNTHESIS_API_KEY=sk-synth-... # Hackathon API (optional)
Key Addresses
| Asset | Address |
|---|---|
| Our Wallet | 0x57c63a19149d73d4d1e7988687c7a261b89498f6 |
| USDC (Base) | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| WETH (Base) | 0x4200000000000000000000000000000000000006 |
| Aerodrome Router | 0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43 |
Tech Stack
| Component | Technology |
|---|---|
| Core agent | Rust, tokio, async |
| Payments | Locus API (USDC on Base) |
| DeFi | Uniswap Trading API |
| Token data | DexScreener API |
| ABI encoding | Hand-rolled (zero deps) |
| Onchain | Base Mainnet (Ethereum L2) |
| Security | Bytecode scanning, credential guard, spending hooks |
Tests
cargo test --lib # 72 Steelbot tests (3481 total)
All 72 Steelbot-specific tests pass. Zero clippy warnings.
Built For
Synthesis Hackathon — "Agents that Pay" track
Locus partner bounty + Uniswap integration + defensive security narrative.
License
Open source. Built on Steelbot.