All configurable settings for agents, relay, and bridge.
Set via AgentNodeBuilder methods or CLI flags.
| Setting | Default | Builder method | CLI flag |
|---|
| Agent name | Required | .name("x") | --name x |
| Relay address | relay.subway.dev:9000 | .relay("host:port") | --relay host:port |
| Key path | .subway/keys | .key_path("/path") | — |
| mDNS discovery | Off | .with_mdns() | — |
| DHT discovery | Off | .with_dht() | — |
| JSONL output | Off | — | --jsonl |
| Control socket | On | — | --no-ctl |
| Setting | Default | Description |
|---|
| Listen address | 0.0.0.0:9000 | QUIC/WebTransport listener |
| HTTP port | 9001 | Health check + REST bridge |
| Identity path | .subway/relay-keys | Keypair storage |
| Max connections | 1,000,000 | Connection limit |
| Max reservations | 1,000,000 | Circuit reservation limit |
| Setting | Default | CLI flag | Description |
|---|
| Listen port | 9002 | --port N | REST + WebSocket port |
| Relay address | relay.subway.dev:9000 | --relay host:port | Relay to connect to |
These are compiled into the binary and not configurable at runtime:
| Constant | Value | Location |
|---|
RELAY_CONNECT_TIMEOUT | 10s | subway-core/src/node.rs |
RPC_DEFAULT_TIMEOUT | 30s | subway-core/src/node.rs |
NAME_RENEWAL_INTERVAL | 30s | subway-core/src/node.rs |
RECONNECT_INITIAL_DELAY | 1s | subway-core/src/node.rs |
RECONNECT_MAX_DELAY | 30s | subway-core/src/node.rs |
RECONNECT_MAX_ATTEMPTS | 10 | subway-core/src/node.rs |
NAME_RENEWAL_MAX_FAILURES | 5 | subway-core/src/node.rs |
| Variable | Used by | Description |
|---|
RUST_LOG | All | Log level (info, debug, subway_core=debug) |
SUBWAY_INSTALL_DIR | install.sh | Custom install directory |
SUBWAY_NO_BREW | install.sh | Force binary install over Homebrew |
SUBWAY_VERSION | install.sh | Install specific version |
| Level | What you see |
|---|
error | Dispatcher errors, exhausted reconnects |
warn | Renewal failures, decode errors |
info | Agent ready, relay events, reconnections |
debug | Detailed networking (very verbose) |
RUST_LOG=info subway agent --name test.relay
RUST_LOG=subway_core=debug subway agent --name test.relay