Skip to main content

Overview

The gateway is configured through argent.json, the main configuration file located at ~/.argentos/argent.json.

Configuration File

Core Settings

Port

The WebSocket port the gateway listens on:
Change this if port 18789 conflicts with another service.

Host

The interface to bind to:
  • "localhost" — Only accept local connections (default for security)
  • "0.0.0.0" — Accept connections from any interface (needed for remote access)

Authentication

Gateway auth prevents unauthorized access to the WebSocket API:
When enabled, clients must include the token in the WebSocket connection handshake. Without authentication, anyone with network access to the gateway port can control your agent.

State Directory

The gateway stores its state in:

LaunchAgent Configuration (macOS)

The argent gateway install command generates a plist at:
The plist uses whatever node binary is first in PATH at install time. If Homebrew’s node comes first, the gateway will use it instead of nvm’s node, causing native module ABI mismatches. Verify the node path in the plist matches your nvm installation.
To fix the node path:
1

Edit the plist

Edit ~/Library/LaunchAgents/ai.argent.gateway.plist
2

Change the node path

Update to your nvm node (e.g., /Users/you/.nvm/versions/node/v22.22.0/bin/node)
3

Reload the service

Environment Variables