← Back to Plugins
Tools

Fleet

oguzhnatly By oguzhnatly ⭐ 1 stars 👁 21 views ▲ 0 votes

โ›ต Multi-agent fleet management CLI for OpenClaw. Built for AI agents to manage AI agents. Works on any system ๐Ÿฆž

Homepage GitHub

Configuration Example

{
  "workspace": "~/workspace",
  "gateway": {
    "port": 48391,
    "name": "coordinator"
  },
  "agents": [
    { "name": "coder", "port": 48520, "role": "implementation", "model": "codex" },
    { "name": "reviewer", "port": 48540, "role": "code review", "model": "codex" }
  ],
  "endpoints": [
    { "name": "website", "url": "https://myapp.com" },
    { "name": "api", "url": "https://api.myapp.com/health" }
  ],
  "repos": [
    { "name": "frontend", "repo": "myorg/frontend" },
    { "name": "backend", "repo": "myorg/backend" }
  ]
}

README

<p align="center">
  <img src="assets/banner.svg" alt="Fleet" width="800" />
</p>

<h3 align="center">Multi-agent fleet management for <a href="https://openclaw.ai">OpenClaw</a></h3>

<p align="center">
  <strong>One CLI to monitor, manage, and orchestrate your entire AI agent fleet.</strong>
</p>

<p align="center">
  <a href="https://github.com/oguzhnatly/fleet/actions"><img src="https://github.com/oguzhnatly/fleet/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
  <a href="https://clawhub.com"><img src="https://img.shields.io/badge/ClawHub-fleet-blue" alt="ClawHub" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="License" /></a>
  <a href="#"><img src="https://img.shields.io/badge/bash-4%2B-orange" alt="Bash 4+" /></a>
</p>

<p align="center">
  <a href="#quick-start">Quick Start</a> โ€ข
  <a href="#commands">Commands</a> โ€ข
  <a href="#patterns">Patterns</a> โ€ข
  <a href="#configuration">Configuration</a> โ€ข
  <a href="docs/">Docs</a>
</p>

---

You're running multiple [OpenClaw](https://openclaw.ai) gateways: a coordinator that thinks, employees that code, review, deploy, and research. Fleet gives your coordinator full operational awareness. Which agents are up, which CI is red, what changed since the last check.

<p align="center">
  <em>Built for AI agents to manage AI agents. Works on any system ๐Ÿฆž</em>
</p>

<p align="center">
  <img src="assets/demo.gif" alt="Fleet Demo" width="700" />
</p>

### Why Fleet?

๐Ÿ” **Visibility** ยท Know which agents are up, which CI is red, what changed overnight. One command, full picture.

๐Ÿ“Š **Delta tracking** ยท SITREP remembers the last run. Only shows what _changed_. No noise.

๐Ÿ”ง **Zero config** ยท `fleet init` detects running gateways, discovers your workspace, links itself to PATH. One command to go from clone to operational.

๐Ÿงฉ **Modular** ยท Each command is a separate file. Adding a new command means dropping a `.sh` file in `lib/commands/`. No monolith, no framework.

โšก **Agent native** ยท Designed to be _used by agents_, not just humans. The [SKILL.md](SKILL.md) teaches any OpenClaw agent to manage a fleet autonomously, install dependencies, and adapt to any environment. If bash isn't available, your agent figures out another way.

๐Ÿ“ฆ **Pattern library** ยท Solo empire, dev team, research lab. Pre built configs for common setups.

## Quick Start

```bash
# Install via ClawHub
clawhub install fleet

# Or clone directly
git clone https://github.com/oguzhnatly/fleet.git
fleet/bin/fleet init    # links PATH, detects gateways, creates config

# Check your fleet
fleet agents
fleet health
fleet sitrep
```

## Commands

### Monitoring

| Command | Description |
|---------|-------------|
| `fleet health` | Health check all gateways and endpoints |
| `fleet agents` | Show agent fleet with live status and latency |
| `fleet sitrep [hours]` | Full SITREP with delta tracking |
| `fleet audit` | Check for misconfigurations and risks |

### Development

| Command | Description |
|---------|-------------|
| `fleet ci [filter]` | GitHub CI status across all repos |
| `fleet skills` | List installed ClawHub skills |

### Operations

| Command | Description |
|---------|-------------|
| `fleet backup` | Backup gateway configs, cron jobs, auth profiles |
| `fleet restore` | Restore from latest backup |
| `fleet init` | Interactive setup with gateway detection |

<details>
<summary><strong>See more command output examples</strong></summary>

#### `fleet agents`

```
Agent Fleet
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โฌข coordinator      coordinator      claude-opus-4               :48391 online 13ms

  โฌข coder            implementation   codex                       :48520 online 8ms
  โฌข reviewer         code-review      codex                       :48540 online 9ms
  โฌก deployer         deployment       codex                       :48560 unreachable
  โฌข qa               quality-assurance codex                      :48580 online 7ms
```

#### `fleet audit`

```
Fleet Audit
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Configuration
  โœ… Config file exists at ~/.fleet/config.json
  โœ… Config permissions: 600
  โœ… All agent tokens configured
  โœ… No placeholder tokens found

Agents
  โœ… All 5 agents online
  โœ… Main gateway healthy (:48391)

CI
  โœ… gh CLI available
  โœ… All CI green

Resources
  โœ… Memory usage: 43%
  โœ… Disk usage: 7%

Backups
  โœ… Last backup: 2 day(s) ago

  All clear ยท 11 checks passed, 0 warnings
```

#### `fleet ci`

```
CI Status
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

  frontend (myorg/frontend)
    โœ… Update homepage (main) passed 2h ago
    โœ… Fix footer (main) passed 4h ago

  backend (myorg/backend)
    โŒ Add endpoint (main) failed 1h ago
    โœ… Fix auth (main) passed 3h ago
```

#### `fleet health`

```
Fleet Health Check
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โœ… coordinator (:48391) 12ms

Endpoints
  โœ… website (200) 234ms
  โœ… api (200) 89ms
  โŒ docs UNREACHABLE

Services
  โœ… openclaw-gateway
```

</details>

## Patterns

Fleet supports any agent organization pattern. Three common ones:

### Solo Empire
> One brain, many hands. The indie hacker setup.

```
         Coordinator (Opus)
        /     |      \
    Coder  Reviewer  Deployer
   (Codex)  (Codex)   (Codex)
```

### Development Team
> Team leads managing specialized developers.

```
              Orchestrator (Opus)
            /        |         \
      FE Lead     BE Lead     QA Lead
     (Sonnet)    (Sonnet)    (Sonnet)
       / \          |           |
    Dev1  Dev2    Dev1       Tester
   (Codex)(Codex)(Codex)    (Codex)
```

### Research Lab
> Specialized agents for knowledge work.

```
            Director (Opus)
          /     |      \       \
    Scraper  Analyst  Writer  Fact Check
   (Codex)  (Sonnet) (Sonnet)  (Codex)
```

See [`docs/patterns.md`](docs/patterns.md) for detailed guides and [`examples/`](examples/) for configs.

## Configuration

Fleet reads `~/.fleet/config.json`. Create one with `fleet init` or manually:

```json
{
  "workspace": "~/workspace",
  "gateway": {
    "port": 48391,
    "name": "coordinator"
  },
  "agents": [
    { "name": "coder", "port": 48520, "role": "implementation", "model": "codex" },
    { "name": "reviewer", "port": 48540, "role": "code review", "model": "codex" }
  ],
  "endpoints": [
    { "name": "website", "url": "https://myapp.com" },
    { "name": "api", "url": "https://api.myapp.com/health" }
  ],
  "repos": [
    { "name": "frontend", "repo": "myorg/frontend" },
    { "name": "backend", "repo": "myorg/backend" }
  ]
}
```

Everything is configurable. No hardcoded ports, models, or names. Your fleet, your way.

See [`docs/configuration.md`](docs/configuration.md) for the full schema.

## Environment Variables

| Variable | Description | Default |
|----------|-------------|---------|
| `FLEET_CONFIG` | Config file path | `~/.fleet/config.json` |
| `FLEET_WORKSPACE` | Workspace override | Config value |
| `FLEET_STATE_DIR` | State persistence | `~/.fleet/state` |
| `NO_COLOR` | Disable colors | _(unset)_ |

## Architecture

```
fleet/
โ”œโ”€โ”€ bin/fleet              # Entry point
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ core/              # Config, output, state management
โ”‚   โ”‚   โ”œโ”€โ”€ config.sh      # JSON config loader
โ”‚   โ”‚   โ”œโ”€โ”€ output.sh      # Colors, formatting, HTTP helpers
โ”‚   โ”‚   โ””โ”€โ”€ state.sh       # Delta state persistence
โ”‚   โ””โ”€โ”€ commands/           # One file per command
โ”‚       โ”œโ”€โ”€ agents.sh       # Agent fleet status
โ”‚       โ”œโ”€โ”€ audit.sh        # Misconfiguration checker
โ”‚       โ”œโ”€โ”€ backup.sh       # Config backup/restore
โ”‚       โ”œโ”€โ”€ ci.sh           # GitHub CI integration
โ”‚       โ”œโ”€โ”€ health.sh       # Endpoint health checks
โ”‚       โ”œโ”€โ”€ init.sh         # Interactive setup
โ”‚       โ”œโ”€โ”€ sitrep.sh       # Structured status reports
โ”‚       โ””โ”€โ”€ skills.sh       # ClawHub skill listing
โ”œโ”€โ”€ templates/configs/      # Config templates
โ”œโ”€โ”€ examples/               # Architecture pattern examples
โ”‚   โ”œโ”€โ”€ solo-empire/
โ”‚   โ”œโ”€โ”€ dev-team/
โ”‚   โ””โ”€โ”€ research-lab/
โ”œโ”€โ”€ docs/                   # Documentation
โ”œโ”€โ”€ tests/                  # Integration tests
โ”œโ”€โ”€ SKILL.md                # ClawHub agent instructions
โ””โ”€โ”€ .github/workflows/      # CI pipeline
```

Modular by design. Each command is a separate file. Add your own by dropping a `.sh` file in `lib/commands/`.

## For AI Agents

Fleet ships with a [`SKILL.md`](SKILL.md) that any OpenClaw agent can read. Install via ClawHub and your coordinator automatically knows how to manage the fleet:

```bash
clawhub install fleet
```

The agent reads the skill file, learns the commands, and runs health checks autonomously during heartbeat cycles.

## Requirements

| Dependency | Version | Notes |
|------------|---------|-------|
| bash | 4+ | macOS ships 3.2, run `brew install bash` |
| python3 | 3.10+ | No pip packages needed |
| curl | any | Pre installed on most systems |
| [OpenClaw](https://openclaw.ai) | any | Gateway support required |
| [gh CLI](https://cli.github.com/) | any | Optional, for CI commands |

## Contributing

Issues and PRs welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

Built by a solo operation, for solo operations.

## Support

If Fleet is useful to you, consider supporting its development:

<a href="https://github.com/sponsors/oguzhnatly">
  <img src="https://img.shields.io/badge/Sponsor-โค๏ธ-ea4aaa?style=for-the-badge&logo=github" alt="Sponsor on GitHub" />
</a>

## License

[MIT](LICENSE) ยท [Oguzhan Atalay](https://github.com/oguzhnatly)
tools

Comments

Sign in to leave a comment

Loading comments...