LogoLogo
  • JuliaOS Documentation Hub
  • About JuliaOS
    • Mission & Vision
    • Features and Capabilities
    • Roadmap
    • Tokenomics
  • Ecosystem
    • Overview
  • Partners
    • Heurist
    • Fetch.ai
    • Soulgraph
    • cheqd.io
    • Aethir
    • Anyone
    • TensorLabs
    • Hashpower
  • Technology
    • Overview
    • Open Source
      • Modular Framework
      • CLI Mode
    • AI Platform
      • Dashboard
      • Agent Management
      • Swarm Management
      • Marketplace
      • Mining
    • LLM
    • Launchpad
    • Robotics & IOT
      • SwarmIOT
      • Modular AI with Robotics
        • J3OS MiniLLM
          • 🔧 Use Cases
  • Technical
    • Overview
    • Developer Hub
      • Getting Started
        • Installation Guide
          • Github Guide
        • Basic Concepts
        • Quick Start Guide
          • Handling secrets
        • Examples and Use
          • Example: Using the Trading Functionality
          • Example: Using the Benchmarking Feature
          • Example: Multi-Agent Swarm Coordination
          • Example: Using the Python Wrapper for LLM Integration
          • Example: Using Cross-Chain Bridges
          • Example: Creating and Running a Swarm Optimization
          • Page 4
      • Best Practices
        • Performance Tuning
        • Agent/Swarm Design Patterns
        • Best Practices & Patterns
        • Security Best Practices
      • CLI
        • JuliaOS CLI Interface
        • Agent Management (CLI)
        • CLI Configuration
        • Cross-Chain Hub (CLI)
        • Swarm Management (CLI)
        • CLI Troubleshooting
        • Wallet Management (CLI)
      • Framework SDK
        • Modules
          • Bridge
          • Agents Module
          • Dex
          • Swarms Module
          • Wallet
        • Python Wrapper
          • LangChain Integration
          • Python Wrapper
      • Contributing Guide
      • Extending JuliaOS
      • Development Setup & Conventions
      • Testing & Debugging
      • Troubleshooting
    • Architecture
      • High Level JuliaOS
      • CLI <-> Backend Communication
      • Data Storage Architecture
      • Framework Internals
      • Architecture Deep Dive
        • Architectual Notes
    • Concepts
      • Core Features & Concepts
      • Agents
        • Agent Skills & Specializations
      • Swarms
      • Neural Networks
      • Blockchains & Chains
      • Bridges (Cross-Chain)
      • Integrations
        • Google ADK
        • LLMs
        • Price Feed
        • DEX Integration
      • Storage
      • Trading Capabilities
      • Use Cases
      • Wallets
      • Portfolio Optimization
  • Research
    • JuliaOS Research
  • API Documentation
    • API Reference
      • API Reference: Julia Backend Commands
      • API Reference: CLI Commands
      • API Reference: Node.js API
      • API Reference: Python API
      • API Reference
  • Community
    • Community & Support
  • FAQ
    • General
    • Technical
    • Community
Powered by GitBook
On this page
  • Creating a Swarm via CLI
  • Running Optimization
  • Supported Swarm Algorithms
  • Example: Creating and Running a Swarm
  • Tips
Export as PDF
  1. Technical
  2. Developer Hub
  3. CLI

Swarm Management (CLI)

JuliaOS supports advanced swarm intelligence for optimization and distributed problem-solving. The CLI provides an interactive menu for creating, configuring, and running swarms.

Creating a Swarm via CLI

Start the interactive CLI:

node scripts/interactive.cjs

Navigate the menu:

  • Select "🧬 Swarm Intelligence" -> "Create Swarm"

  • Enter a name for your swarm (e.g., "OptimizationSwarm")

  • Select an algorithm (e.g., "DE" for Differential Evolution)

  • Enter swarm configuration as JSON (can use {} for defaults)

Running Optimization

  • After creating a swarm, select it from the menu

  • Choose "Run Optimization"

  • Define your objective function as prompted

Supported Swarm Algorithms

  • Differential Evolution (DE)

  • Particle Swarm Optimization (PSO)

  • Grey Wolf Optimizer (GWO)

  • Ant Colony Optimization (ACO)

  • Genetic Algorithm (GA)

  • Whale Optimization Algorithm (WOA)

  • Hybrid Algorithms (e.g., DEPSO)

Example: Creating and Running a Swarm

node scripts/interactive.cjs
# Follow the prompts to create a swarm and run optimization

Tips

  • Swarms can be used for portfolio optimization, parameter tuning, and distributed analysis.

  • You can add agents to swarms and monitor their collective performance.

For more details on swarm concepts and advanced usage, see the Agents and Swarms documentation.

PreviousCross-Chain Hub (CLI)NextCLI Troubleshooting