agents-sdk-openai-websocket-fetch

JSON →
library 0.0.1 ·javascript
verified Jun 7, 2026

Cloudflare Workers port of ai-sdk-openai-websocket-fetch — a drop-in fetch replacement that routes OpenAI Responses API streaming requests through a persistent WebSocket connection, reducing TTFB in multi-step agentic workflows. Version 0.0.1, pre-release. Key differentiator: uses Workers-native WebSocket API instead of Node.js 'ws' package, enabling persistent connections in edge environments. Inspired by Vercel Labs' original but adapted for Workers runtime constraints. Ships TypeScript types.