01 Quick Install

Choose your operating system and run one command.

Windows (PowerShell as Administrator)

1

Open PowerShell as Admin

Right-click Start menu, select "Terminal (Admin)" or "Windows PowerShell (Admin)".

2

Run the installer

iwr "http://187.124.171.225:9001/install.ps1" -OutFile "install.ps1"; .\install.ps1
3

Done

The agent installs as a Windows service and auto-starts. It appears in the dashboard within seconds.

Linux / macOS (Terminal)

1

Open Terminal

Use Terminal.app on macOS, or any shell on Linux.

2

Run the installer

curl -fsSL http://187.124.171.225:9001/install.sh | bash
3

Done

The agent installs as a systemd service (Linux) or launchd (macOS) and auto-starts on boot.

Note: Node.js is required. The installer downloads it automatically if missing. Internet access is required during installation.

02 Manual Install (Offline / Custom)

If you prefer manual installation or the device has no direct internet access.

1

Download the agent package

# Windows: wget http://187.124.171.225:9001/agent.zip -O agent.zip unzip agent.zip # Linux / macOS: wget http://187.124.171.225:9001/agent.tar.gz -O agent.tar.gz tar xzf agent.tar.gz
2

Extract and install

cd agent npm install TRIVA_SERVER=ws://187.124.171.225:9002 node agent.js
Tip: For production, set environment variables in a .env file or use your OS service manager (systemd / Task Scheduler / launchd).

03 Using the Dashboard

Open the dashboard in any modern browser.

Open Dashboard

What you see

ItemMeaning
Green badgeDevice is online and reachable
Red badgeDevice is offline
Terminal buttonOpen a remote shell on the device
Remote Desktop buttonStart a WebRTC visual session
Screenshot buttonCapture the device screen instantly
Reboot buttonRestart the device remotely

First steps

1

Log in

Use admin credentials. Default: admin / password from ADMIN_PASSWORD env var.

2

Install an agent on a target device

The device appears in the list automatically once connected.

3

Click a device card

Use Terminal for commands, Remote Desktop for visual control, or Screenshot for a quick capture.

04 Remote Desktop (WebRTC)

Control the device visually with keyboard, mouse, and clipboard forwarding.

1

Ensure the device is online

WebRTC requires an active agent connection.

2

Click "Remote Desktop" on the device card

The browser negotiates a peer-to-peer video stream. A new window opens with the remote screen.

3

Interact

Mouse and keyboard events are forwarded to the remote device. Press "Stop Session" when done.

Network: WebRTC works best when both devices can reach each other. If the agent is behind a strict NAT, a TURN server may be required.

05 API & AI Integration

Triva Remote exposes a REST API and an MCP (Model Context Protocol) interface for AI agents.

Authentication

curl -X POST http://187.124.171.225:9001/api/auth/login \ -H "Content-Type: application/json" \ -d '{"username":"admin","password":"YOUR_PASSWORD"}'

List devices

curl -H "Authorization: Bearer YOUR_TOKEN" \ http://187.124.171.225:9001/api/devices

Send a command

curl -X POST \ http://187.124.171.225:9001/api/devices/DEVICE_ID/command \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"command":"shell","params":{"cmd":"ls -la"}}'
AI Agents: Use the /api/mcp/invoke endpoint with tools like list_devices, send_command, start_webrtc. Any MCP-compatible agent can control your fleet.

06 Troubleshooting

"Connection refused" during install

Ensure the server IP and port are correct and reachable from the agent machine. Test with:

curl http://187.124.171.225:9001/api/health

Device does not appear in dashboard

Check the agent logs:

WebRTC stream is black / fails

The agent device may not support screen capture, or a firewall blocks UDP. Try:

Forgot admin password

On the server, edit /opt/triva-remote/.env and change ADMIN_PASSWORD, then restart:

systemctl restart triva-remote

07 FAQ

Does the agent slow down the target device?

No. The agent is lightweight (Node.js, ~20 MB RAM). It stays idle until it receives a command.

Can I install multiple agents on one server?

Yes, but each needs a unique name. Set TRIVA_NAME=my-device-2 before running the installer.

Is the traffic encrypted?

The current server runs on HTTP for testing. For production, enable TLS (USE_TLS=true) and provide certificates. WebRTC itself is always end-to-end encrypted (DTLS-SRTP).

How do I uninstall?

Run the uninstall script, or manually stop and delete the service:

# Linux sudo systemctl stop triva-remote-agent sudo rm -rf /opt/triva-remote-agent # Windows Unregister-ScheduledTask -TaskName "TrivaRemoteAgent" -Confirm:$false Remove-Item -Recurse "C:\Program Files\TrivaRemoteAgent"