Smart contract automation agents powered by Permits protocol on Base network.
The Weather Agent (deployed at 0xd09bb071c4cc9bdf6b104f65df5bccf05add090c
) executes transactions based on weather conditions. It leverages:
- Tomorrow.io API for real-time weather data
- Claude 3.5 for natural language processing
- Viem for blockchain interactions
- Natural language weather condition parsing
- Support for multiple cities worldwide
- Flexible condition matching (temperature, precipitation, etc.)
- Gas-optimized execution
- "Execute when it's raining in London"
- "Trade when temperature exceeds 30°C in Bangkok"
- "Trigger if wind speed is above 20mph in NewYork"
The agent:
- Extracts city name from prompt using Claude
- Fetches current weather from Tomorrow.io
- Evaluates conditions against weather data
- Executes permitted transactions when conditions match
- Clone repository
- Install dependencies:
npm install
- Configure environment variables:
OPENROUTER_API_KEY= WEATHER_API_KEY= AGENT_PK=
- Deploy using Google Cloud Functions
- X Agent: Transaction automation based on tweet patterns
- Price Agent: DeFi automation based on token prices
- Time Agent: Scheduled transaction execution
PRs welcome! Please check issue tracker for current tasks.
- All agent contracts are open source
- Extensive test coverage required
- Regular security audits planned
AGPL-3.0-or-later