AQI AIAQI AI Intelligence
⌕
Official documentationNot tested by AQI AI

OBS assistant: start with a read-only connection

Download the original starter, practise offline, then optionally connect your own OBS to read versions, scene count and stream status.

Last checked: Version: starter 1.0.0 / SDK 5.0.8 / RPC 1
A quick glossary

Models generate and reason. Agents use tools to work on tasks. A harness manages an agent’s environment. MCP connects tools and data. Skills are reusable task guidance.

Before you start

Prerequisites

Node 22.12+; real connection needs your own OBS 28+ with authenticated 5.x WebSocket. Offline practice needs no OBS, SDK install or cloud service.

Hardware

Hardware needs depend on software, model, quantization and task; no minimum or smooth-performance benchmark was run.

Model / service

This starter calls no model or agent. AI bridging and control permissions need separate design and verification.

API key

After choosing real connection, run `node cli.mjs --live --port 4455` with your actual port. Enter the existing OBS password only in the hidden local terminal prompt, never a webpage, screenshot, command argument or model. Hello must advertise authentication and RPC1 must negotiate before queries. eventSubscriptions=0 is no permission role.

Implementation steps

  1. 01 Prepare a separate practice environment

    Stage practice: Use an OBS installation you manage while no real stream or recording is running. Record versions and original settings; no model, agent or cloud API is needed.

    Sources for this stage: OBS official remote-control guide
  2. 02 Check WebSocket and authentication

    Stage practice: OBS 28+ includes WebSocket. In Tools → obs-websocket Settings, check the actual port and keep authentication on; 5.x defaults to 4455 but may differ. A loopback destination does not prove loopback-only listening. No public port or firewall change is needed.

  3. 03 Download and practise offline

    Stage practice: Download the ZIP, compare its SHA-256 and extract separately. Run node cli.mjs --mock and node --test client.test.mjs; expect mode=mock, sceneCount=1 and streamActive=false. No OBS connection or SDK installation in this mode.

    Sources for this stage: Community JavaScript SDK 5.0.8
  4. 04 Optionally install the pinned community SDK

    Stage practice: Review the nine source/lock files. Only real connection needs npm ci --ignore-scripts --cache G:\code\cache\npm in the example folder (choose a local cache path on other OSs). Pinned obs-websocket-js5.0.8 uses its JSON export. Community library, not an official OBS AI plugin; dependencies are not bundled.

  5. 05 Authenticate in the hidden local prompt

    Stage practice: After choosing real connection, run node cli.mjs --live --port 4455 with your actual port. Enter the existing OBS password only in the hidden local terminal prompt, never a webpage, screenshot, command argument or model. Hello must advertise authentication and RPC1 must negotiate before queries. eventSubscriptions=0 is no permission role.

  6. 06 Check minimal results and the allowlist

    Stage practice: The client checks availableRequests via GetVersion, then reads GetSceneList and GetStreamStatus. Output is versions, scene count and streamActive only. Responses can contain names/statistics but stay in local memory without raw logging. No Start/Stop/Toggle/Set/Remove, screenshots or stream-key requests.

    Sources for this stage: Pinned OBS 5.x protocol reference
  7. 07 Diagnose and exit your client

    Stage practice: For refusal check OBS/port; for authentication recheck the password locally; for RPC or missing requests check versions. Never disable authentication to repair it. Each request has a 5s timeout; failure stops later reads. Exit/Ctrl+C disconnects this client only. Restore only your changes, preserving shared service use.

Commands and examples

Not tested by AQI AI

# Extract the downloaded ZIP into a separate practice folder first.
node cli.mjs --mock
node --test client.test.mjs

# Optional real connection, only after reviewing source and your OBS settings:
npm ci --ignore-scripts --cache G:\code\cache\npm
node cli.mjs --live --port 4455
# Type the existing password only in the hidden local prompt.

Validation checks

Validation

Windows x64 / Node 24.18.0 / SDK 5.0.8:15 unit checks and 7 synthetic loopback WebSocket cases pass; nine ZIP files hash-bound. No real OBS, GUI, streaming, recording, AI bridge or other OS tested.

  • Download the ZIP, compare its SHA-256 and extract separately. Run `node cli.mjs --mock` and `node --test client.test.mjs`; expect mode=mock, sceneCount=1 and streamActive=false. No OBS connection or SDK installation in this mode.
  • The client checks availableRequests via GetVersion, then reads GetSceneList and GetStreamStatus. Output is versions, scene count and streamActive only. Responses can contain names/statistics but stay in local memory without raw logging. No Start/Stop/Toggle/Set/Remove, screenshots or stream-key requests.
  • For refusal check OBS/port; for authentication recheck the password locally; for RPC or missing requests check versions. Never disable authentication to repair it. Each request has a 5s timeout; failure stops later reads. Exit/Ctrl+C disconnects this client only. Restore only your changes, preserving shared service use.

Cost

Not verified

Price not verified; check software, model, API, hardware and hosting costs separately.

Limits & boundaries

  • The allowlist constrains this example, not an OBS read-only account role. Other code with the same password may control OBS; never give it to a model or agent.
  • The community SDK includes deprecated crypto-js4.2.0. This npm audit reported no known findings, not a security certification. Review dependency maintenance before real use.

Permissions & risks

Protect audiovisual privacy and voice/image rights; do not default to enabling microphones, cameras or broadcasts.

Platform policy

Use authorized accounts, devices and APIs only; check source documentation for registration, review or administrator approval requirements.

Alternatives and next steps

If prerequisites are unmet, use a read-only or manual flow, then revalidate alternatives below without inheriting this compatibility status.

Original sources

  1. OBS WebSocket official documentation ↗

    github.com · · Official documentation

  2. OBS official remote-control guide ↗

    obsproject.com · · Official documentation

  3. Pinned OBS 5.x protocol reference ↗

    github.com · · Official documentation

  4. Community JavaScript SDK 5.0.8 ↗

    github.com · · Community adaptation

  5. SDK 5.0.8 handshake and disconnect implementation ↗

    github.com · · Community adaptation

Connected resources

Integration platformCost: Free software; check license and compute costs

OBS WebSocket

The official project for controlling OBS Studio through WebSocket.

Official documentation