> For the complete documentation index, see [llms.txt](https://docs.bloxroute.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bloxroute.com/bsc/gateway/gateway-installation.md).

# Installation Options

Users can run the bloXroute Local Gateway as a Docker container or use a local build based on the [GitHub repository](https://github.com/bloXroute-Labs/gateway).

If you are running a blockchain node, to ensure that your Gateway will be able to connect to it, we recommended you [add the Gateway as a trusted peer](broken://pages/-MIUhNlba_qzxp6pjk24) of your execution layer client.

After a successful installation, the will Gateway provide your node access to the BDN and will speed up block and transaction propagation to and from the node that it is peered with.

#### GitHub repository option

Pull the latest gateway version from our GitHub repository and install it locally.

{% embed url="<https://github.com/bloXroute-Labs/gateway>" %}

Building the gateway requires using Go (version 1.19 or later). You can install it using your favorite package manager. Once the dependencies are installed, run `make gateway`.

#### Docker container option

To pull the latest gateway version, run the following command:

```markup
docker pull bloxroute/bloxroute-gateway-go:latest
```

**Running your gateway**

To run your gateway, copy the command below and modify it as needed.

A full list of start up arguments is available in the [Startup Arguments page](broken://pages/-MlNxudohX6lybndPN4n).

```
docker run --name bxgateway-go -d \
-v <LOG_FILE_PATH>:/app/bloxroute/logs \
-v <SSL_CERT_PATH>:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go:latest \
--blockchain-network BSC-Mainnet \
--ws --port 1801 \
--enodes enode://<BLOCKCHAIN_NODE_PUBLIC_KEY>@<NODE_IP>:<NODE_PORT> \
--private-key <YOUR_PRIVATE_KEY> \
--eth-ws-uri ws://<ETH node IP address>:8546
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bloxroute.com/bsc/gateway/gateway-installation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
