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

# Connect a Livepeer Gateway on Docker, Linux, or Windows

> Connect your Livepeer Gateway to the network. Orchestrator discovery, selection tuning, and service publication for Docker, Linux, and Windows.

# &#x20;Connect Your Gateway

Connect your Livepeer Gateway to Orchestrators and the network for {video()}, {ai()} Pipelines, or {dual()} service routing.

*This guide covers:*

* {offChain()} **manual connection** via `-orchAddr` (pin specific Orchestrators)
* {onChain()} **automatic discovery** via the Livepeer network on Arbitrum
* **Verification** that Orchestrators are discovered and reachable
* **Service publication** to make the Gateway accessible to clients
* **Selection tuning** for price caps, performance scoring, and blocklists

> [!TIP]
>
> Complete the [Install](/v2/gateways/setup/install.md) and [Configure](/v2/gateways/setup/configure.md) steps before connecting. Once connected, proceed to [Verify](/v2/gateways/setup/verify.md) to confirm end-to-end operation.

> [tab] Docker
>
> ## &#x20;Docker Connection
>
> {dockerGroup()}
>
> ### 1. Connect to Orchestrators
>
> Choose how the Gateway discovers Orchestrators based on your operational mode.
>
> > [tab] Off-Chain
> >
> > Off-chain Gateways connect to Orchestrators manually via the `-orchAddr` flag.
> >
> > Add the flag to your `docker-compose.yml` under the `command` section:
> >
> > ```yaml icon="docker" title="docker-compose.yml" theme={null}
> > command:
> >   - -gateway
> >   - -orchAddr=https://orch1.example.com:8935,https://orch2.example.com:8935
> >   - -httpAddr=0.0.0.0:8935
> >   - -rtmpAddr=0.0.0.0:1935
> > ```
> >
> > The Gateway round-robins across the listed Orchestrators and does not discover others. This trades flexibility for predictability: you know exactly which Orchestrators handle jobs and can vet each one before adding it.
> >
> > **Finding AI-capable Orchestrators:**
> >
> > * [Livepeer Explorer AI Leaderboard](https://explorer.livepeer.org/leaderboard) for live performance data
> >
> > * [Livepeer Tools](https://tools.livepeer.cloud) for community dashboard with Orchestrator capabilities
> >
> > * The `/getNetworkCapabilities` endpoint on any on-chain Gateway, filtered by pipeline and model
> >
> > > [!TIP]
> > >
> > > For production AI workloads, pinning Orchestrators with `-orchAddr` is the recommended approach. It gives full control over which Orchestrators handle inference jobs.
>
> > [tab] On-Chain
> >
> > On-chain Gateways discover Orchestrators automatically from the Livepeer network on Arbitrum.
> >
> > Set the network and Ethereum RPC in your `docker-compose.yml`:
> >
> > ```yaml icon="docker" title="docker-compose.yml" theme={null}
> > command:
> >   - -gateway
> >   - -network=arbitrum-one-mainnet
> >   - -ethUrl=https://arb1.arbitrum.io/rpc
> >   - -ethKeystorePath=/root/.lpData/keystore
> >   - -httpAddr=0.0.0.0:8935
> >   - -rtmpAddr=0.0.0.0:1935
> > ```
> >
> > The Gateway creates a `DBOrchestratorPoolCache` that:
> >
> > * Queries the BondingManager smart contract for all registered Orchestrators
> >
> > * Fetches their capabilities, pricing, and performance metrics
> >
> > * Updates the list every 25 minutes
> >
> > * Handles failures by trying alternative Orchestrators
> >
> > > [!NOTE]
> > >
> > > On-chain discovery requires ETH in the Gateway account for transactions. Without funds, the Gateway shows "No orchestrator specified; transcoding will not happen".
> >
> > **For AI workloads on-chain**, add the `-aiServiceRegistry` flag to register with the [AIServiceRegistry](https://arbiscan.io/address/0x04C0b249740175999E5BF5c9ac1dA92431EF34C5) contract:
> >
> > ```yaml icon="docker" title="docker-compose.yml (AI registry)" theme={null}
> > command:
> >   - -gateway
> >   - -network=arbitrum-one-mainnet
> >   - -ethUrl=https://arb1.arbitrum.io/rpc
> >   - -ethKeystorePath=/root/.lpData/keystore
> >   - -aiServiceRegistry
> >   - -httpAddr=0.0.0.0:8935
> > ```
> >
> > This enables automatic Orchestrator discovery for AI workloads without maintaining a manual `-orchAddr` list.
>
> ### 1. Verify Discovery
>
> After starting the Gateway, confirm Orchestrators are discovered.
>
> **Check discovered Orchestrators:**
>
> ```bash icon="terminal" title="List Orchestrators" theme={null}
> curl http://localhost:5935/getOrchestrators
> ```
>
> The response should list at least one Orchestrator with pricing information. An empty list means discovery has not completed or no Orchestrators match the price filters.
>
> **Check network capabilities (AI models and pipelines):**
>
> ```bash icon="terminal" title="Network Capabilities" theme={null}
> curl http://localhost:8935/getNetworkCapabilities | python3 -m json.tool
> ```
>
> **Filter for a specific AI model:**
>
> ```bash icon="terminal" title="Filter by Model" theme={null}
> curl -s http://localhost:8935/getNetworkCapabilities | \
>   jq '.orchestrators[] | select(.capabilities_prices[].model_id == "ByteDance/SDXL-Lightning")'
> ```
>
> > [tab] Off-Chain
> >
> > > [!WARNING]
> > >
> > > If no Orchestrators appear, verify each `-orchAddr` URL is reachable:
> > >
> > > ```bash icon="terminal" title="Test Orchestrator Reachability" theme={null}
> > > curl https://orch.example.com:8935/getOrchestratorInfo
> > > ```
>
> > [tab] On-Chain
> >
> > > [!WARNING]
> > >
> > > If no Orchestrators appear after 2 minutes, check container logs for Ethereum connection errors:
> > >
> > > ```bash icon="terminal" title="Check Gateway Logs" theme={null}
> > > docker logs <container_name> --tail 50
> > > ```
>
> ### 1. Service Publication
>
> To make the Gateway reachable by external clients and applications, configure the advertised service address.
>
> ```yaml icon="docker" title="docker-compose.yml" theme={null}
> command:
>   - -gateway
>   - -serviceAddr=gateway.example.com:8935
>   - -gatewayHost=gateway.example.com
> ```
>
> * `-serviceAddr` is the address the Gateway advertises to Orchestrators and clients
> * `-gatewayHost` is the external hostname used in API responses
>
> For a public Gateway, this must be an externally resolvable DNS name, not `localhost` or an internal IP.
>
> > [!NOTE]
> >
> > **Video Gateways:** `-serviceAddr` is the address Orchestrators use to report transcoded results back. It must be publicly reachable on port 8935.
> >
> > **AI Gateways:** register on-chain with `-aiServiceRegistry` for automatic discovery by AI Orchestrators.
>
> **DNS setup:**
>
> Point a subdomain at the Gateway server's public IP:
>
> ```txt icon="wrench" title="DNS Record" theme={null}
> ai-gateway.yourdomain.com.   A   <server-ip>
> ```
>
> External clients must reach the Gateway over HTTPS. Set up TLS termination via a reverse proxy (Caddy, Nginx, or a cloud load balancer) before the service port.
>
> ### 1. Tune Selection
>
> The default selection algorithm works out of the box. For production workloads, these flags give more control.
>
> **Performance scoring:**
>
> ```yaml icon="docker" title="docker-compose.yml (scoring)" theme={null}
> command:
>   - -orchPerfStatsUrl=https://leaderboard.livepeer.org/api/aggregated_stats
>   - -minPerfScore=0.8
> ```
>
> Excludes Orchestrators below the minimum score. Scores come from live transcoding tests on the community leaderboard.
>
> **Price caps:**
>
> ```yaml icon="docker" title="docker-compose.yml (price caps)" theme={null}
> command:
>   # Video
>   - -maxPricePerUnit=5000
>   # AI (per-capability)
>   - -maxPricePerCapability=[{"pipeline":"text-to-image","model_id":"black-forest-labs/FLUX.1-dev","price_per_unit":100,"pixels_per_unit":1000000}]
> ```
>
> **Blocklist:**
>
> ```yaml icon="docker" title="docker-compose.yml (blocklist)" theme={null}
> command:
>   - -orchBlocklist=0xAbCd1234...,0xEfGh5678...
> ```
>
> Excludes specific Orchestrators from all routing.
>
> > [card] [Orchestrator Selection Guide](/v2/gateways/guides/advanced-operations/orchestrator-selection.md)
> >
> > Full guide to scoring weights, tiering strategies, and failover configuration.
>
> > [card] [Next: Verify your Gateway](/v2/gateways/setup/verify.md)
> >
> > Run health checks and end-to-end tests to confirm the Gateway is routing jobs.

> [tab] Linux
>
> ## &#x20;Linux Connection
>
> {linuxGroup()}
>
> ### 1. Connect to Orchestrators
>
> Choose how the Gateway discovers Orchestrators based on your operational mode.
>
> > [tab] Off-Chain
> >
> > Off-chain Gateways connect to Orchestrators manually via the `-orchAddr` flag.
> >
> > Add the flag to your startup command:
> >
> > ```bash icon="terminal" title="Off-Chain Startup" theme={null}
> > livepeer \
> >   -gateway \
> >   -orchAddr https://orch1.example.com:8935,https://orch2.example.com:8935 \
> >   -httpAddr 0.0.0.0:8935 \
> >   -rtmpAddr 0.0.0.0:1935
> > ```
> >
> > The Gateway round-robins across the listed Orchestrators and does not discover others. This trades flexibility for predictability: you know exactly which Orchestrators handle jobs and can vet each one before adding it.
> >
> > **Finding AI-capable Orchestrators:**
> >
> > * [Livepeer Explorer AI Leaderboard](https://explorer.livepeer.org/leaderboard) for live performance data
> >
> > * [Livepeer Tools](https://tools.livepeer.cloud) for community dashboard with Orchestrator capabilities
> >
> > * The `/getNetworkCapabilities` endpoint on any on-chain Gateway, filtered by pipeline and model
> >
> > > [!TIP]
> > >
> > > For production AI workloads, pinning Orchestrators with `-orchAddr` is the recommended approach. It gives full control over which Orchestrators handle inference jobs.
>
> > [tab] On-Chain
> >
> > On-chain Gateways discover Orchestrators automatically from the Livepeer network on Arbitrum.
> >
> > Set the network and Ethereum RPC in your startup command:
> >
> > ```bash icon="terminal" title="On-Chain Startup" theme={null}
> > livepeer \
> >   -gateway \
> >   -network arbitrum-one-mainnet \
> >   -ethUrl https://arb1.arbitrum.io/rpc \
> >   -ethKeystorePath ~/.lpData/keystore \
> >   -httpAddr 0.0.0.0:8935 \
> >   -rtmpAddr 0.0.0.0:1935
> > ```
> >
> > The Gateway creates a `DBOrchestratorPoolCache` that:
> >
> > * Queries the BondingManager smart contract for all registered Orchestrators
> >
> > * Fetches their capabilities, pricing, and performance metrics
> >
> > * Updates the list every 25 minutes
> >
> > * Handles failures by trying alternative Orchestrators
> >
> > > [!NOTE]
> > >
> > > On-chain discovery requires ETH in the Gateway account for transactions. Without funds, the Gateway shows "No orchestrator specified; transcoding will not happen".
> >
> > **For AI workloads on-chain**, add the `-aiServiceRegistry` flag to register with the [AIServiceRegistry](https://arbiscan.io/address/0x04C0b249740175999E5BF5c9ac1dA92431EF34C5) contract:
> >
> > ```bash icon="terminal" title="On-Chain with AI Registry" theme={null}
> > livepeer \
> >   -gateway \
> >   -network arbitrum-one-mainnet \
> >   -ethUrl https://arb1.arbitrum.io/rpc \
> >   -ethKeystorePath ~/.lpData/keystore \
> >   -aiServiceRegistry \
> >   -httpAddr 0.0.0.0:8935
> > ```
> >
> > This enables automatic Orchestrator discovery for AI workloads without maintaining a manual `-orchAddr` list.
>
> ### 1. Verify Discovery
>
> After starting the Gateway, confirm Orchestrators are discovered.
>
> **Check discovered Orchestrators:**
>
> ```bash icon="terminal" title="List Orchestrators" theme={null}
> curl http://localhost:5935/getOrchestrators
> ```
>
> The response should list at least one Orchestrator with pricing information. An empty list means discovery has not completed or no Orchestrators match the price filters.
>
> **Check network capabilities (AI models and pipelines):**
>
> ```bash icon="terminal" title="Network Capabilities" theme={null}
> curl http://localhost:8935/getNetworkCapabilities | python3 -m json.tool
> ```
>
> **Filter for a specific AI model:**
>
> ```bash icon="terminal" title="Filter by Model" theme={null}
> curl -s http://localhost:8935/getNetworkCapabilities | \
>   jq '.orchestrators[] | select(.capabilities_prices[].model_id == "ByteDance/SDXL-Lightning")'
> ```
>
> > [tab] Off-Chain
> >
> > > [!WARNING]
> > >
> > > If no Orchestrators appear, verify each `-orchAddr` URL is reachable:
> > >
> > > ```bash icon="terminal" title="Test Orchestrator Reachability" theme={null}
> > > curl https://orch.example.com:8935/getOrchestratorInfo
> > > ```
>
> > [tab] On-Chain
> >
> > > [!WARNING]
> > >
> > > If no Orchestrators appear after 2 minutes, check process logs for Ethereum connection errors:
> > >
> > > ```bash icon="terminal" title="Check Gateway Logs" theme={null}
> > > journalctl -u livepeer --tail 50
> > > ```
>
> ### 1. Service Publication
>
> To make the Gateway reachable by external clients and applications, configure the advertised service address.
>
> ```bash icon="terminal" title="Service Address Flags" theme={null}
> livepeer \
>   -gateway \
>   -serviceAddr gateway.example.com:8935 \
>   -gatewayHost gateway.example.com \
>   ...
> ```
>
> * `-serviceAddr` is the address the Gateway advertises to Orchestrators and clients
> * `-gatewayHost` is the external hostname used in API responses
>
> For a public Gateway, this must be an externally resolvable DNS name, not `localhost` or an internal IP.
>
> > [!NOTE]
> >
> > **Video Gateways:** `-serviceAddr` is the address Orchestrators use to report transcoded results back. It must be publicly reachable on port 8935. If behind NAT, configure port forwarding.
> >
> > **AI Gateways:** register on-chain with `-aiServiceRegistry` for automatic discovery by AI Orchestrators.
>
> **DNS setup:**
>
> Point a subdomain at the Gateway server's public IP:
>
> ```txt icon="wrench" title="DNS Record" theme={null}
> ai-gateway.yourdomain.com.   A   <server-ip>
> ```
>
> External clients must reach the Gateway over HTTPS. Set up TLS termination via a reverse proxy (Caddy, Nginx, or a cloud load balancer) before the service port.
>
> **systemd service file example:**
>
> If running as a systemd service, add the flags to the `ExecStart` line:
>
> ```ini icon="cog" title="livepeer.service" theme={null}
> [Service]
> ExecStart=/usr/local/bin/livepeer \
>   -gateway \
>   -serviceAddr gateway.example.com:8935 \
>   -gatewayHost gateway.example.com \
>   -network arbitrum-one-mainnet \
>   -ethUrl https://arb1.arbitrum.io/rpc \
>   -ethKeystorePath /home/livepeer/.lpData/keystore \
>   -httpAddr 0.0.0.0:8935
> ```
>
> ### 1. Tune Selection
>
> The default selection algorithm works out of the box. For production workloads, these flags give more control.
>
> **Performance scoring:**
>
> ```bash icon="terminal" title="Performance Scoring Flags" theme={null}
> livepeer \
>   -gateway \
>   -orchPerfStatsUrl https://leaderboard.livepeer.org/api/aggregated_stats \
>   -minPerfScore 0.8 \
>   ...
> ```
>
> Excludes Orchestrators below the minimum score. Scores come from live transcoding tests on the community leaderboard.
>
> **Price caps:**
>
> ```bash icon="terminal" title="Price Cap Flags" theme={null}
> # Video
> -maxPricePerUnit 5000
>
> # AI (per-capability)
> -maxPricePerCapability '[{"pipeline":"text-to-image","model_id":"black-forest-labs/FLUX.1-dev","price_per_unit":100,"pixels_per_unit":1000000}]'
> ```
>
> **Blocklist:**
>
> ```bash icon="terminal" title="Blocklist Flag" theme={null}
> -orchBlocklist 0xAbCd1234...,0xEfGh5678...
> ```
>
> Excludes specific Orchestrators from all routing.
>
> > [card] [Orchestrator Selection Guide](/v2/gateways/guides/advanced-operations/orchestrator-selection.md)
> >
> > Full guide to scoring weights, tiering strategies, and failover configuration.
>
> > [card] [Next: Verify your Gateway](/v2/gateways/setup/verify.md)
> >
> > Run health checks and end-to-end tests to confirm the Gateway is routing jobs.

> [tab] Windows
>
> ## &#x20;Windows Connection
>
> {windowsGroup()}
>
> ### 1. Connect to Orchestrators
>
> Choose how the Gateway discovers Orchestrators based on your operational mode.
>
> > [tab] Off-Chain
> >
> > Off-chain Gateways connect to Orchestrators manually via the `-orchAddr` flag.
> >
> > Add the flag to your startup command in PowerShell:
> >
> > ```powershell icon="terminal" title="Off-Chain Startup" theme={null}
> > .\livepeer.exe `
> >   -gateway `
> >   -orchAddr https://orch1.example.com:8935,https://orch2.example.com:8935 `
> >   -httpAddr 0.0.0.0:8935 `
> >   -rtmpAddr 0.0.0.0:1935
> > ```
> >
> > The Gateway round-robins across the listed Orchestrators and does not discover others. This trades flexibility for predictability: you know exactly which Orchestrators handle jobs and can vet each one before adding it.
> >
> > **Finding AI-capable Orchestrators:**
> >
> > * [Livepeer Explorer AI Leaderboard](https://explorer.livepeer.org/leaderboard) for live performance data
> >
> > * [Livepeer Tools](https://tools.livepeer.cloud) for community dashboard with Orchestrator capabilities
> >
> > * The `/getNetworkCapabilities` endpoint on any on-chain Gateway, filtered by pipeline and model
> >
> > > [!TIP]
> > >
> > > For production AI workloads, pinning Orchestrators with `-orchAddr` is the recommended approach. It gives full control over which Orchestrators handle inference jobs.
>
> > [tab] On-Chain
> >
> > On-chain Gateways discover Orchestrators automatically from the Livepeer network on Arbitrum.
> >
> > Set the network and Ethereum RPC in your startup command:
> >
> > ```powershell icon="terminal" title="On-Chain Startup" theme={null}
> > .\livepeer.exe `
> >   -gateway `
> >   -network arbitrum-one-mainnet `
> >   -ethUrl https://arb1.arbitrum.io/rpc `
> >   -ethKeystorePath C:\Users\<user>\.lpData\keystore `
> >   -httpAddr 0.0.0.0:8935 `
> >   -rtmpAddr 0.0.0.0:1935
> > ```
> >
> > The Gateway creates a `DBOrchestratorPoolCache` that:
> >
> > * Queries the BondingManager smart contract for all registered Orchestrators
> >
> > * Fetches their capabilities, pricing, and performance metrics
> >
> > * Updates the list every 25 minutes
> >
> > * Handles failures by trying alternative Orchestrators
> >
> > > [!NOTE]
> > >
> > > On-chain discovery requires ETH in the Gateway account for transactions. Without funds, the Gateway shows "No orchestrator specified; transcoding will not happen".
> >
> > **For AI workloads on-chain**, add the `-aiServiceRegistry` flag to register with the [AIServiceRegistry](https://arbiscan.io/address/0x04C0b249740175999E5BF5c9ac1dA92431EF34C5) contract:
> >
> > ```powershell icon="terminal" title="On-Chain with AI Registry" theme={null}
> > .\livepeer.exe `
> >   -gateway `
> >   -network arbitrum-one-mainnet `
> >   -ethUrl https://arb1.arbitrum.io/rpc `
> >   -ethKeystorePath C:\Users\<user>\.lpData\keystore `
> >   -aiServiceRegistry `
> >   -httpAddr 0.0.0.0:8935
> > ```
> >
> > This enables automatic Orchestrator discovery for AI workloads without maintaining a manual `-orchAddr` list.
>
> ### 1. Verify Discovery
>
> After starting the Gateway, confirm Orchestrators are discovered.
>
> **Check discovered Orchestrators:**
>
> > [tab] Off-Chain
> >
> > ```powershell icon="terminal" title="List Orchestrators (PowerShell)" theme={null}
> > Invoke-WebRequest -Uri http://localhost:5935/getOrchestrators | Select-Object -ExpandProperty Content
> > ```
> >
> > Or using `curl.exe`:
> >
> > ```powershell icon="terminal" title="List Orchestrators (curl)" theme={null}
> > curl.exe http://localhost:5935/getOrchestrators
> > ```
> >
> > > [!WARNING]
> > >
> > > If no Orchestrators appear, verify each `-orchAddr` URL is reachable:
> > >
> > > ```powershell icon="terminal" title="Test Orchestrator Reachability" theme={null}
> > > curl.exe https://orch.example.com:8935/getOrchestratorInfo
> > > ```
>
> > [tab] On-Chain
> >
> > ```powershell icon="terminal" title="List Orchestrators (PowerShell)" theme={null}
> > Invoke-WebRequest -Uri http://localhost:5935/getOrchestrators | Select-Object -ExpandProperty Content
> > ```
> >
> > Or using `curl.exe`:
> >
> > ```powershell icon="terminal" title="List Orchestrators (curl)" theme={null}
> > curl.exe http://localhost:5935/getOrchestrators
> > ```
> >
> > > [!WARNING]
> > >
> > > If no Orchestrators appear after 2 minutes:
> > >
> > > * Check the terminal output for Ethereum connection errors
> > > * Ensure Windows Firewall allows inbound/outbound on ports 8935 and 1935
>
> The response should list at least one Orchestrator with pricing information. An empty list means discovery has not completed or no Orchestrators match the price filters.
>
> **Check network capabilities (AI models and pipelines):**
>
> ```powershell icon="terminal" title="Network Capabilities" theme={null}
> curl.exe http://localhost:8935/getNetworkCapabilities
> ```
>
> This returns all discovered Orchestrators with their supported models, pricing, and hardware specifications.
>
> ### 1. Service Publication
>
> To make the Gateway reachable by external clients and applications, configure the advertised service address.
>
> ```powershell icon="terminal" title="Service Address Flags" theme={null}
> .\livepeer.exe `
>   -gateway `
>   -serviceAddr gateway.example.com:8935 `
>   -gatewayHost gateway.example.com `
>   ...
> ```
>
> * `-serviceAddr` is the address the Gateway advertises to Orchestrators and clients
> * `-gatewayHost` is the external hostname used in API responses
>
> For a public Gateway, this must be an externally resolvable DNS name, not `localhost` or an internal IP.
>
> > [!NOTE]
> >
> > **Video Gateways:** `-serviceAddr` is the address Orchestrators use to report transcoded results back. It must be publicly reachable on port 8935. Configure Windows Firewall to allow inbound traffic on this port.
> >
> > **AI Gateways:** register on-chain with `-aiServiceRegistry` for automatic discovery by AI Orchestrators.
>
> **DNS setup:**
>
> Point a subdomain at the Gateway server's public IP:
>
> ```txt icon="wrench" title="DNS Record" theme={null}
> ai-gateway.yourdomain.com.   A   <server-ip>
> ```
>
> External clients must reach the Gateway over HTTPS. Set up TLS termination via a reverse proxy before the service port.
>
> > [!WARNING]
> >
> > Windows is suitable for development and testing. For production deployments, Linux or Docker is recommended due to better performance, stability, and GPU driver compatibility.
>
> ### 1. Tune Selection
>
> The default selection algorithm works out of the box. For production workloads, these flags give more control.
>
> **Performance scoring:**
>
> ```powershell icon="terminal" title="Performance Scoring Flags" theme={null}
> .\livepeer.exe `
>   -gateway `
>   -orchPerfStatsUrl https://leaderboard.livepeer.org/api/aggregated_stats `
>   -minPerfScore 0.8 `
>   ...
> ```
>
> Excludes Orchestrators below the minimum score. Scores come from live transcoding tests on the community leaderboard.
>
> **Price caps:**
>
> ```powershell icon="terminal" title="Price Cap Flags" theme={null}
> # Video
> -maxPricePerUnit 5000
>
> # AI (per-capability)
> -maxPricePerCapability '[{\"pipeline\":\"text-to-image\",\"model_id\":\"black-forest-labs/FLUX.1-dev\",\"price_per_unit\":100,\"pixels_per_unit\":1000000}]'
> ```
>
> **Blocklist:**
>
> ```powershell icon="terminal" title="Blocklist Flag" theme={null}
> -orchBlocklist 0xAbCd1234...,0xEfGh5678...
> ```
>
> Excludes specific Orchestrators from all routing.
>
> > [card] [Orchestrator Selection Guide](/v2/gateways/guides/advanced-operations/orchestrator-selection.md)
> >
> > Full guide to scoring weights, tiering strategies, and failover configuration.
>
> > [card] [Next: Verify your Gateway](/v2/gateways/setup/verify.md)
> >
> > Run health checks and end-to-end tests to confirm the Gateway is routing jobs.

## Orchestrator Discovery Overview

Gateways discover Orchestrators through two mechanisms, depending on the operational mode.

> [tab] Off-chain (manual)
>
> Off-chain Gateways use a static list of known Orchestrators passed via `-orchAddr`. The Gateway round-robins across this list and does not discover others.
>
> This is the recommended approach for:
>
> * Production AI workloads where you need control over which Orchestrators handle inference
> * Private deployments that do not interact with the public network
> * Testing environments with a known Orchestrator
>
> To update the list, restart the Gateway with a modified `-orchAddr` value. For dynamic updates without restarts, use `-orchWebhookUrl` instead.

> [tab] On-chain (automatic)
>
> On-chain Gateways discover Orchestrators automatically by querying the BondingManager smart contract on Arbitrum. The Gateway:
>
> 1. Queries all registered Orchestrators from the contract
> 2. Fetches capabilities, pricing, and performance metrics from each
> 3. Filters by price limits (`-maxPricePerUnit`, `-maxPricePerCapability`)
> 4. Scores candidates using stake, price, and randomness weights
> 5. Updates the pool every 25 minutes
>
> This requires an Arbitrum RPC connection (`-ethUrl`) and ETH in the Gateway account for transactions.
>
> For AI workloads, add `-aiServiceRegistry` to register with the on-chain AI service registry and enable automatic AI Orchestrator discovery.

## Related Pages

> [card] [Orchestrator Selection](/v2/gateways/guides/advanced-operations/orchestrator-selection.md)
>
> Scoring weights, tiering strategies, failover, and blocklists.

> [card] [Gateway Discoverability](/v2/gateways/guides/advanced-operations/gateway-discoverability.md)
>
> DNS, HTTPS, capability advertising, and on-chain registration.

> [card] [Marketplace Overview](/v2/gateways/setup/connect/lp-marketplace)
>
> How Orchestrators publish offerings and Gateways discover them.

> [card] [Configuration Flags](/v2/gateways/resources/reference/technical/configuration-flags.md)
>
> Full reference for all Gateway configuration flags.


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