Broadcast server
OBS Server & Broadcast Agent
The broadcast computer connects outward to Command. Do not expose the OBS WebSocket port directly to the Internet.
Server setup
- Install OBS and enable OBS WebSocket locally.
- Use a strong OBS WebSocket password.
- Install Node.js on the trusted broadcast machine.
- Copy only the
broadcast-agent/folder to the machine. - Create the agent environment file using the provided example.
- Set the Command API URL, agent token and OBS local connection values.
- If Command is behind Access, create a Cloudflare service token for the agent and add its client ID/secret.
- Start the agent and check Command → System Health.
- Test non-destructive commands before StartStream/StopStream.
Authentication layers
Cloudflare service token+BROADCAST_AGENT_TOKEN→Command agent API→OBS localhost
Do not port-forward OBS WebSocket. The agent should reach OBS on localhost/private LAN, while the agent initiates HTTPS requests outward to Command.
Official reference: Cloudflare Access service tokens