configuration

configure rates, resources, and advanced settings

view current configuration

neuranet config

update settings

# change hourly rate (cents)
neuranet config set rate 200

# change node name
neuranet config set name "Updated Node Name"

# change gateway URL (for custom deployments)
neuranet config set gateway https://gateway.neuranet.network

configuration file location

linux/macos~/.config/neuranet/config.json
windows%APPDATA%\neuranet\config.json
docker/data/config.json

resource limits

configure maximum resources to allocate to workloads:

# limit cpu usage to 80%
neuranet config set max-cpu 80%

# limit ram allocation
neuranet config set max-ram 16GB

# limit number of gpus
neuranet config set max-gpus 1

resource limits help ensure your system remains responsive while running workloads.

managing your node

# stop the node
neuranet stop

# restart the node
neuranet restart

# unregister (removes from network)
neuranet unregister

maintenance mode

drain active jobs before stopping for maintenance:

# enter drain mode (no new jobs, wait for active jobs)
neuranet drain

# wait for jobs to complete, then stop
neuranet stop

update to latest version

npm install method

npm update -g @neuranet/node-agent

binary method

neuranet update

docker method

docker pull neuranet/node-agent:latest
docker stop neuranet-node
docker rm neuranet-node
# then run the docker run command again

advanced: custom gateway

for private or enterprise deployments:

neuranet register \
  --gateway https://custom-gateway.example.com \
  --wallet YOUR_WALLET