{"repo":"anojndr/grok-to-openai","free":true,"listed":false,"github":"https://github.com/anojndr/grok-to-openai","clone":"git clone https://github.com/anojndr/grok-to-openai.git","description":"OpenAI-compatible bridge for authenticated grok.com web sessions with Responses API, Chat Completions, streaming, and file uploads","language":"JavaScript","stars":12,"topics":["api-bridge","chat-completions","express","grok","llm-proxy","nodejs","openai-compatible","playwright","responses-api","xai"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"grok-to-openai OpenAI-compatible bridge for authenticated grok.com web sessions. The server drives Grok through the same web endpoints the site uses via a persistent Playwright browser profile. It does not use the official xAI API. Endpoints - GET /healthz - GET /v1/models - POST /v1/responses , GET /v1/responses/:response id - POST /v1/chat/completions - POST /v1/files , GET /v1/files/:file id , GET /v1/files/:file id/content Features - Inputs : Responses accepts a string, one message, or a message array. system / developer messages become Grok custom instructions. input file supports file id , file url , and inline file data . Images accept input image / image url , remote URLs, Base64 data URLs, and uploaded file id references. - Multi-turn : Responses uses previous response id . Follow-ups first try the account that owns the stored Grok thread; on failure the bridge replays the stored conversation history (including attachments) across the pool. - Images : Grok image generation, edits, and searched image cards are exposed instead of dropped. Generated assets are rehosted as public PixelVault URLs. Responses returns image generation call items with result url ; Chat Completions keeps Markdown text plus a bridge-specific message.image urls field. - Citations : Completed text preserves Grok inline citations as shortened Markdown links by default. Optional source attribution appends source lists and search queries (also streamed in the closing response.completed event). - Acc","default_branch":null,"files":null,"tree":[],"storefront":"/r/anojndr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anojndr/grok-to-openai/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}