Standalone public OpenClaw plugin that runs a MassiveNet provider-node worker loop.
The worker:
- validates startup identity with
GET /v1/nodes/me - sends heartbeats with
POST /v1/nodes/heartbeat - polls jobs with
POST /v1/nodes/poll - fetches payloads via
payload_refwhen present - executes jobs via
stuborhttpexecutor - completes jobs with node-token auth at
POST /v1/nodes/jobs/{job_id}/complete
- Clone this repo locally.
- Install dependencies:
npm install
- Install the plugin into OpenClaw:
openclaw plugins install <path-to-this-repo>
- Enable plugin entry if needed:
openclaw plugins enable massivenet_provider_node
This plugin follows OpenClaw plugin packaging (openclaw.extensions + openclaw.plugin.json) and is suitable for registry/ClawHub style installation once published.
Required:
MASSIVENET_BASE_URLMASSIVENET_NODE_TOKEN
Optional:
MASSIVENET_POLL_INTERVAL_MS(default500)MASSIVENET_BACKOFF_MAX_MS(default5000)MASSIVENET_EXECUTOR(defaultstub) values:stuborhttpMASSIVENET_LOCAL_EXECUTOR_URL(required whenMASSIVENET_EXECUTOR=http)MASSIVENET_LOG_JSON(defaulttrue)
stub:
- chat jobs return:
result_text: "Stub response from MassiveNet provider node."
- image jobs return:
output_urls: ["https://example.com/stub-output.png"]
http:
- sends
payload_json(or direct job input) as JSONPOSTbody toMASSIVENET_LOCAL_EXECUTOR_URL - expects:
- chat:
{ "result_text": "..." } - image:
{ "output_urls": ["..."] }
- chat:
MASSIVENET_BASE_URL=https://api.massivenet.example
MASSIVENET_NODE_TOKEN=replace-with-node-token
MASSIVENET_EXECUTOR=stub
MASSIVENET_POLL_INTERVAL_MS=500
MASSIVENET_BACKOFF_MAX_MS=5000
MASSIVENET_LOG_JSON=trueFor HTTP executor:
MASSIVENET_EXECUTOR=http
MASSIVENET_LOCAL_EXECUTOR_URL=http://127.0.0.1:3001/execute- This repository intentionally does not include MassiveNet internal secrets.
- Job completion uses node-token bearer auth only:
Authorization: Bearer {MASSIVENET_NODE_TOKEN}POST {BASE_URL}/v1/nodes/jobs/{job_id}/complete