Architecture
~8 min readUpdated: November 2026

Fleetlayer: Multi-Machine Control Plane for Distributed AI Agents

Fleetlayer Distributed Multi-Machine AI Agent Control Plane Architecture in Smoke Monkey

Fleetlayer (`fleetlayer.ai`) is an open-source distributed control plane that connects Claude Code, Codex, and Gemini agent sessions running across laptops, home servers, and VPS instances. Using outbound `herdr` node daemons that traverse NAT with zero open inbound ports, Fleetlayer enables cross-machine agent messaging, shared Playwright browser MCP control, Unix-user isolation, and approval-gated security rules.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

Fleetlayer: Multi-Machine Control Plane for Distributed AI Agents: Fleetlayer (`fleetlayer.ai`) is an open-source distributed control plane that connects Claude Code, Codex, and Gemini agent sessions running across laptops, home servers, and VPS instances. Using outbound `herdr` node daemons that traverse NAT with zero open inbound ports, Fleetlayer enables cross-machine agent messaging, shared Playwright browser MCP control, Unix-user isolation, and approval-gated security rules. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplefleetlayer-orchestrator.ts
fleetlayer-orchestrator.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const fleetCoordinator = createAgent({
agentId: 'fleetlayer-cross-host-coordinator',
provider: 'custom',
baseUrl: 'http://127.0.0.1:8000/v1',
model: 'qwen3.8:27b',
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
mcpServers: {
fleetBrowser: {
command: 'fleetlayer',
args: ['mcp', 'browser@laptop'],
},
},
});
async function routeCIEventToBranchAgent() {
const result = await fleetCoordinator.run(
'Inspect fleetlayer fleet status, forward the failing CI webhook to api@laptop, and verify the staging dashboard via Playwright MCP.'
);
console.log('Fleet Dispatch:', result.summary);
}
routeCIEventToBranchAgent().catch(console.error);
Video Guides

Watch: Related Video Guides

AI Agent Architecture: Where Does Your Agent Actually Run?

The Agent Control Plane: Managing Thousands of AI Agents | Nishant Gupta at Agent Conf 2026

What Is Fleetlayer? Solving Multi-Host & Multi-Account Agent Sprawl

Fleetlayer is an open-source control layer built around herdr session nodes that unifies coding and operational agents across multiple physical machines and LLM accounts. While a single local coding session works out of the box, multi-machine setups break down when a server agent cannot reach a laptop's browser, CI webhooks spawn contextless agents, or one Claude account hits rate limits mid-task.

Instead of exposing SSH tunnels or public ports on developer laptops, each machine—or isolated Unix user on a shared host—runs a lightweight node that maintains one outbound connection to the Fleetlayer control plane. Every session's live state, account usage quota, terminal attachment, and audit trail appear on one unified CLI and web dashboard.

Fleetlayer Isolation & Cross-Host Capabilities Matrix

Fleetlayer treats machine boundaries, Unix users, and LLM accounts as first-class routing and security primitives.

CapabilitySingle-Laptop CLI AgentFleetlayer Control Plane
Network TopologyLocal terminal onlyOutbound herdr node per host (NAT-friendly, zero open ports)
Inter-Agent MessagingManual copy-pastefleetlayer msg send --to <agent>@<host> with sender labels
Browser AutomationLocalhost only or extension re-loginBackground-tab Playwright MCP (fleetlayer mcp browser@laptop)
Multi-Account QuotasFails mid-task on rate limitYear-long sealed per-machine tokens with live usage visibility
Untrusted Input SandboxingShared user home directorySeparate Unix-user nodes (triage vs infra) + approval gates
CI Webhook RoutingWakes cold agent without contextRoutes failures directly to the branch-owning session

Least-Privilege Isolation for External Inputs

Run agents that parse untrusted emails or web pages under a dedicated Unix user node (such as `triage@mail`) with policy rules restricting them from messaging production `infra` agents or accessing unrelated SSH keys.

Inspecting Fleets, Attaching Terminals & Routing Messages

Engineers manage distributed sessions from any workstation using fleetlayer CLI commands that mirror the web dashboard.

bash
# List all online hosts, agent backends (Claude/Codex), and current task state
fleetlayer fleet

# Send a cross-machine message from VPS CI runner to laptop API session
fleetlayer msg send --to api@laptop "the staging deploy is done"

# Attach interactively to a remote session terminal or expose laptop browser MCP
fleetlayer attach api@laptop
fleetlayer mcp browser@laptop

Bridging Fleetlayer Nodes with Smoke Monkey Harness & Canvas

Teams using Smoke Monkey Canvas for spatial multi-agent workflows can connect remote VPS workers and local Mac browser tools through Fleetlayer's MCP proxy and herdr session manager, keeping credentials sealed to hardware you own while preserving full action auditability.

Google Search Questions & Answers

Frequently Asked Questions

Q:Does Fleetlayer require opening inbound firewall ports on my laptop or home server?

No. Every `herdr` node establishes a single outbound connection to the Fleetlayer control plane, allowing seamless operation behind home routers and corporate NAT.

Q:How does Fleetlayer share my signed-in Chrome browser with remote server agents?

Fleetlayer exposes a Playwright MCP endpoint (`fleetlayer mcp browser@laptop`) restricted by caller allowlists, running remote agent tasks inside background tabs without stealing focus from your active window.

Q:Which AI coding agents does Fleetlayer support?

Fleetlayer connects Claude Code, OpenAI Codex, and Gemini agent sessions—including Fleetlayer Pages and Apps hosting so Codex and Gemini agents can publish shareable interactive outputs alongside Claude.

Q:How does Fleetlayer protect against prompt injection in email or web triage agents?

You can run each untrusted agent under its own Unix user and `herdr` instance with its own cryptographic key, enforcing access policies that block it from messaging other agents or taking over privileged sessions.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness