# Become a Guardian

### **Manas Network**

Manas network supports open ecosystem of Guardians to join & leave at their will without negatively impacting the network. Being a Guardian on the Manas means contributing to building a DA with customized privacy & security. A Guardian can also share their resources for performing compute or verification on the network helping grow the data, compute & AI ecosystem. The participants only need to follow the rules laid out in the runtime so that they do not face any negative economic impact.

### System Requirements

{% tabs %}
{% tab title="Standard Guardian" %}

| Resource     | Minimum        | Recommended                              |
| ------------ | -------------- | ---------------------------------------- |
| RAM          | 8 GB           | 16 GB                                    |
| Processor    | 8 cores        | 16 cores                                 |
| Disk         | 200 GB         | 1 TiB NVME                               |
| Bandwidth    | 1 Gbps         | 5 Gbps                                   |
| GPU          | -              | -                                        |
| Extras       | Virtualization | Virtualization, CPU TEE (Future Updates) |
| {% endtab %} |                |                                          |

{% tab title="Compute" %}

| Resource     | Minimum         | Recommended                                    |
| ------------ | --------------- | ---------------------------------------------- |
| RAM          | 16 GB           | 32 GB                                          |
| Processor    | 8 cores         | 16 cores                                       |
| Disk         | 200 GiB NVME    | 2 TiB NVME                                     |
| Bandwidth    | 5 Gbps          | 10 Gbps                                        |
| GPU          | Nvidia Tesla T4 | Nvidia Tesla T4 and above                      |
| Extras       | Virtualization  | Virtualization, CPU & GPU TEE (Future Updates) |
| {% endtab %} |                 |                                                |

{% tab title="Verifier" %}
*Coming in Future Updates*
{% endtab %}
{% endtabs %}

### Supported Platforms

The Palliora node client supports containerized environment for running a node. The container images are currently available for the following platforms -

* Linux/amd64 - Ubuntu 24.04
* Mac/arm64

### Pre-Requisites

* Docker
* Nvidia Drivers (only for Nvidia GPUs on Linux)
* Ollama (along with pre-installed models)
* NodeJs, npm
* Palliora-cli

#### **Install dependencies**

**Docker**\
Install docker on MacOS - <https://formulae.brew.sh/formula/docker>\
Install docker on Linux - <https://docs.docker.com/engine/install/>

**Nvidia Drivers**

```
sudo apt install nvidia-headless-535-server nvidia-utils-535-server -y
```

**Ollama**\
Download and install ollama from here - <https://ollama.com/download>

**NodeJs**\
Install nodejs environment - <https://nodejs.org/en/download>

*NOTE: Prefer install using nvm*

```
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install 22

# Verify the Node.js version:
node -v # Should print "v22.21.1".

# Verify npm version:
npm -v # Should print "10.9.4".
```

**Palliora-cli**

```
npm i -g @palliora.org/cli
```

### Setup a Guardian Node

The pre-requisites for an active Guardian participant requires them to do the following:

1. [Node client docker setup](#docker-compose-config)
2. [Ollama setup](#ollama-setup)
3. [Stake tokens on Manas](#bond-tokens)
4. [Provide node preferences](#guard) to activate the Guardian services

{% file src="<https://1889477862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG042xWWqiDkSJlg00aF9%2Fuploads%2FOmL60RfW01uOddVoYXKr%2Fpalliora-manas.json?alt=media&token=3607849f-1e73-4781-8d43-76ca7d23d9fe>" %}

{% file src="<https://1889477862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG042xWWqiDkSJlg00aF9%2Fuploads%2FtOOiuWqe4I4sXPyK8HHv%2Fdocker-compose.yml?alt=media&token=70e82985-5b92-44b6-83d3-934eb28feec4>" %}

#### **Docker-compose config**

1. Save the attached `palliora-manas.json`.
2. Save the attached `docker-compose.yml` .
3. Open a terminal where you have saved the downloaded files and run the following commands

#### **Command**

1. Store the docker login auth token in the Environment by executing&#x20;

   ```
   export AUTH_TOKEN=<auth-token-from-palliora>
   ```
2. Perform Docker login by executing

   ```
   echo $AUTH_TOKEN | docker login --username AWS --password-stdin 434856701645.dkr.ecr.us-east-1.amazonaws.com
   ```
3. Run the docker compose with following command:

   ```
   docker compose pull && docker compose up --force-recreate -d
   ```

#### Ollama setup

1. Pull relevant model (e.g. \`llama3.1:latest\`)

   ```
   ollama pull llama3.1:latest
   ```
2. Start ollama server

   ```
   ollama serve
   ```

#### Create an account

To create a fresh account, run the palliora-cli with following command

```
palliora-cli account-create
```

#### Get test tokens

Use the palliora-cli to receive test tokens on your new account. The following command funds your account with 1000 PALI tokens.

```
palliora-cli fund --amount 1005000
```

#### Bond Tokens

The next step is bonding PALI. A bonded account, holds your staked tokens (PALI) that back your guardian node. Bonding your PALI means locking it for a period, during which it cannot be transferred or spent but is used to secure your guardian's role in the network. The Minimum Bond Requirement is 1,000 PALI tokens.

\
The following sections will guide you through bonding PALI for your guardian.

#### Bonding PALI

Using the palliora-cli use the `stake-new` command to bond your tokens as follows:

```
# fresh stake of minimum guardian stake with default reward destination
palliora-cli stake-new --amount=1000000
```

(*Optional*) Node operators can increase/decrease their existing stake using this command.

```
palliora-cli stake-add --amount=10
palliora-cli stake-reduce --amount=10
```

The `amount` flag  signifies how much of PALI tokens will be staked. This value must be equal or greater than the minimum guardian stake. The parameters accepts floating values upto 18 decimal places.

The reward-destination gives the node operators an option to provide an alternate address to receive the stake rewards into. By default the account that is setup will receive the staking rewards but any valid address can be set as the reward destination using this option.

#### Guard

***NOTE: Wait for the chain to sync before performing the following action.***

Using the palliora-cli use the `join-guardian` command to participate as guardian (*NOTE: **Joining as a standard guardian with trusted compute services***):

```
PALLIORA_WS=ws://127.0.0.1:9944 palliora-cli join-guardian --standard --compute="trusted"
```


---

# 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.palliora.org/participate/become-a-guardian.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.
