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
Each machine makes one outgoing TLS connection to the relay (TCP by default, gRPC as a fallback). When Agent A opens a session to Agent B, the relay carries it over those connections; the session moves to a direct UDP path between the two machines when both ends ask for it and their networks allow, and back to the relay when that path fails. Neither agent needs to accept inbound connections.
CLI Examples
Both machines are enrolled in your organisation (nfltr machines add on the issuer's machine, then nfltr join on the new one); each service admits the clients your organisation's access rules let use it, here group ops on agent-b (once, on the root's machine: nfltr access allow ops 'agent-b/*'). A service is reached as <machine>/<service>, here agent-b/<service>.
Send a message
# On Agent B: serve one session on the terminal
nfltr serve inbox --e2ee
# From Agent A: open it; what you type appears on Agent B, both ways
nfltr pipe agent-b/inbox
Run a command
# On Agent B: run one fixed command per session (no shell, no client arguments)
nfltr serve status --exec --e2ee -- systemctl status nginx
# From Agent A: its output arrives on stdout; a non-zero exit is exit 11
nfltr pipe agent-b/status
Send a file
# On Agent B: receive one transfer into a directory
nfltr serve drop --recv ./inbox --once --e2ee
# From Agent A: files and directories, one stream
nfltr 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. Sessions run over each machine's outgoing connection to the relay, or on a direct path when one forms.
📦 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
- IoT fleet coordination — Send configuration updates or commands to specific edge devices.
- Distributed CI/CD — Trigger builds on remote build servers, collect results back.
- Multi-site operations — Coordinate actions between agents in different datacenters or offices.
- File distribution — Push binaries, configs, or data files to remote agents without external transfer services.
Connect your agents
Bidirectional messaging between any two agents — zero firewall changes.
CLI Reference Send files and messages →