RobustMQ 0.3.5

dotnet add package RobustMQ --version 0.3.5
                    
NuGet\Install-Package RobustMQ -Version 0.3.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RobustMQ" Version="0.3.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RobustMQ" Version="0.3.5" />
                    
Directory.Packages.props
<PackageReference Include="RobustMQ" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RobustMQ --version 0.3.5
                    
#r "nuget: RobustMQ, 0.3.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RobustMQ@0.3.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RobustMQ&version=0.3.5
                    
Install as a Cake Addin
#tool nuget:?package=RobustMQ&version=0.3.5
                    
Install as a Cake Tool

RobustMQ SDK

Multi-language client SDK for RobustMQ — a unified messaging engine built for the AI era.

RobustMQ is a single-binary broker that natively supports MQTT, Kafka, NATS, AMQP, and mq9 on a shared storage layer.

mq9: AI Agent mailbox protocol

mq9 gives every agent a durable mailbox. Messages persist until TTL expires — senders and receivers do not need to be online simultaneously.

Concept Description
Mailbox Agent's address. Private (UUID) or public (user-defined name). TTL-driven, auto-cleaned.
Priority high / normal / low. Cross-priority ordering guaranteed by storage.
Store-first Subscriber gets all non-expired messages on connect, then real-time going forward.
Queue group Multiple subscribers sharing a group receive each message exactly once.

Protocol operations:

Operation Subject
Create mailbox $mq9.AI.MAILBOX.CREATE
Send message $mq9.AI.MAILBOX.MSG.{mail_id}.{priority}
Subscribe $mq9.AI.MAILBOX.MSG.{mail_id}.*
List metadata $mq9.AI.MAILBOX.LIST.{mail_id}
Delete message $mq9.AI.MAILBOX.DELETE.{mail_id}.{msg_id}

Full spec: docs/mq9-protocol.md


SDK status

Language Package Version Install
Python robustmq 0.3.5 pip install robustmq
Go github.com/robustmq/robustmq-sdk/go v0.3.5 go get github.com/robustmq/robustmq-sdk/go
JavaScript @robustmq/sdk 0.3.5 npm install @robustmq/sdk
Java com.robustmq:robustmq 0.3.5 Maven / Gradle (see below)
Rust robustmq 0.3.5 cargo add robustmq
C# RobustMQ 0.3.5 dotnet add package RobustMQ

Integrations

Package Description Install
langchain-mq9 LangChain tools for mq9 — give your Agents a persistent async inbox pip install langchain-mq9

Quick start

Python

pip install robustmq
from robustmq.mq9 import Client, Priority

async with Client("nats://demo.robustmq.com:4222") as client:
    mailbox = await client.create(ttl=3600)
    await client.send(mailbox.mail_id, b"hello", priority=Priority.NORMAL)

    async def handler(msg):
        print(msg.payload)

    await client.subscribe(mailbox.mail_id, handler)

Go

go get github.com/robustmq/robustmq-sdk/go
import "github.com/robustmq/robustmq-sdk/go/mq9"

c := mq9.NewMQ9Client("nats://demo.robustmq.com:4222")
c.Connect()
mailbox, _ := c.Create(3600)
c.Send(mailbox.MailID, []byte("hello"), mq9.Normal)

JavaScript / TypeScript

npm install @robustmq/sdk
import { MQ9Client } from "@robustmq/sdk/mq9";

const client = new MQ9Client({ server: "nats://demo.robustmq.com:4222" });
await client.connect();
const mailbox = await client.create({ ttl: 3600 });
await client.send(mailbox.mailId, "hello", "normal");

Java (Maven)

<dependency>
  <groupId>com.robustmq</groupId>
  <artifactId>robustmq</artifactId>
  <version>0.3.5</version>
</dependency>
import com.robustmq.mq9.*;

MQ9Client client = new MQ9Client("nats://demo.robustmq.com:4222");
client.connect();
Mailbox mailbox = client.create(3600).get();
client.send(mailbox.getMailId(), "hello".getBytes(), Priority.NORMAL).get();

Java (Gradle)

implementation 'com.robustmq:robustmq:0.3.5'

Rust

[dependencies]
robustmq = "0.3"
tokio = { version = "1", features = ["full"] }
use robustmq::mq9::{MQ9Client, Priority};

let client = MQ9Client::connect("nats://demo.robustmq.com:4222").await?;
let mailbox = client.create(3600, false, "", "").await?;
client.send(&mailbox.mail_id, b"hello", Priority::Normal).await?;

C#

dotnet add package RobustMQ
using RobustMQ.Mq9;

await using var client = new MQ9Client("nats://demo.robustmq.com:4222");
await client.ConnectAsync();
var mailbox = await client.CreateAsync(3600);
await client.SendAsync(mailbox.MailId, "hello"u8.ToArray(), Priority.Normal);

SDK documentation

Language Docs Demo
Python docs/python.md demo/demo-python/
Go docs/go.md demo/demo-go/
JavaScript docs/javascript.md demo/demo-javascript/
Java docs/java.md demo/demo-java/
C# docs/csharp.md demo/demo-csharp/
Rust docs/rust.md demo/demo-rust/
langchain-mq9 docs/langchain-mq9.md demo/demo-langchain-mq9/

Running the demo

Each demo is a standalone project that connects to nats://demo.robustmq.com:4222 and runs the same scenario:

  1. Create a private mailbox (TTL 60s)
  2. Send 3 messages (high / normal / low priority)
  3. Subscribe and print received messages
  4. List mailbox metadata, delete one message
  5. Create a public mailbox
# Python
cd demo/demo-python && pip install -r requirements.txt && python demo.py

# Go
cd demo/demo-go && go run .

# JavaScript
cd demo/demo-javascript && npm install && npm start

# Java
cd demo/demo-java && mvn compile exec:java

# Rust
cd demo/demo-rust && cargo run

# C#
cd demo/demo-csharp && dotnet run

# langchain-mq9
cd demo/demo-langchain-mq9 && pip install -r requirements.txt && python demo.py

Repository layout

python/                   # Python SDK
go/                       # Go SDK
javascript/               # JavaScript/TypeScript SDK
java/                     # Java SDK
csharp/                   # C# SDK
rust/                     # Rust SDK
langchain-mq9/            # LangChain integration package
docs/                     # SDK docs + protocol spec
demo/
  demo-python/            # Python standalone demo
  demo-go/                # Go standalone demo
  demo-javascript/        # JavaScript standalone demo
  demo-java/              # Java standalone demo (Maven)
  demo-rust/              # Rust standalone demo
  demo-csharp/            # C# standalone demo
  demo-langchain-mq9/     # langchain-mq9 demo
VERSION                   # Canonical version (currently 0.3.5)

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.5 126 4/9/2026