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.


How It Works

Both agents maintain a persistent gRPC 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 a2a send "agent-b" gRPC ← outbound NFLTR SERVER Message Dispatcher Auth check Route lookup Redis pub/sub for multi-pod AGENT B — RECEIVER Behind home NAT Message received gRPC ← outbound

CLI Examples

Send a text message

# From Agent A: send to Agent B (identified by OPHID)
nfltr a2a send agent-b "deployment complete, ready for testing"

Send a command

# On Agent B: listen and execute commands
nfltr a2a listen --exec /bin/sh

# From Agent A: send a command to Agent B
nfltr a2a send agent-b "systemctl status nginx"

# Agent B executes via --exec and returns the output

Send a file

# For file transfer, use P2P direct transfer instead
nfltr p2p send config.yaml agent-b

# Or pipe file contents through A2A
cat config.yaml | nfltr a2a send agent-b

Listen for messages

# On Agent B: wait for incoming messages
nfltr a2a listen

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-Pod Routing

Works across NFLTR server pods via Redis pub/sub. Agent A and Agent B can be on different pods.

⚡ Low Latency

Reuses existing persistent gRPC connections. No connection setup overhead per message.

🔑 SSH Integration

Combine with SSH tunneling for full remote shell access between agents. No SSH keys to distribute.

Use Cases

💡 Combine with P2P for direct transfer

A2A routes through the server. For large file transfers or video calls, combine with P2P Direct Transfer to go peer-to-peer via WebRTC with no server relay.

Connect your agents

Bidirectional messaging between any two agents — zero firewall changes.

CLI Reference P2P Direct Transfer →