> For the complete documentation index, see [llms.txt](https://docs.graphlinq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphlinq.io/dev-tooling/engine/running-an-engine-locally.md).

# Running an Engine locally

Once you have prepared your own environment, you need to download and setup the Engine.

Download the Engine from the official GraphLinq repository:

```
git clone https://github.com/GraphLinq/GraphLinq.Engine
```

Install the required [Nuget](https://www.nuget.org/) packages to load the Engine through the interface or on CLI:

```
dotnet restore
```

Then you need to setup the init variables:

```
redis_master_addr=REDIS_SERVER_HOST {ex: "localhost"}redis_master_port=REDIS_SERVER_PORT {ex: 6379}redis_master_passw=REDIS_SERVER_PASSWORD {ex: 12345}eth_api_http_url=ETH_HTTP_NODE {ex: "https://mainnet.infura.io/v3/xxx"}eth_api_ws_url=ETH_WS_NODE {ex: "wss://mainnet.infura.io/ws/v3/xxx"}mariadb_uri=MARIA_URI {ex: "Server=localhost;Database=graphlinq;User=root;Password=superp@ssw0rd;Port=3306;Max Pool Size=50;Connection Timeout=60;"}factor_decimal=DECIMAL_USED_FOR_GAS {ex: "1000000000000000000"}
```

Next step is to load the Engine by running it through CLI or Visual Studio Interface

If you have something look alike as an output, you're engine is up and ready to handle new graphs, congratulations!\
The next step is to use the embedded internal API within the Engine code to deploy and start your local graphs directly.

Doing this will also make you eligible to earn GLQ as rewards since nodes will be notified that you're contributing to the network by running on-chain processor and executing graphs on-chain.&#x20;

[<br>](https://docs.graphlinq.io/engine/1-index)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.graphlinq.io/dev-tooling/engine/running-an-engine-locally.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
