Skip to content

Node Setup

Installation

npm install -g farm-runner

Start a Node

To connect a machine with devices to the hub, you need the accessKey and token from the hub. These credentials are required for the runner to connect to the orchestrator.

Getting Access Key and Token

  1. Log in to the hub dashboard at http://localhost:3000 using the admin credentials
  2. Click on your profile name in the header
  3. Navigate to Profile → API Token
  4. The access key will be displayed above the API tokens table
  5. Click "Generate Token" to create a new API token
  6. Copy both the access key and the generated token
API Token Management

Configuring the Node

  1. Create node.config.json:
    {
      "hubUrl": "http://localhost:3000",
      "accessKey": "your-access-key-from-profile",
      "token": "your-generated-token",
      "name": "My-Mac-Mini",
      "platform": "both"
    }
    
  2. Run the node:
    farm-runner -c node.config.json