OpenCode provider plugin routing OpenAI Responses API streaming over WebSocket transport (v0.1.24). Supports both API-key auth (public OpenAI endpoint) and ChatGPT/Codex OAuth (private backend, unofficial). Provides model discovery at auth-load time, WebSocket-to-SSE bridging, and a bundled model table fallback. Active development with monthly releases. Distinct from other OpenAI plugins by focusing on WebSocket transport for real-time responses.
npm install openai-ws-opencodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and register the openai-ws-opencode plugin in OpenCode configuration, including model definitions.
Use API-key auth for production; OAuth path is experimental.
Ensure OpenCode is version 1.x.
Set OPENAI_WS_OPENCODE_SKIP_CATALOG=1 to skip runtime discovery and rely on config/bundled table.
Use import statements; set 'type': 'module' in package.json if needed.
Run `npm install -g openai-ws-opencode` and configure plugin array with 'openai-ws-opencode@latest'.
Use `import openaiWsOpencode from 'openai-ws-opencode'` (default import).
Upgrade OpenCode to version 1.x.