Tools
Fleet
โต Multi-agent fleet management CLI for OpenClaw. Built for AI agents to manage AI agents. Works on any system ๐ฆ
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