AI-powered voice agent for autonomous USDC arbitrage and DeFi trading on Arc blockchain
"Talk to your AI co-pilot to trade, arbitrage, and earn with USDC on Arc - no complex commands, just conversation"
ArcPilot is an intelligent trading agent that combines:
- ๐ฃ๏ธ Voice AI (ElevenLabs) - Natural conversation, no complex UI
- ๐ค AI Decision Engine - ML-powered arbitrage detection
- โ๏ธ Arc Blockchain - USDC-native gas fees, instant settlement
- ๐ Smart Wallets (Thirdweb) - One-click onboarding, no seed phrases
- ๐ Cross-Chain (CCTP) - Move USDC seamlessly across chains
You: "Hey ArcPilot, find me safe arbitrage opportunities"
AI: "I found 3 opportunities. The safest one is 1.2% profit on USDC/ETH with 98% confidence"
You: "Execute it with $100"
AI: "Done! You earned $1.18 profit, gas cost was $0.03 USDC"
- Real-time scanning of DEX pools on Arc
- ML-based risk scoring (0-100)
- Profitability calculation after gas costs
- Historical learning from past trades
- All transactions settle on Arc testnet
- USDC used for gas fees (predictable dollar costs)
- Sub-second transaction finality
- Dollar-denominated everything
- Email/social login (no wallet needed)
- Gasless transactions with session keys
- Built on Thirdweb infrastructure
- Non-custodial security
- Detect opportunities across chains (Ethereum, Polygon, Base, Arc)
- Use Circle's CCTP for instant USDC transfers
- AI selects optimal chain for execution
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend (Next.js) โ
โ Thirdweb + ElevenLabs Voice โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโผโโโโโโโโโ
โ API Gateway โ
โ (Rust) โ
โโโโโฌโโโโโโโโโฌโโโโ
โ โ
โโโโโโโโโโโโโผโโ โโโโผโโโโโโโโโโโโโโโ
โ AI Engine โ โ Blockchain โ
โ (Rust) โ โ Executor โ
โ โ โ (Rust) โ
โโโโโโโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ
โ โ
โโโโโโผโโโโโโ โโโโโโผโโโโโโโโโโโ
โ Python โ โ Arc Testnet โ
โ ML Modelsโ โ + USDC โ
โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ
- Rust 1.75+ (
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh) - Node.js 20+ (
nvm install 20) - Python 3.11+ (
pyenv install 3.11) - Docker & Docker Compose
- Git
# Clone the repository
git clone https://github.com/FidelCoder/arcpilot.git
cd arcpilot
# Copy environment variables
cp .env.example .env
# Edit .env with your API keys
# Install dependencies
make install
# Start infrastructure (PostgreSQL, Redis)
docker-compose up -d
# Run database migrations
make migrate
# Start all services
make devThe application will be available at:
- Frontend: http://localhost:3000
- API Gateway: http://localhost:8080
- AI Engine: http://localhost:8081
- Visit Arc Testnet Faucet
- Connect your wallet
- Request testnet USDC
Create a .env file with the following:
# Arc Blockchain
ARC_RPC_URL=https://testnet-rpc.arcblockchain.com
ARC_CHAIN_ID=12345
USDC_CONTRACT_ADDRESS=0x...
# Thirdweb
THIRDWEB_CLIENT_ID=your_client_id
THIRDWEB_SECRET_KEY=your_secret_key
# ElevenLabs
ELEVENLABS_API_KEY=your_api_key
ELEVENLABS_VOICE_ID=your_voice_id
# Circle CCTP
CCTP_CONTRACT_ADDRESS=0x...
# Database
DATABASE_URL=postgresql://arcpilot:arcpilot@localhost:5432/arcpilot
# API
API_PORT=8080
JWT_SECRET=your_jwt_secretarcpilot/
โโโ ai-engine/ # Rust: AI decision engine
โโโ voice-agent/ # TypeScript: ElevenLabs integration
โโโ blockchain-executor/ # Rust: Arc blockchain operations
โโโ api-gateway/ # Rust: API layer
โโโ frontend/ # Next.js + Thirdweb
โโโ smart-contracts/ # Solidity contracts
โโโ python-ml/ # Python ML models
โโโ docs/ # Documentation
# AI Engine
cd ai-engine
cargo run
# Blockchain Executor
cd blockchain-executor
cargo run
# API Gateway
cd api-gateway
cargo run
# Frontend
cd frontend
npm run dev
# Python ML
cd python-ml
python -m uvicorn main:app --reload# Rust tests
cargo test --workspace
# Frontend tests
cd frontend && npm test
# Python tests
cd python-ml && pytest
# E2E tests
npm run test:e2eArcPilot supports natural language commands:
- Find opportunities: "Show me arbitrage opportunities" / "Find profitable trades"
- Execute trades: "Execute that trade" / "Trade $100 USDC on that opportunity"
- Check balance: "What's my balance?" / "How much USDC do I have?"
- View history: "Show my trade history" / "What did I earn today?"
- Risk settings: "Set risk level to conservative" / "Only show low-risk trades"
Use the web dashboard at http://localhost:3000 to:
- Monitor live arbitrage opportunities
- View AI risk scores and profit predictions
- Track portfolio performance
- Manage risk settings
- Review trade history
- โ Non-custodial: You control your funds via Thirdweb smart wallets
- โ No private keys: Email/social login with MPC key management
- โ Risk limits: Set daily loss limits and max trade sizes
- โ Circuit breakers: Auto-pause on unusual activity
- โ Open source: Auditable smart contracts
ArcPilot competes in:
-
On-chain Actions โ
- Autonomous AI agents interacting with DeFi protocols
- Arbitrage, swaps, liquidity rebalancing
-
Best use of Arc โ
- USDC-native gas fees
- Sub-second settlement
- Dollar-denominated costs
-
Best use of ElevenLabs โ
- Voice-first trading interface
- Conversational AI agent
- Voice-First DeFi - First voice-controlled trading agent on Arc
- AI Learning - Models improve from historical trade data
- Predictable Costs - USDC gas means no ETH volatility
- Zero Friction - Email login, no seed phrases, just conversation
- Cross-Chain Intelligence - AI picks optimal chain for each trade
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE file for details.
Built for the AI Agents on Arc with USDC hackathon powered by:
- Circle - Arc blockchain & USDC
- ElevenLabs - Voice AI
- Thirdweb - Smart wallet infrastructure
- lablab.ai - Hackathon platform
- ๐ Live Demo
- ๐บ Video Demo
- ๐ Pitch Deck
- ๐ฌ Discord
- ๐ฆ Twitter
Built with โค๏ธ by a solo hacker for the Arc + USDC Hackathon
Questions? Reach out: @FidelCoder