We run a node on Chasm Network and collect points
Ram | cpu | disk |
---|---|---|
1 GB |
1 Core |
5-20 GB SSD |
Visit https://scout.chasm.net/private-mint
You need 0.3 $MNT on Mantle network in your wallet, you can obtain from squid
You will obtained WEBHOOK_API_KEY
and SCOUT_UID
from here.
Sign up for an account at Groq to get GROQ_API_KEY
This step is optional
-
OpenRouter for
OPENROUTER_API_KEY
-
OpenAI for
OPENAI_API_KEY
-
You can buy phone-numbers for OpenAI here by crypto
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
# Install Docker
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
cd ~
nano .env
Copy the following config in your .env
file and then update following variables in front of =
SCOUT_NAME
: Your favorite scout nameSCOUT_UID
: From Step 1: Mint NFTWEBHOOK_API_KEY
: From Step 1: Mint NFTWEBHOOK_URL
: Replace your http://: | Update with your vps's IP and port | e.g. http://x.x.x.x:3001/GROQ_API_KEY
: From Step 2: Get Groq API KeyOPENROUTER_API_KEY
: Step 3 (optional)OPENAI_API_KEY
: Step 3 (optional)
PORT=3001
LOGGER_LEVEL=debug
# Chasm
ORCHESTRATOR_URL=https://orchestrator.chasm.net
SCOUT_NAME=myscout
SCOUT_UID=
WEBHOOK_API_KEY=
WEBHOOK_URL=
# Chosen Provider (groq, openai)
PROVIDERS=groq
MODEL=gemma2-9b-it
GROQ_API_KEY=
# Optional
OPENROUTER_API_KEY=
OPENAI_API_KEY=
NODE_ENV=production
To save .env file and exit: Ctrl + X + Y
, Enter
# Open Port
sudo ufw allow 3001
# Pull the code from DockerHub
docker pull johnsonchasm/chasm-scout
# Start the docker file
docker run -d --restart=always --env-file ./.env -p 3001:3001 --name scout johnsonchasm/chasm-scout
# Should get "OK" response
curl localhost:3001
source ./.env
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WEBHOOK_API_KEY" \
-d '{"body":"{\"model\":\"gemma-7b-it\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant.\"}]}"}' \
$WEBHOOK_URL
docker logs scout
https://scout.chasm.net/leaderboard
docker stop scout && docker rm scout
docker restart scout