> For the complete documentation index, see [llms.txt](https://docs.zerowave.my.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowave.my.id/testnet/chasm/installation.md).

# Installation

## Website

* [Scout Portal](https://scout.chasm.net/new-scout) -> Dashboard
* [Groq](https://console.groq.com/keys) -> Save API Key
* [Mint Badge](https://scout.chasm.net/private-mint) -> get badge need MNT mainnet token

## Install Requirement Packages

### Update Package

```bash
sudo apt update -y && sudo apt upgrade -y
sudo apt install ca-certificates zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev curl git wget make jq build-essential pkg-config lsb-release libssl-dev libreadline-dev libffi-dev gcc screen unzip lz4 -y
```

### Install Docker

[Docker](/packages/docker.md)

### Install Ngrok

{% content-ref url="/pages/cX4v8qHjSW1Q2of04Vc1" %}
[Ngrok](/packages/ngrok.md)
{% endcontent-ref %}

## Prerequisite

### Obtaining SCOUT\_UID and WEBHOOK\_API\_KEY

1. goto [Mint Badge](https://scout.chasm.net/private-mint)

<figure><img src="/files/4VQ8V90Q0AVEJAWYMKZG" alt=""><figcaption></figcaption></figure>

2. click \_*`mint(scout)`*

> at least you have 0.5 MNT in your wallet

3. Log in to the website and retrieve your webhook API key and UID as the first step.

<figure><img src="/files/Q2B16RTNL2CyMM8wmJXh" alt=""><figcaption></figcaption></figure>

### Obtaining groq API\_KEY

1. goto [Groq](https://console.groq.com/keys) and save API key

<figure><img src="/files/NuPKwFMgelA04YgizNoq" alt=""><figcaption></figcaption></figure>

### Obtaining ngrok free domain

```sh
screen -R ngrok
// it will return https://xxxxxxx.ngrok-free.app
// close the screen A + D 
```

## Install Chasm

### Pull chasm docker container

```bash
docker pull chasmtech/chasm-scout:latest
```

### Create `.env` file

```bash
mkdir chasm
nano .env
// copy this configuration
PORT=3001
LOGGER_LEVEL=debug

ORCHESTRATOR_URL=https://orchestrator.chasm.net
SCOUT_NAME=ZunXBT
SCOUT_UID=PASTE UID
WEBHOOK_API_KEY=PASTE API KEY
WEBHOOK_URL=PASTE NGROK FREE APP URL LINK HERE
PROVIDERS=groq
MODEL=gemma2-9b-it
GROQ_API_KEY=PASTE GROK API KEY HERE

// close nano with ctrl + X then Y
```

### Running Docker container

```bash
docker run -d --restart=always --env-file ~/chasm/.env -p 3001:3001 --name scout chasmtech/chasm-scout
```

### Check container

```bash
docker logs scout
```

### Check LLM functionality

```bash
source ~/chasm/.env
curl -X POST \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer $WEBHOOK_API_KEY" \
     -d '{"body":"{\"model\":\"gemma2-9b-it\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant.\"}]}"}' \
     $WEBHOOK_URL
```


---

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

```
GET https://docs.zerowave.my.id/testnet/chasm/installation.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.
