# Installation and run

The Github repo of RPCHub is <https://github.com/BlockPILabs/aggregator>

Following these simple steps to download and install RPCHub

### Prerequisite

RPCHub is developed by Go. Before installation, check your Go version or install Go language from the official site. <https://go.dev/doc/install>

### Installation

{% tabs %}
{% tab title="Linux" %}

```
//If you have old configurations and want to start over, delete it first
rm -rf $HOME/.rpchub/aggregator/

// git from source and make
git clone https://github.com/BlockPILabs/aggregator.git
cd aggregator
make

//start the aggregator
build/aggregator
```

{% endtab %}

{% tab title="Mac and Windows" %}
Download the latest installation package from [here](https://github.com/BlockPILabs/aggregator/releases).

If you have old configurations and want to start over, delete it first. Directory should be `/usr/.rpchub/`
{% endtab %}
{% endtabs %}

RPCHub will show a initial log like this if it is successfully started.

<figure><img src="/files/0K1vSc5UFgNtrbfRLAER" alt=""><figcaption></figcaption></figure>

The available chains are listed in the log. (e.g. <mark style="color:blue;"><http://localhost:8011/ethereum></mark>)Now you can use the local endpoint to send RPC requests. Check [Use RPCHub in MetaMask](/user-guide/use-rpchub-in-metamask.md)as an example to set the local endpoint in MetaMask.&#x20;


---

# Agent Instructions: 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:

```
GET https://docs.rpchub.io/user-guide/installation-and-run.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
