WebSocket RPC protocol reference for ArgentOS gateway — connection, authentication, and all available methods.
Overview
The ArgentOS gateway exposes a WebSocket-based RPC interface on port 18789 (configurable). All dashboard interactions, CLI commands, and external integrations communicate through this protocol.The protocol uses JSON-RPC style messages: each request has a method and params, each response returns a result or error.
Connection
WebSocket URL
ws://localhost:18789
wss://your-domain.com:18789
Authentication
After connecting, the client must authenticate with a challenge-response:
1
Server sends challenge
Server sends connect.challenge event with a nonce
2
Client responds
Client responds with the gateway token (from ~/.argentos/argent.json or ARGENT_GATEWAY_TOKEN)
3
Server validates
Server validates and grants access
The gateway token is auto-generated on first run. It can be found in argent.json under gateway.token or retrieved via argent gateway status.