Skip to content

distributed desktop cloud daemon for computer-use agents

License

Notifications You must be signed in to change notification settings

viralmind-ai/virald

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virald Node

Virald is a node implementation for a distributed VM cloud network. This node registers itself with the API server and can handle VM execution tasks.

Folder Structure

virald/
├── node/
│   ├── index.ts  # Virald node server handling VM execution
│   ├── client.ts  # Communicates with the main API server
├── package.json
├── tsconfig.json
└── README.md

Installation

Ensure you have Node.js installed, then run:

npm install

Running the Node

Start the node with:

npm start

API Documentation

The node communicates with a central API server. The following endpoints are relevant:

Register Node

POST /register

  • Request Body: { "address": "<node_address>" }
  • Response: { "id": "<node_id>", "message": "Node registered successfully" }

Get Nodes

GET /nodes

  • Response: { "nodes": { "<node_id>": { "id": "<node_id>", "address": "<node_address>", "earnings": <amount> } } }

Assign VM to Node

POST /assign-vm

  • Request Body: { "nodeId": "<node_id>", "amount": <number> }
  • Response: { "message": "VM assigned", "node": { "id": "<node_id>", "address": "<node_address>", "earnings": <amount> } }

License

MIT

About

distributed desktop cloud daemon for computer-use agents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published