Setting Up a KREX Node
Step-by-step guide to setting up and running your first KREX Node.
What you need
Node.js 20+, a Kaspa wallet (for Hub enroll), and a machine that can stay online. Optional: PM2 for background running. You do NOT need a Kaspa full node, special hardware, or a domain to get started.
Install (correct repo)
1. git clone marketplace repo 2. cd packages/krex-node 3. npm install && npm run build 4. npm run edge — test localhost:8788/health 5. Expose HTTPS (tunnel or VPS) 6. Enroll on Hub with role Edge + HTTPS URL 7. cp config.example.json config.json — set nodeId, hmacSecret, role edge, url 8. pm2 start ecosystem.config.cjs
Key config fields
role: light | edge | super url: public HTTPS for edge/super; optional for light nodeId + hmacSecret: from Hub enroll
