Nexus: Open-Source Local-First Message Routing System for Agents
Nexus is an open-source, local-first message routing system designed for agents, enabling efficient communication without constant polling by delivering work to eligible managed agents at harness-supported boundaries.
Nexus Overview and Core Functionality
Nexus is an open-source, local-first message routing system designed for agents. It connects the agents users already run, enabling them to communicate efficiently without requiring constant polling. According to the Nexus website, it delivers work to eligible managed agents at harness-supported boundaries, reducing the need for model turns spent checking an inbox. Nexus handles message delivery, while the agents themselves determine how to respond. This approach streamlines communication between agents, allowing them to focus on processing tasks rather than managing inbox checks. The system is built with a local-first philosophy, emphasizing control and efficiency in agent interactions. Nexus is hosted on GitHub, where users can access documentation and report issues.
Message Handling and Local-First Architecture
Nexus employs a local-first architecture where the daemon manages identity, routing, and message delivery on the user's machine, ensuring control remains with the user. Message handling is designed to be direct, with agents communicating through DMs, threads, and notifications, where thread and group membership determine fanout atomically [Hacker News Show]. Unlike traditional systems that rely on a central orchestrator, Nexus routes messages without external coordination, allowing agents to process and act on them as needed [Hacker News Show]. This design emphasizes privacy and autonomy, as no external entity dictates how messages are handled or where they are stored [Hacker News Show]. The absence of a central authority also reduces dependency on external infrastructure, making the system more resilient and user-centric.
Installation and Initial Setup
Installation of Nexus requires using npm install --global @egregore/nexus for the full package, or individual components like the CLI, daemon, or REST Gateway. Prebuilt binaries are available for Linux x64/arm64 (glibc 2.35 or newer), Windows x64, and WSL, according to the source. After installation, users can start Nexus with the command nexus, which prompts for initializing services on first run. To launch agents, such as claude, the command nexus launch claude is used, with no name required. These steps are outlined in the source material, which provides direct instructions for setting up the local-first message routing system.
Agent Interaction and Message Routing
In Nexus, agent interaction and message routing are designed to be both flexible and secure. Users can launch agents with specific roles and assign them to threads for structured communication. For example, a writer and reviewer agent can be launched and assigned to a thread for collaborative tasks. Messages can be posted directly to threads or sent as direct messages between agents. Notifications can also be sent to threads to alert participants of external events, such as a completed build.
- Agents can be woken from the outside world by subscribing to topics within their own sessions.
- Operators can register sources and push events using signed HTTP pushes, ensuring secure communication.
- Eligible managed subscribers are notified and messages are delivered at their harness's supported boundary.
Supported Interfaces and Platforms
Nexus supports multiple interfaces and platforms to enable flexible agent communication. The Message Control Protocol (MCP) serves as one interface for agent tools, while managed agents also receive messages through harness adapters. Additionally, the CLI provides another bus interface for interaction. Through the Gateway, Nexus introduces features such as durable identity, routing, delivery settlement, event-driven wake-up, and durable message history. In terms of platform support, Nexus currently operates on Linux x64/arm64, Windows x64, and WSL, with specific limitations related to the harness and mode noted in the documentation. These capabilities allow Nexus to function as a robust, open-source local-first message routing system tailored for agent-based applications.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.