INSTALL CHASM ON LINUX/UBUNTU
#Open web https://console.groq.com/keys | Register
#If has registed, Create API on https://console.groq.com/keys | create a name and save the secret key, please save it (required, don't lose it)
#Open web https://openrouter.ai/ | Register
#If you have registered, create an api at https://openrouter.ai/settings/keys | create a key and please save the key (required, don't lose it)
#Create a new wallet in metamask for the chasm address, add mantle network in https://chainlist.org/chain/5000
#Wallet refill minimum 1 MNT (send to your wallet on metamask)
#Open web https://scout.chasm.net/private-mint | connect wallet, click _mint(scout)
#If done, click Setup Scouts, and click I’ve completed the steps above
#Click the one circled in red
# Save the text circled in red (or just save scout_uid and webhook_api_key)
#Login to the VPS to install Docker if you haven't installed it yet
sudo su
sudo apt update
sudo apt install docker.io –y
# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose –version
#Create new folder chasm-1
mkdir chasm-1
#Go to folder chasm-1
cd chasm-1
#Create new file compose.yml
nano compose.yml
#Paste the script below, fill in according to the data that was previously saved
services:
scout1:
image: chasmtech/chasm-scout:latest
container_name: scout1
restart: always
ports:
- "3001:3001"
environment:
PORT: 3001
LOGGER_LEVEL: debug
ORCHESTRATOR_URL: https://orchestrator.chasm.net
SCOUT_NAME: "name_for_dashboard"
SCOUT_UID: your_scout_uid
WEBHOOK_API_KEY: api_key_on_scout
WEBHOOK_URL: http://PUBLIC_IP_YOUR_VPS:3001
PROVIDERS: groq,openrouter
MODEL: gemma2-9b-it
GROQ_API_KEY: api_key_on_groq
OPENROUTER_API_KEY: api_key_on_openrouter
#Save the file by means, ctrl x, y, enter
#Run docker-compose
docker-compose up -d
#DONE, Check your dashboard, the first time it turns on it's still yellow, then after a while it turns green.
cd
#Note, if you want to run the second, third and so on node, create it from scratch (just ignore install docker and docker-compose), change the docker port from 3001 to 3002. Repeat the steps from creating the folder (for example the folder name chasm-2)
0 komentar:
Posting Komentar