Agent-to-Agent Communication A2A

Send messages, files, and commands between any two NFLTR agents — even behind NAT, firewalls, or in different cloud VPCs. No port forwarding, no VPN, no direct IP connectivity required.

Tutorial: Send files and messages between machines


How It Works

Both agents maintain a persistent outgoing connection to the NFLTR server. When Agent A sends a message to Agent B, the server routes it through the existing backchannels. Neither agent needs to accept inbound connections.

AGENT A — SENDER Behind corporate firewall nfltr cat pipe b/inbox gRPC ← outbound NFLTR SERVER Message Dispatcher Auth check Route lookup Replica link across replicas AGENT B — RECEIVER Behind home NAT Message received gRPC ← outbound

CLI Examples

Both machines are enrolled in your organisation (nfltr org join); each service admits a group, here ops. A service on machine agent-b is reached as agent-b.agent-b/<service>.

Send a message

# On Agent B: serve one session on the terminal
nfltr cat serve inbox --allow-group ops

# From Agent A: open it; what you type appears on Agent B, both ways
nfltr cat pipe agent-b/inbox

Run a command

# On Agent B: run one fixed command per session (no shell, no client arguments)
nfltr cat serve status --exec --allow-group ops -- systemctl status nginx

# From Agent A: its output arrives on stdout; a non-zero exit is exit 11
nfltr cat pipe agent-b/status

Send a file

# On Agent B: receive one transfer into a directory
nfltr cat serve drop --recv ./inbox --once --allow-group ops

# From Agent A: files and directories, one stream
nfltr cat cp config.yaml agent-b/drop

Capabilities

🔐 Authenticated

Both agents must have valid credentials. The server verifies identities before routing.

🌐 NAT Traversal

Neither agent opens inbound ports. All communication flows through the persistent outbound gRPC tunnel.

📦 Multi-Type

Send text messages, files, or commands. The receiver processes each type appropriately.

🔀 Multi-Replica Routing

Works across replicas of one relay: the replica link forwards a session, so Agent A and Agent B can be connected to different replicas.

🔑 SSH Integration

Combine with SSH tunneling for full remote shell access between agents. With the embedded SSH server, ssh checks the organisation's host certificate: no host keys to distribute.

Use Cases

Connect your agents

Bidirectional messaging between any two agents — zero firewall changes.

CLI Reference Send files and messages →