- Overview
- Features
- Quick Start
- Usage
- Documentation
- Architecture
- Security
- Testing
- Contributing
- Support
- License
- Links
HyperAgent is an enterprise-grade, AI-powered platform that automates the complete smart contract development lifecycle. By leveraging Large Language Models (LLMs), Retrieval-Augmented Generation (RAG), and advanced blockchain integration, HyperAgent transforms natural language descriptions into production-ready, audited, and deployed smart contracts across multiple blockchain networks.
- ⚡ 10-50x Faster Development - Reduce smart contract development time from days to minutes
- 🛡️ Enterprise-Grade Security - Automated security auditing with industry-standard tools (Slither, Mythril, Echidna)
- 🌐 Multi-Chain Support - Deploy to Hyperion, Mantle, and other EVM-compatible networks
- 🤖 Intelligent Automation - AI-powered constructor argument generation and contract optimization
- 📊 Real-Time Monitoring - Live progress tracking and workflow status updates
- 🚀 Production-Ready - End-to-end pipeline from NLP to on-chain deployment
| Feature | Description |
|---|---|
| 🔍 AI-Powered Generation | Convert natural language to Solidity contracts using Gemini/GPT-4 |
| 🛡️ Automated Security Auditing | Comprehensive analysis with Slither, Mythril, and Echidna |
| 🧪 Automated Testing | Compile contracts and generate unit tests automatically |
| 🚀 On-Chain Deployment | Deploy to Hyperion and Mantle networks via Alith SDK |
| 📚 RAG-Enhanced Generation | Template retrieval for improved code quality |
| ⚡ Parallel Batch Deployment | Deploy multiple contracts simultaneously (10-50x faster with PEF) |
| 🎯 MetisVM Optimization | Generate contracts optimized for MetisVM with floating-point support |
| 💾 EigenDA Integration | Cost-efficient data availability storage |
| 📊 Real-Time Progress Tracking | Monitor workflow progress with live updates |
| 🔧 Constructor Argument Generation | Automatically extract and generate constructor values |
- Hyperion Testnet - Full support with PEF batch deployment
- Mantle Testnet - Full support with EigenDA integration
- Additional Networks - EVM-compatible networks via Web3
| Software | Version | Installation |
|---|---|---|
| Python | 3.10+ | Windows • macOS • Linux |
| PostgreSQL | 15+ | Download • Supabase (Cloud) |
| Redis | 7+ | Download • Redis Cloud |
| Git | Latest | Download |
| Software | Purpose | Installation |
|---|---|---|
| Node.js | Contract testing (Hardhat/Foundry) | Download |
| Docker | Containerized development | Docker Desktop |
| GNU Make | Build automation | Download |
| VS Code | Recommended IDE | Download |
- Google Gemini API Key (Required)
- Get from: Google AI Studio
- OpenAI API Key (Optional - fallback provider)
- Get from: OpenAI Platform
git clone https://github.com/JustineDevs/HyperAgent.git
cd HyperAgent# Create virtual environment
python -m venv venv
# Activate (Windows Git Bash)
source venv/Scripts/activate
# Activate (Windows Command Prompt)
venv\Scripts\activate
# Activate (macOS/Linux)
source venv/bin/activatepip install -r requirements.txt# Copy example environment file
cp env.example .env
# Edit .env with your API keys and configuration
# Required: GEMINI_API_KEY
# Optional: OPENAI_API_KEY, DATABASE_URL, REDIS_URL# Run database migrations
alembic upgrade head# Development mode (with auto-reload)
uvicorn hyperagent.api.main:app --reload --host 0.0.0.0 --port 8000
# Production mode
uvicorn hyperagent.api.main:app --host 0.0.0.0 --port 8000# Check system health via CLI
hyperagent system health
# Or via API
curl http://localhost:8000/api/v1/health/
# Expected response: {"status": "healthy", ...}📖 Need more help? See the Contributing Guide for detailed setup instructions.
# Create a workflow with constructor arguments
hyperagent workflow create \
-d "Create an ERC20 token with name 'HYPERAGENT', symbol 'HYPE', and initial supply of 10000" \
--network hyperion_testnet \
--type ERC20 \
--watch
# Monitor workflow progress
hyperagent workflow status --workflow-id <workflow-id> --watch
# View generated contract
hyperagent contract view <contract-id># Launch interactive CLI
hyperagent workflow create --interactive# Generate contract optimized for MetisVM
hyperagent workflow create \
--description "Create a financial derivative contract with floating-point pricing" \
--network hyperion_testnet \
--optimize-metisvm \
--enable-fp# Deploy multiple contracts in parallel (10-50x faster)
hyperagent deployment batch \
--contracts-file examples/batch_deployment_example.json \
--network hyperion_testnet \
--use-pef \
--max-parallel 10# Export workflow to JSON
hyperagent workflow export --workflow-id <id> -o workflow.json
# Search contract templates
hyperagent template search -q "ERC20"import httpx
# Create workflow
response = httpx.post(
"http://localhost:8000/api/v1/workflows/generate",
json={
"nlp_input": "Create an ERC20 token with 1 million supply",
"network": "hyperion_testnet",
"contract_type": "ERC20"
}
)
workflow = response.json()
workflow_id = workflow["workflow_id"]
# Monitor progress
status = httpx.get(
f"http://localhost:8000/api/v1/workflows/{workflow_id}"
).json()
print(f"Status: {status['status']}, Progress: {status['progress_percentage']}%")📚 More Examples: See the Usage section above for additional use cases.
- Quick Start Guide - Get up and running in minutes
- Configuration Reference - Complete configuration options
- Deployment Guide - Production deployment instructions
- Networks Guide - Supported networks and features
- API Reference - Complete REST API documentation
- Troubleshooting Guide - Common issues and solutions
- Contributing Guidelines - How to contribute and development workflow
- Code of Conduct - Community standards and expectations
- Security Policy - Security guidelines and vulnerability reporting
- Changelog - Version history and release notes
- Branch Workflow - Git branching strategy and workflow
HyperAgent follows a Service-Oriented Architecture (SOA) with event-driven design principles:
- Agent-to-Agent (A2A) Protocol - Decoupled agent communication via event bus
- Event-Driven Architecture - Redis Streams for event persistence and real-time updates
- Service Orchestration - Sequential and parallel service execution patterns
- RAG System - Template retrieval and similarity matching for enhanced generation
hyperagent/
├── api/ # FastAPI REST endpoints and WebSocket support
├── agents/ # Agent implementations (Generation, Audit, Testing, Deployment)
├── architecture/ # SOA, A2A patterns and orchestration
├── blockchain/ # Alith SDK, EigenDA, Web3 integration
├── core/ # Core services and configuration
├── events/ # Event bus and event types
├── llm/ # LLM providers (Gemini, OpenAI)
├── rag/ # RAG system for template retrieval
├── security/ # Security audit tools (Slither, Mythril, Echidna)
└── cli/ # Command-line interface
- Backend: Python 3.10+, FastAPI, SQLAlchemy, Alembic
- Database: PostgreSQL 15+ with pgvector extension
- Cache/Events: Redis 7+ with Streams
- Blockchain: Web3.py, Alith SDK, EigenDA
- LLM: Google Gemini, OpenAI GPT-4
- Security: Slither, Mythril, Echidna
📖 Detailed Architecture: See the Architecture section above for system design overview. For comprehensive architecture documentation, refer to the development branch.
HyperAgent implements multiple layers of security:
- ✅ Automated Security Auditing - Multi-tool analysis (Slither, Mythril, Echidna)
- ✅ Constructor Argument Validation - Type-safe argument generation and validation
- ✅ Network Feature Detection - Graceful fallbacks for unsupported features
- ✅ Secret Management - Secure API key and private key handling
- ✅ Input Validation - Comprehensive input sanitization and validation
- Use environment variables for sensitive data (API keys, private keys)
- Never commit
.envfiles to version control - Regularly update dependencies for security patches
- Review generated contracts before production deployment
- Follow Security Guidelines for reporting vulnerabilities
🔐 Security Issues: Report security vulnerabilities via SECURITY.md
# Run all tests
pytest
# Run unit tests
pytest tests/unit/ -v
# Run integration tests
pytest tests/integration/ -v
# Run with coverage
pytest --cov=hyperagent --cov-report=html
# Run specific test file
pytest tests/integration/test_end_to_end_workflow.py -vtests/
├── unit/ # Unit tests for individual components
├── integration/ # Integration tests for services
├── performance/ # Performance and SLA tests
└── load/ # Load testing scripts
📖 Testing Guide: See the Testing section above for testing commands. For comprehensive testing documentation, refer to the development branch.
We welcome contributions from the community! HyperAgent is an open-source project and we appreciate your help.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes following our development workflow (see CONTRIBUTING.md)
- Write tests for your changes
- Commit your changes (
git commit -m 'feat: Add amazing feature') - Push to your branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the standard development workflow (see CONTRIBUTING.md)
- Write tests before implementation (TDD approach)
- Follow code style guidelines (PEP 8, type hints, async/await)
- Update documentation for new features
- Ensure all tests pass before submitting PR
Please note we have a Code of Conduct. By participating, you are expected to uphold this code.
📖 Contributing Guide: See CONTRIBUTING.md for detailed contribution guidelines.
- 📖 Documentation - Check our documentation section
- 🐛 Bug Reports - Open an issue on GitHub Issues
- 💡 Feature Requests - Submit via GitHub Issues
- ❓ Questions - Check GitHub Issues or refer to the development branch for troubleshooting guides
- 🌐 Website: hyperionkit.xyz
- 🔗 Linktree: linktr.ee/Hyperionkit
- 📝 Blog: Medium
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions to this project are accepted under the same license.
- Website: https://hyperionkit.xyz/
- GitHub Repository: https://github.com/JustineDevs/HyperAgent
- Organization: https://github.com/HyperionKit/Hyperkit
- Linktree: https://linktr.ee/Hyperionkit
- Medium Blog: https://medium.com/@hyperionkit
Special thanks to:
- All contributors who have helped improve this project
- The Hyperion and Mantle communities for network support
- OpenZeppelin for contract standards and best practices
- The open-source community for tools and libraries
Built with ❤️ by the HyperAgent team
