Planet as a Brain: Towards Internet of AgentSites based on AIOS Server
Proposes AIOS server for decentralized AgentSite network, enabling scalable peer-to-peer communication and discovery.
Key Findings
Methodology
This work designs an AIOS server framework based on Model Context Protocol (MCP) and JSON-RPC, enabling structured peer-to-peer communication among autonomous agents. It employs a decentralized agent registration and discovery system built on Distributed Hash Table (DHT) and Gossip protocol, supporting dynamic task delegation and state synchronization across nodes. The system features a multi-layer architecture with agent management, monitoring, and task execution modules, ensuring low latency and high robustness. Extensive experiments in real deployment environments demonstrate average response times below 0.2 seconds, throughput up to 229 requests/sec, and resilient operation under node failures, validating its scalability and efficiency for global AgentSite ecosystems.
Key Results
- The AIOS server achieved an average latency of 0.15 seconds and throughput of 229 requests per second in cloud deployment, outperforming traditional centralized systems.
- The decentralized discovery mechanism enabled rapid registration and retrieval of hundreds of agents across multiple locations, with minimal delay.
- System robustness was confirmed through fault injection tests, maintaining network integrity and response speed despite node failures, demonstrating high fault tolerance.
Significance
This research addresses critical scalability and security challenges in multi-agent systems by establishing a decentralized, resilient infrastructure akin to the web. It enables autonomous agents to operate across distributed environments, facilitating large-scale collaboration without reliance on centralized servers. The framework paves the way for a new era of intelligent, autonomous internet ecosystems, with broad implications for cloud computing, IoT, and AI-driven services. It significantly advances the state-of-the-art in distributed multi-agent architectures, offering a scalable, secure, and flexible foundation for future intelligent networks.
Technical Contribution
The paper introduces a standardized communication protocol combining MCP and JSON-RPC, supporting structured, secure interactions. It innovatively integrates DHT and Gossip protocols for decentralized registration and discovery, ensuring high availability and fault tolerance. The architecture supports autonomous node registration, dynamic task routing, and real-time state synchronization across geographically distributed sites. These contributions collectively enable scalable, resilient, and secure multi-agent ecosystems, overcoming limitations of traditional centralized systems and opening new avenues for distributed AI applications.
Novelty
This is the first implementation of a global, decentralized AgentSite network that leverages DHT and Gossip for agent registration and discovery, breaking away from reliance on centralized registries. It introduces a novel infrastructure that combines multi-agent communication protocols with peer-to-peer discovery mechanisms, enabling autonomous, large-scale, distributed AI ecosystems. The approach fundamentally differs from prior work focused on centralized or small-scale multi-agent collaboration, representing a significant step toward the future internet of autonomous agents.
Limitations
- The system may face synchronization delays or inconsistencies under extreme network partitioning or high latency conditions, affecting real-time responsiveness.
- Security measures against malicious nodes and data privacy are still preliminary, requiring further reinforcement.
- Large-scale deployment incurs significant resource consumption, necessitating optimization for efficiency and cost-effectiveness.
Future Work
Future efforts will focus on strengthening security protocols, including trust evaluation and attack mitigation. Integrating blockchain technology could enhance data integrity and transparency. Expanding multimodal communication capabilities and supporting diverse agent types will broaden application scenarios. Additionally, optimizing algorithms for resource efficiency and exploring edge computing integration are key directions to realize a robust, scalable, and secure global AgentSite ecosystem.
AI Executive Summary
This paper introduces the AIOS server architecture, a groundbreaking step toward transforming the internet into a decentralized AgentSite ecosystem. Traditional web infrastructure relies on static websites hosted centrally, which limits scalability, security, and adaptability. To address these issues, the authors propose a novel framework based on Model Context Protocol (MCP) and JSON-RPC, enabling structured, secure communication between autonomous agents across distributed nodes.
The core innovation lies in leveraging Distributed Hash Table (DHT) and Gossip protocols to build a decentralized agent registration and discovery system. This approach eliminates single points of failure, enhances fault tolerance, and supports dynamic, large-scale agent management. The system architecture includes multiple layers—agent management, task scheduling, monitoring, and secure communication—ensuring efficient operation across geographically dispersed sites.
Extensive experiments in real-world deployment environments validate the system’s performance. Results show low latency (average 0.15 seconds), high throughput (up to 229 requests/sec), and robust fault tolerance, even under network failures. These findings demonstrate the feasibility of a global, decentralized AgentSite network capable of supporting autonomous agents at internet scale.
This framework significantly advances multi-agent system research by providing a scalable, secure infrastructure that promotes autonomous collaboration. It addresses longstanding challenges in system robustness, scalability, and security, paving the way for future intelligent, distributed web ecosystems. Despite current limitations in security and resource efficiency, ongoing developments aim to enhance system resilience and applicability, promising a transformative impact on AI-driven internet services.
Deep Analysis
Background
The evolution of large language models (LLMs) and autonomous agents has revolutionized AI applications, enabling reasoning, memory, and tool usage. Early systems like AutoGen and MetaGPT focused on task pipelines within centralized platforms, but scalability and security issues persisted. Recent efforts such as AIOS aim to decentralize agent deployment, yet lacked robust distributed registration and discovery mechanisms. The need for a scalable, fault-tolerant infrastructure to support global autonomous agents has become urgent, especially with the rise of multi-modal AI and IoT. This research builds on prior work but introduces a novel decentralized architecture that integrates peer-to-peer protocols, addressing the limitations of existing centralized systems.
Core Problem
Current multi-agent systems rely heavily on centralized registries and orchestrators, which pose single points of failure, limit scalability, and raise security concerns. As the number of agents grows exponentially, maintaining real-time discovery, registration, and communication becomes increasingly challenging. Moreover, existing solutions lack resilience against network failures and malicious attacks. The core problem is designing a decentralized, scalable, secure infrastructure that supports autonomous agent registration, efficient discovery, and robust communication across global networks, ensuring high performance and safety in large-scale deployments.
Innovation
The key innovations include: 1) a standardized MCP-based communication protocol supporting multi-turn, structured interactions; 2) a decentralized registration system combining DHT for scalable metadata storage and Gossip for state dissemination, avoiding reliance on centralized servers; 3) a multi-layer architecture supporting autonomous node registration, task routing, and real-time status updates; 4) integration of security features like encryption and identity validation. These innovations enable a resilient, scalable, and secure multi-agent ecosystem, facilitating autonomous collaboration at internet scale, a significant leap from prior centralized or limited-scale systems.
Methodology
- �� Develop MCP v1.2.1 protocol for structured, secure communication between humans and agents, and among agents.
- �� Build a multi-layer architecture with node management, task scheduling, and monitoring modules.
- �� Implement DHT (Kademlia) for decentralized agent registration and lookup, ensuring logarithmic scalability.
- �� Use Gossip protocol for peer-to-peer state synchronization, maintaining eventual consistency.
- �� Design autonomous node registration, periodic status reporting, and task delegation workflows.
- �� Incorporate security measures including message encryption, authentication, and anomaly detection.
- �� Conduct performance evaluations through real-world deployments, measuring latency, throughput, and fault tolerance under various network conditions.
Experiments
Experiments deployed the system across multiple geographic locations, simulating real-world internet conditions. Tests involved varying load levels (50, 100, 200 requests) with different concurrency (5, 10, 20 users). Metrics included response latency, throughput, registration speed, and fault recovery. Baseline comparisons with centralized architectures demonstrated superior scalability and resilience. Fault injection tests confirmed the system’s robustness, maintaining high performance despite node failures. Results validated the architecture’s capacity to support large-scale, distributed autonomous agents with low latency and high reliability.
Results
The system maintained an average response latency of 0.15 seconds and achieved a maximum throughput of 229 requests/sec in cloud deployment. The decentralized discovery mechanism enabled rapid registration and retrieval of hundreds of agents across multiple sites, with minimal delay. Fault tolerance was confirmed through simulated node failures, where the network quickly recovered, maintaining response times and connectivity. These results demonstrate the architecture’s suitability for real-world, large-scale autonomous agent networks, outperforming traditional centralized solutions in scalability, robustness, and security.
Applications
This infrastructure supports applications like distributed AI services, smart city management, and cross-border research collaborations. It enables autonomous agents to dynamically register, discover, and communicate across multiple locations, facilitating real-time decision-making and task execution. Industries such as logistics, IoT, and finance can leverage this framework for scalable, secure, and resilient AI deployment. Long-term, it envisions a web where autonomous agents operate seamlessly across borders, forming a resilient, intelligent, distributed internet ecosystem.
Limitations & Outlook
Current system performance may degrade under extreme network partitioning or high latency scenarios, affecting synchronization accuracy. Security mechanisms against malicious nodes and data privacy need further enhancement. Large-scale deployment incurs significant resource costs, requiring optimization. Future work should focus on trust management, attack resistance, and efficiency improvements to ensure system robustness and wider applicability.
Plain Language Accessible to non-experts
想象一个巨大的学校,每个教室都可以自主安排课程和活动,没有一个统一的老师或校长。每个教室就像一个AgentSite,里面的学生(AI智能体)可以自己决定学习内容,也可以和邻近的教室合作完成任务。学生们通过无线网络交换信息,就像用邮递员传递信件一样,没有中心控制,每个教室都能自主行动。这样,整个学校变得非常灵活,能快速应对变化,合作也更高效。未来的互联网就像这个学校,每个AgentSite都是一个自主的小工厂,彼此合作,共同完成复杂的任务。
ELI14 Explained like you're 14
你可以把这个系统想象成一个超级大的学校,每个教室都是一个AgentSite,里面有很多学生(AI智能体)。这些学生可以自己决定学习什么,也可以向邻近的教室请教或合作,没有老师在中央指挥。每个教室都能自己安排课程,还能通过无线网络和其他教室交流。比如,一个教室需要帮忙做科学实验,就可以找到附近的教室合作。整个学校就像一个智能的网络,每个教室都很自主,大家一起合作完成大任务。这种方式比传统的学校更灵活、更安全,也更能应对突发情况。
Glossary
Model Context Protocol (MCP)
一种标准化的通信协议,用于结构化请求和响应,支持多智能体和人机交互。
本文中用于实现AIOS服务器的通信框架。
Distributed Hash Table (DHT)
一种去中心化的存储和检索机制,支持大规模节点的快速查找。
用于Agent的注册与发现机制。
Gossip Protocol
一种信息传播协议,通过节点间随机交换状态信息,保证系统最终一致性。
实现Agent状态的同步。
AgentSite
由多个AI智能体组成的自治单元,类似于网站或服务器。
系统中的基本组织单位。
AIOS (AI Agent Operating System)
支持AI智能体开发、部署和运行的操作系统架构。
本文的基础平台。
Open Questions Unanswered questions from this research
- 1 如何确保大规模Agent网络中的安全性和信任机制仍需深入研究,特别是在防止恶意节点和数据隐私方面。
- 2 未来需要探索更高效的算法以降低资源消耗,提升系统在极端网络环境下的稳定性。
Abstract
The internet is undergoing a historical transformation from the "Internet of Websites" to the "Internet of AgentSites." While traditional Websites served as the foundation for information hosting and dissemination, a new frontier is emerging where AgentSites serve as the hubs of the internet, where each AgentSite hosts one or more AI agents that receive tasks, address them, and deliver actionable solutions, marking a significant shift in the digital landscape and representing the next generation of online ecosystems. Under this vision, AIOS, the AI Agent Operating System, serves as the server for the development, deployment and execution of AI agents, which is a fundamental infrastructure for the Internet of Agentsites. In this paper, we introduce AIOS Server, a runtime framework to host agents and enable global-scale collaboration among decentralized agents. AIOS Server provides a communication protocol leveraging the Model Context Protocol (MCP) and JSON-RPC to enable agent-agent or human-agent interactions. Each AIOS node operates as a server to host and execute agents, while supporting peer-to-peer coordination without reliance on centralized orchestration. Based on AIOS Server, we further present the world's first practically deployed Internet of Agentsites (AIOS-IoA), including AgentHub for agent registration and discovery and AgentChat for interactive communication, at https://planet.aios.foundation. The agent discovery mechanism based on Distributed Hash Tables (DHT) and a Gossip protocol serves as the search engine for the internet of agentsites. This work provides a practical foundation for building the Internet of Agentsites-a new paradigm where autonomous agents become first-class citizens of the web. The implementation is available at https://github.com/agiresearch/AIOS.Server and is integrated into the AIOS main branch at https://github.com/agiresearch/AIOS.