Build Autonomous Agentic Swarms in Java

SwarmAI is an open-source multi-agent framework for building autonomous agentic swarms on the JVM: agents that plan, delegate, review and improve their own work. 8 process types, YAML DSL, built-in governance, budget tracking, and 46 tools. Powered by Spring AI & Spring Boot.

Star on GitHubMaven CentralApache 2.0Java 21
1,900+Tests Passing
9Modules
46Built-in Tools
Java 21Spring Boot 3.4

Add to Your Project in 30 Seconds

Available on Maven Central. Import the BOM and let it manage versions for all SwarmAI modules.

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>ai.intelliswarm</groupId>
            <artifactId>swarmai-bom</artifactId>
            <version>1.0.28</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>ai.intelliswarm</groupId>
        <artifactId>swarmai-core</artifactId>
    </dependency>
    <dependency>
        <groupId>ai.intelliswarm</groupId>
        <artifactId>swarmai-tools</artifactId>
    </dependency>
    <dependency>
        <groupId>ai.intelliswarm</groupId>
        <artifactId>swarmai-dsl</artifactId>
    </dependency>
</dependencies>

info Enterprise + Studio modules are licensed under BSL 1.1 and distributed via GitHub Packages. View all modules on Maven Central

7 Process Types

From simple sequential pipelines to distributed swarms with dynamic skill generation

Sequential

Tasks run in dependency order, each receiving prior outputs as context.

Parallel

Independent tasks run concurrently in layers with automatic synchronization.

Hierarchical

Manager agent creates plans, delegates to workers, and synthesizes results.

Iterative

Execute, review, refine loop until the reviewer approves or max iterations reached.

Self-Improving

Generates new skills at runtime when capability gaps are detected. RL-powered decisions.

Swarm

Distributed fan-out with parallel agents per target and shared skill registry.

Composite

Chain any processes into a pipeline: Parallel → Hierarchical → Iterative.

Enterprise Ready

Production-grade features that differentiate SwarmAI from personal AI assistants

Governance Gates

Human-in-the-loop approval checkpoints pause workflows for review before sensitive operations.

Budget Tracking

Real-time token and cost tracking with HARD_STOP or WARN enforcement per workflow.

Multi-Tenancy

Tenant-isolated memory, knowledge, quotas, and budgets for enterprise deployments.

RBAC & Permissions

Role-based access control with tool permission levels: READ_ONLY, WORKSPACE_WRITE, DANGEROUS.

Observability

Correlation IDs, structured logging, decision tracing, Prometheus metrics, and health checks.

Circuit Breaker

resilience4j circuit breaker and retry on all LLM calls. Graceful degradation under failure.

Define Workflows in YAML or Java

Zero-code YAML DSL or type-safe Java builders — your choice

swarm:
  process: SELF_IMPROVING
  budget:
    maxTokens: 500000
    maxCostUsd: 5.00
    onExceeded: WARN

  agents:
    researcher:
      role: "Research Analyst"
      goal: "Find accurate data"
      tools: [web-search, sec-filings]
      permissionMode: READ_ONLY

    writer:
      role: "Report Writer"
      goal: "Write executive reports"

  tasks:
    research:
      description: "Research {{topic}}"
      agent: researcher
    report:
      description: "Write report from findings"
      agent: writer
      dependsOn: [research]

Start Building Today

Open source core • Enterprise features with Enterprise license • Spring Boot native