You can set the $SWAN_PATH by the environment variable, default ~/.swan:

export SWAN_PATH="/data/.swan"

Option1️⃣ Prebuilt package: See release assets

Build Instructions

wget --no-check-certificate
chmod +x ./

Configure and Run

  • Edit config file ~/.swan/provider/config.toml, configuration instruction is here

  • Run swan-provider in the background

ulimit -SHn 1048576
export SWAN_PATH="/data/.swan"
nohup swan-provider-2.1.0-linux-amd64 daemon >> swan-provider.log 2>&1 & 

Option2️⃣ Source Code

Building the swan-provider requires some system dependencies:

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y && sudo apt upgrade -y
  • Go(required 1.18.1+)

wget -c -O - | sudo tar -xz -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
  • Rustup

curl --proto '=https' --tlsv1.2 -sSf | sh

Build Instructions

git clone
cd go-swan-provider
git checkout release-2.1.0

Last updated