AgentSwarm is an autonomous, recursive gangster swarmβdubbed "The Syndicate"βmeticulously engineered for real-time blockchain monitoring and AI-driven whale tracking on the Solana network. This sophisticated system is designed to identify and capitalize on profitable opportunities, such as Maximal Extractable Value (MEV) and arbitrage, across decentralized exchanges. At its core, AgentSwarm orchestrates a network of specialized sub-agents, known as "The Crew," under the command of a central intelligence, "The Don," to execute automated actions with unparalleled precision and speed.
Leveraging a powerful combination of Node.js for orchestration, Python for AI-driven actions, and cutting-edge LLM APIs (Google Gemini, OpenAI, Anthropic, Groq), AgentSwarm provides a comprehensive solution for navigating the complex and fast-paced world of blockchain finance. With a focus on real-time data analysis, strategic decision-making, and automated execution, AgentSwarm empowers users to gain a significant edge in the Solana ecosystem.
- π Real-time Blockchain Monitoring: Continuously track Solana blockchain activity to identify significant events and opportunities as they unfold.
- π³ AI-Driven Whale Tracking: Utilize advanced AI models to detect and analyze large-scale transactions, providing insights into market movements and potential whale activity.
- π° Automated MEV & Arbitrage: Execute sophisticated MEV and arbitrage strategies across decentralized exchanges with sub-millisecond precision, maximizing profit potential.
- π§ Multi-LLM Integration: Seamlessly integrate with leading LLM providers (Google Gemini, OpenAI, Anthropic, Groq) for advanced natural language processing, strategic decision-making, and autonomous agent control.
- π Python-Powered AI Actions: "The Enforcer" (Python sub-agents) leverage the
self-operating-computerframework for intelligent, autonomous execution of complex tasks. - π Next.js Frontend Dashboard: A sleek, intuitive dashboard built with Next.js and React provides real-time visualization of swarm activity, performance metrics, and actionable insights.
- π Solana Ecosystem Integration: Deep integration with Solana Web3.js, SPL Token, and Jito MEV Bundles ensures native and efficient interaction with the Solana blockchain.
- Modular & Scalable Architecture: Designed for flexibility, allowing for easy expansion and adaptation to new strategies and market conditions.
AgentSwarm is built upon a robust and modern technology stack, ensuring high performance, scalability, and reliability.
| Component | Technology | Description |
|---|---|---|
| Orchestration | Node.js (The Don) | The core orchestrator managing the swarm and coordinating sub-agents. |
| AI/LLM | Google Gemini API, OpenAI, Anthropic, Groq | Provides advanced AI capabilities for analysis, decision-making, and natural language processing. |
| Blockchain | Solana Web3.js, SPL Token, Jito MEV Bundles | Enables real-time interaction with the Solana blockchain and its protocols. |
| AI Actions | Python (The Enforcer / self-operating-computer) |
Executes AI-driven tasks and automated actions. |
| Frontend | Next.js (React) | Powers the interactive and real-time dashboard for monitoring swarm activity. |
| Package Mgmt. | npm, pip | Manages project dependencies for both Node.js and Python components. |
| Testing | Jest, Pytest (Planned) | Ensures code quality and reliability through comprehensive testing. |
| Linting | ESLint, Prettier | Maintains consistent code style and identifies potential issues. |
Follow these instructions to set up and run AgentSwarm locally.
- Node.js (v18+)
- Python (v3.9+)
- npm (Node Package Manager)
- pip (Python Package Installer)
- Git
git clone https://github.com/ereezyy/AgentSwarm.git
cd AgentSwarmInstall the main orchestrator dependencies:
npm ciInstall Python components (optional, but required for AI-driven actions):
pip install self-operating-computerNavigate to the dashboard directory and install its dependencies:
cd dashboard
npm ci
cd ..Rename .env.example to .env and populate it with your API keys and other necessary configurations. Refer to the .env.example file for required variables.
cp .env.example .env
# Open .env and add your API keysnpm run startpowershell ./scripts/run_gemini_cli.ps1
# Or for Linux/macOS users, you might need to adapt this script or use a Python equivalent.cd dashboard
npm run dev- Check Balances: Run
node don/check_balance.jsto view current balances and Solana metrics. - Automated Arbitrage: Agent scripts automatically identify tokens and compute arbitrage or MEV extraction using Jito tips and Jupiter swaps.
- Custom Strategies: Develop and integrate your own custom AI strategies and sub-agents to expand the swarm's capabilities.
To unlock the full potential of AgentSwarm, especially its AI and blockchain interaction capabilities, certain environment variables must be configured. Create a .env file in your project root or set these variables in your shell environment.
| Variable Name | Description | Example Value |
|---|---|---|
SOLANA_RPC_URL |
URL for the Solana RPC endpoint. | https://api.mainnet-beta.solana.com |
SOLANA_WALLET_PRIVATE_KEY |
Private key of your Solana wallet for transactions. | your_solana_private_key_here |
GEMINI_API_KEY |
Your API key for Google Gemini. | your_gemini_api_key_here |
OPENAI_API_KEY |
Your API key for OpenAI. | your_openai_api_key_here |
ANTHROPIC_API_KEY |
Your API key for Anthropic. | your_anthropic_api_key_here |
GROQ_API_KEY |
Your API key for Groq. | your_groq_api_key_here |
JITO_RPC_URL |
URL for the Jito RPC endpoint for MEV bundles. | https://jito.rpc.ag/ |
JUPITER_API_URL |
URL for the Jupiter API for swaps. | https://quote-api.jup.ag/v6/quote |
. (repository root)
βββ assets/ # Project assets (logos, banners, etc.)
βββ dashboard/ # Next.js frontend application
β βββ public/ # Static assets for the dashboard
β βββ src/ # Dashboard source code
β βββ package.json # Dashboard dependencies
βββ don/ # Node.js orchestrator (The Don)
β βββ check_balance.js # Example script to check Solana balances
β βββ ... # Other orchestration scripts
βββ scripts/ # Utility scripts
β βββ run_gemini_cli.ps1 # PowerShell script for Gemini CLI (Windows)
β βββ ... # Other utility scripts
βββ .env.example # Example environment variables file
βββ .gitignore # Git ignore rules
βββ README.md # This documentation file
βββ package.json # Root Node.js dependencies
βββ requirements.txt # Python dependencies
βββ ... # Other project files
We welcome contributions from developers, researchers, and blockchain enthusiasts who wish to enhance AgentSwarm. Please refer to our CONTRIBUTING.md file for detailed guidelines on how to get involved, including our code standards, branching strategy, and pull request process.
Operating in the blockchain space demands rigorous security. Adhere to these best practices:
- Secure API Keys: Never hardcode API keys or private keys directly in your code. Use environment variables and secure secret management.
- Wallet Security: Protect your
SOLANA_WALLET_PRIVATE_KEYwith utmost care. Consider using hardware wallets or secure key management services for production deployments. - Code Audits: Regularly audit your code for vulnerabilities, especially when dealing with financial transactions.
- Dependency Management: Keep all project dependencies updated to their latest secure versions.
- Responsible Disclosure: If you discover a security vulnerability, please report it responsibly through our designated
SECURITY.mdprocess.
This project is licensed under the MIT License - see the LICENSE file for details.
Creator: Eddy Woods
