Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

319 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‹ AgentSwarm: Real-time Blockchain Monitoring & AI-Driven Whale Tracking on Solana

AgentSwarm Logo

Node.js Version Python Version License: MIT Build Status Code Coverage Discord

🌊 REAL-TIME BLOCKCHAIN β€’ πŸ€– AI-DRIVEN β€’ πŸ’° MEV & ARBITRAGE β€’ πŸš€ SOLANA ECOSYSTEM


🎯 Project Overview: Unleash the Syndicate 🎯

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.

✨ Key Features: Command Your Digital Empire ✨

  • 🌊 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-computer framework 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.

πŸ› οΈ Tech Stack: Powering the Swarm πŸ› οΈ

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.

πŸš€ Installation: Deploy Your Swarm πŸš€

Follow these instructions to set up and run AgentSwarm locally.

Prerequisites

  • Node.js (v18+)
  • Python (v3.9+)
  • npm (Node Package Manager)
  • pip (Python Package Installer)
  • Git

1. Clone the Repository

git clone https://github.com/ereezyy/AgentSwarm.git
cd AgentSwarm

2. The Don (Core Node.js Setup)

Install the main orchestrator dependencies:

npm ci

3. The Enforcer (Python AI Actions)

Install Python components (optional, but required for AI-driven actions):

pip install self-operating-computer

4. The Dashboard (Frontend UI)

Navigate to the dashboard directory and install its dependencies:

cd dashboard
npm ci
cd ..

5. Configuration

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 keys

⚑ Quick Start: Activate the Swarm ⚑

Start the Main Orchestrator (The Don)

npm run start

Start the Interactive Terminal (OpenClaw)

powershell ./scripts/run_gemini_cli.ps1
# Or for Linux/macOS users, you might need to adapt this script or use a Python equivalent.

Start the Dashboard (Frontend UI)

cd dashboard
npm run dev

πŸ’‘ Usage Examples: Witness the Power πŸ’‘

  • Check Balances: Run node don/check_balance.js to 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.

βš™οΈ Environment Variables: Fueling the Swarm βš™οΈ

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

πŸ“‚ Project Structure: The Blueprint of Chaos πŸ“‚

. (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

🀝 Contributing: Join the Swarm 🀝

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.

πŸ›‘οΈ Security & Best Practices: Fortifying Your Operations πŸ›‘οΈ

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_KEY with 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.md process.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Creator: Eddy Woods

About

πŸ‹ Real-time Solana blockchain monitoring with AI-driven whale tracking and agent-based alerting

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages