> ## Documentation Index
> Fetch the complete documentation index at: https://dromeus.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up AXL for a group across machines

> Configure the AXL network node beside each Dromeus node: a persistent identity key, a public bootstrap peer, outbound-only nodes behind NAT, and checks.

Every Dromeus node talks to the network through [AXL](https://github.com/gensyn-ai/axl), Gensyn's peer-to-peer network node. AXL runs as a separate process on each machine, encrypts and routes traffic between machines, and gives Dromeus a local HTTP bridge. It runs entirely in user space: it needs no TUN interface and no root access. This guide sets up AXL for a group whose machines are on different networks.

## How the pieces connect

* Each machine runs one AXL node and one Dromeus node.
* Dromeus reaches its AXL node over HTTP on loopback, at the `axl_bridge_url` in its [node configuration](https://dromeus.mintlify.site/reference/configuration.md#node-configuration).
* AXL nodes link to each other over TLS. A node only needs a link to one other node in the group: AXL routes traffic onward. In the [quickstart](https://dromeus.mintlify.site/quickstart.md), three nodes link only to the fourth and still train together.
* At least one node must accept incoming links. It is the group's **bootstrap peer**. Any participant with an open port can be one; Dromeus hosts nothing.

## 1. Get the AXL node

On Linux (x86\_64, aarch64) and macOS on Apple silicon, installing Dromeus installs a pinned AXL build as the `dromeus-axl` command. See [Installation](https://dromeus.mintlify.site/installation.md#axl-platforms). On other platforms, [build it from source](#other-platforms).

## 2. Create a persistent identity

An AXL node's identity is an ed25519 key. Without a key file, AXL creates a new identity in memory every time it starts. That is fine for a one-machine trial, but in a real group each node's public key is sealed into the run manifest, so a node must keep the same key for the whole run.

> [tab] Linux
>
> ```bash theme={null}
> openssl genpkey -algorithm ed25519 -out private.pem
> chmod 600 private.pem
> ```

> [tab] macOS
>
> The `openssl` that ships with macOS (LibreSSL) can't generate ed25519 keys. Use OpenSSL from Homebrew:
>
> ```bash theme={null}
> brew install openssl
> "$(brew --prefix openssl)/bin/openssl" genpkey -algorithm ed25519 -out private.pem
> chmod 600 private.pem
> ```

Keep `private.pem` private. Anyone with it can act as your node.

## 3. Write the AXL configuration

> [tab] Bootstrap peer
>
> Use this on the machine that accepts incoming links. It needs a public address, and its firewall must allow inbound TCP on the listen port.
>
> ```json axl.json theme={null}
> {
>   "PrivateKeyPath": "private.pem",
>   "Peers": [],
>   "Listen": ["tls://0.0.0.0:9001"],
>   "api_port": 9002,
>   "bridge_addr": "127.0.0.1"
> }
> ```

> [tab] Outbound only (behind NAT)
>
> Use this on machines that can't accept incoming connections, such as a laptop or a machine behind a home router. It connects out to the bootstrap peer and receives data over the same connection, so it needs no port forwarding.
>
> ```json axl.json theme={null}
> {
>   "PrivateKeyPath": "private.pem",
>   "Peers": ["tls://BOOTSTRAP_PEER_ADDRESS:9001"],
>   "Listen": [],
>   "api_port": 9002,
>   "bridge_addr": "127.0.0.1"
> }
> ```
>
> Replace `BOOTSTRAP_PEER_ADDRESS` with the bootstrap peer's public IP address or host name. To survive one bootstrap peer going down, run more than one and list each in `Peers`.

| Field | Meaning | Default |
| - | - | - |
| `PrivateKeyPath` | The node's ed25519 key | A new key in memory at every start |
| `Peers` | Nodes to connect out to, as `tls://host:port` | None |
| `Listen` | Addresses to accept incoming links on | None |
| `api_port` | Port of the HTTP bridge Dromeus uses | `9002` |
| `bridge_addr` | Address the HTTP bridge binds to | `127.0.0.1` |
| `max_message_size` | Largest message in bytes | `16777216` (16 MiB) |

AXL has more settings; see the [AXL configuration reference](https://github.com/gensyn-ai/axl/blob/main/docs/configuration.md).

> [!WARNING]
>
> Keep `bridge_addr` on `127.0.0.1`. Anything that can reach the bridge can send and receive as your node. Dromeus only accepts an `axl_bridge_url` on loopback.

## 4. Start AXL and check it

```bash theme={null}
dromeus-axl -config axl.json
```

Keep it running for the whole training run. Then point the node configuration's `axl_bridge_url` at the bridge, `http://127.0.0.1:9002` here, and run:

```bash theme={null}
dromeus doctor --config node.yaml
```

`doctor` checks that the bridge answers, that it reports this node's public key, and how many peer links are up. A node with an outbound-only configuration reports one link, to its bootstrap peer.

## Pinned AXL build

A group runs one AXL build. The draft records it in `environment.axl_version`, and `make_draft` fills it in from the bundled build: currently AXL commit `628e28ace077f26dfe8d0259009b357216a9d8d4`. `dromeus doctor` warns when the draft names a different build than the one installed. It can't see which build the running AXL process is, so make sure every machine runs the build the draft names.

## Other platforms

Where no AXL build is bundled, build the pinned commit with Go 1.25.5 or later:

```bash theme={null}
git clone https://github.com/gensyn-ai/axl.git
cd axl
git checkout 628e28ace077f26dfe8d0259009b357216a9d8d4
go build -o node ./cmd/node
./node -config axl.json
```

Whoever writes the draft on such a machine must name the build, because there is no bundled one to fill it in: `dromeus draft ... --axl-version 628e28ace077f26dfe8d0259009b357216a9d8d4`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.