Show HN: Fleetlayer – 在多台机器上运行大量 AI 代理的框架
Show HN: Fleetlayer – Framework for running many AI agents on multiple machines

原始链接: https://fleetlayer.ai/

Fleetlayer 是一个早期、源码可用的系统,用于在多台机器、多个账户和多种代理类型(如 Claude Code、Codex 和 Gemini)上运行与协调 AI 编码代理。它连接笔记本、服务器和 VPS 上的会话,让代理彼此发送消息、共享已登录的浏览器和文件,并在用户控制的机器上按用户定义的规则运行。它解决常见的多机器和多账户问题,例如产物访问错误、孤立会话、重复浏览器登录和隐藏的账户用量限制。主要功能包括统一仪表盘、带出站连接的每台机器节点、跨代理消息、webhook、审批、防篡改审计日志、密钥处理、访问规则、共享 MCP 工具,以及代理发布的页面和应用。安全功能包括基于角色的访问控制、网络限制、审批工作流和隔离的 Unix 用户。Fleetlayer 从一台笔记本起步,通过将组件迁移到其他机器进行扩展,无厂商锁定且部件可替换。

Fleetlayer 是一个控制平面和节点二进制,用于连接多台机器上的 AI 代理,解决作者运行许多并行 Claude Code 会话时遇到的问题:使用限制需要多个账户、claude.ai 工件/Chrome 扩展跨账户损坏,以及代理无法跨机器通信或共享浏览器访问。它与 Herdr 等会话管理器集成,支持跨机器代理消息传递和工具访问,并添加了 Webhook、SSO、访问规则、审计日志、远程终端、浏览器共享、集中登录、会话摘要、密钥和自托管页面/应用等功能。 评论提出了相关担忧:除了计算/限制之外的协调瓶颈;并行会话/子代理的 token 消耗;企业对 Herdr 等工具的限制;由于项目“源码可用”且有使用限制而产生的许可问题;Anthropic 服务条款是否真正允许使用多个消费者账户;在代理间管理配置(技能、MCP、钩子);以及任务队列、目标研究侦察器和多提供商代理互相审查工作等替代方案。一位评论者分享了分叉的“paseo”网状路由器方法。总体而言,该讨论反映了人们对编排许多 AI 编码代理日益增长的兴趣,同时指出成本、协调和许可方面的挑战。
相关文章

原文

Fleetlayer connects the Claude Code and Codex sessions on your laptop, home server and VPS, under every account you use. They message each other, share your signed-in browser and files, and work under rules you set, on machines you control.

fleetlayer fleetexample
$ fleetlayer fleet
laptop (macbook, online)
  api@laptop        claude  working  Fixed the flaky upload test.
  docs@laptop       codex   idle     Install guide rewritten.
mail (home-server, online)
  triage@mail       claude  idle     3 emails need your reply.
home (home-server, online)
  infra@home        claude  working  Backup check passed.

$ fleetlayer msg send --to api@laptop "the staging deploy is done"
Delivered to api@laptop (claude-code).

What starts going wrong

One Claude account on one machine is easy. Add a second account, a server, or another kind of agent, and this starts happening:

  • claude.ai artifacts say “access denied” unless you’re signed in to the right account.
  • A session on your server can’t message one on your laptop.
  • You keep signing in and out of the Claude in Chrome extension.
  • An agent on your server can’t use the browser on your Mac.
  • An agent on your server can’t reach the Downloads or Screenshots folders on your Mac.
  • Codex and Gemini agents can’t make claude.ai artifacts at all.
  • You find out an account is out of usage when a session stops.

Fleetlayer solves all of this, and much more

  • “access denied” on artifacts

    Fleetlayer Pages and Apps

    Claude, Codex and Gemini agents write pages and interactive apps as plain folders, and Fleetlayer hosts them behind one sign-in.

    Set up pages
  • sessions that can’t reach each other

    Messages between any two agents

    Claude or Codex, on the same machine or another one: fleetlayer msg send --to api@laptop.

    Send a message
  • signing the extension in and out

    Any agent can control your browser

    Agents on any machine and any Claude account can use the Chrome on your Mac, signed in as you (via Playwright MCP).

    Share your browser
  • an account that runs out mid-task

    Your own accounts, on your own machines

    Year-long sign-ins for each of your Claude accounts on every machine you run, and each account’s usage visible to every session.

    Add your accounts

You need this if

  • your agents run on more than one machine, or under more than one Claude account;
  • you run Codex or other agents next to Claude Code;
  • an agent reads email or the web, and you want it kept away from the others' rights and secrets;
  • you want your agents, secrets and the record of what they did on machines you control.

You probably don't if

You use one Claude account on one laptop, and Claude Code's own features cover the rest. Use those, and come back when you add a second machine or account. What Fleetlayer adds beyond Claude Code.

Your whole fleet on one page.

The dashboard shows every machine and what it runs, every agent session and whether it's waiting on you, the events that arrived and which agent each reached, and the requests waiting for your approval. Live, behind your own sign-in, and everything on it works from the command line too.

The Fleetlayer dashboard's overview of a fleet: machines online, sessions, what's waiting on you and problems; a list of what needs you; a card per machine with its nodes, sessions and plugins; and a live feed of events.

A node on each machine, one control plane.

Fleetlayer attaches to herdr without taking it over, so its app and your terminals keep working as before. Each machine, or each Unix user, runs a small node that keeps one outbound connection to the control plane, so it works behind NAT with no ports to open.

  1. Laptop

    node

    delivers messages, runs plugins

  2. Home server

    user triage

    reads strangers' email, so it may message only you

    a node per user

    own key, own rules

  3. VPS or the same laptop

    control plane

    machines, sessions, messages, webhooks, access rules

    pages · sign-in · Claude accounts

    each one a separate piece you can move

one outbound connection per node

Session manager
herdr today, others to come

Node
one per machine or Unix user

Service
run it anywhere, move it later

What you get

  • Every session in one list

    Every machine and session, with a one-line summary of what each agent is doing, and a searchable record of what it did. fleetlayer attach api@laptop watches or drives its terminal from anywhere.

  • Agents that message each other

    On one machine or across machines, delivered through the agent's own channel and labelled with who sent it. A misspelt name suggests the right one.

  • Webhooks that find the right agent

    A CI failure goes to the session that wrote the branch, which already knows the code, instead of waking a fresh agent with no context.

  • Your own accounts, on your own machines

    Each of your Claude accounts' usage, visible to every session. Year-long tokens reach each machine sealed to its own key. Your sign-ins stay on a machine you control.

  • Separate users, separate rules

    Run several nodes and herdr instances on the same machine or VM, each under its own Unix user. The access policy limits whom each agent may message and what it may use.

  • Tools that live on one machine

    Your signed-in browser on the laptop, used by an agent on the server: fleetlayer mcp browser@laptop, limited to the callers you allow.

See how to set it up

All the security, none of the pain

Most people run Claude Code with access to everything and hope nothing goes wrong. That works until an agent reads a malicious email, or a stray rm -rf runs in the wrong folder. Fleetlayer gives you the protections a security team would ask for, an agent sets them up for you, and each one can be switched off when you don't need it.

  • Ask before the risky things

    Access rules decide which agent may message, start or take over which session. Anything sensitive waits for your approval, and you can leave approvals off for the work you trust.

  • Everything on the record

    An audit log shows who did what and when, and you can check it hasn't been altered.

  • Secrets stay on your machines

    Tokens travel encrypted to the machine that needs them, and the control plane never stores them.

  • Untrusted input stays untrusted

    Messages from an agent that reads email or the web arrive marked as outside data. That agent runs as its own user and can't borrow a trusted agent's rights.

  • One sign-in, one sign-out

    One sign-in for your self-hosted services, and signing out of one signs you out of all of them.

  • Secrets per role

    Items from 1Password reach only the roles you grant them to, and are scrubbed from everything that leaves a machine. How

  • Agents reach only the hosts they need

    Each role gets a list of hosts, and you approve new ones. Linux for now. How

  • An admin role that's off until you start a timed window

    The agent that can change everything has no rights until then, and is cleaned up when the window ends. How

A foundation for your own agent workflows

Fleetlayer started inside Quietdeck. Once we saw how useful that layer was on its own, we pulled it out into its own project and refined it. It gives you the primitives to build your own apps and layers on top:

  • sessions at tab@node
  • messages
  • webhooks and channels
  • access rules
  • approvals
  • an audit log
  • plugins in any language
  • shared MCP tools
  • pages and apps

Built on Fleetlayer

Quietdeck

An agent triages your email and proposes what to do, and you approve. Quietdeck is designed to run on Fleetlayer and uses its features to:

  • forward emails and notifications to the agent that owns the work through Fleetlayer’s messaging
  • know what all your agents are doing from Fleetlayer’s session summaries, and route each message to the right agent
  • start an isolated email triage agent on its own Unix user, connected through its own Fleetlayer node, with access rules that limit whom it may message

One system, many parts

Fleetlayer is the layer between your agents and the tools around them. Each part does one job and can be replaced.

  1. AgentsClaude Code, Codex, Gemini
  2. Sessionsherdr
  3. Fleetlayercross-agent messaging, webhooks, single sign-on, access rules, approvals, audit log, remote terminals
  4. Fleetlayer Pluginsherdr, Claude Code, AI account management, session summaries, file sync, shared folders, pages and apps (all optional)
  5. ToolsExecutor for MCP servers and sign-ins to your services
  6. Secrets1Password
  7. BrowserPlaywright MCP
  8. FilesSyncthing, Obsidian Sync, Obsidian LiveSync, or any file syncing solution
  9. NetworkTailscale, Cloudflare Tunnel
  10. ServicesGatus for health checks, Traefik for addresses
  11. Backupsrestic
  12. Mobileherdr-mobile-relay

Start small, replace any component as you go.

Begin with everything on your laptop. When you outgrow it, move one piece to a home server or a VPS, or swap it for the tool you'd rather use: your own proxy, your company's sign-in, another session manager. Each piece keeps its state in one folder and speaks open protocols, so moving it is a copy and a new address.

Ask your agent

Set up Fleetlayer on this machine. The docs are at https://fleetlayer.ai/llms.txt

Or run it yourself (Linux or macOS)

$ curl -fsSL https://raw.githubusercontent.com/fleetlayer/fleetlayer/main/install.sh | sh

Start everything on this machine

$ fleetlayer up
Fleetlayer is running. Status: http://fleetlayer.localhost:7680
$ fleetlayer sessions

No vendor lock-in

Your own stack instead of a vendor's cloud. Unlike one big app, Fleetlayer is a few separate pieces that work with the tools you already use, and you can swap any of them.

Keep using Anthropic's and OpenAI's own features for as long as they serve you. When you outgrow them (several subscriptions, several machines, agents from more than one vendor), you give nothing up. When a vendor ships its own version of a feature, Fleetlayer can support it too, and you can still change models and harnesses whenever you like.

For people who run many agents

Fleetlayer is for a person running many agents across several machines and accounts: personal errands, email triage, product work, infrastructure, background workers, each with its own machine or Unix user and its own permissions, all visible from your own terminal.

It grows with you. A household or a team shares one system, and a company gets what it needs (single sign-on, teams, separate organisations, audit) when it needs it.

Features

Coming soon

Expect breaking changes: what changed in each release is in the changelog. Will it cost money? We might provide a hosted control plane and provision a VPS where you can run your remote agents and services, but we haven't decided on anything yet.

联系我们 contact @ memedata.com