YforC / consolex2api
Public将 console.x.ai 封装为 OpenAI 兼容接口的轻量网关,支持多账号 SSO 池、管理后台、SQLite 和 Docker 部署。
ConsoleX2API is a lightweight gateway that makes xAI's Grok AI models available through standard OpenAI-compatible interfaces. It lets you connect your own x.ai account(s) and use Grok models in any application designed for OpenAI. The project includes a web-based admin panel for managing accounts and settings, supports multiple accounts for higher availability, and can handle both regular chat conversations and real-time voice interactions. It's designed for personal use and API adaptation, with clear documentation and security practices like keeping your keys private.
How It Works
You want to use xAI's Grok models in your apps, but your existing tools only work with OpenAI's format.
This project acts like a universal adapter—it translates between Grok and OpenAI so everything works together seamlessly.
You download the project and run it on your computer or server, creating your own private connection point.
Through the built-in admin page, you add your x.ai login details so the gateway can talk to Grok on your behalf.
Test conversations, manage accounts, and see what's happening in real-time.
Point your existing OpenAI-compatible code at your gateway and start using Grok models immediately.
Your requests reach Grok, the responses come back in OpenAI format, and your application gets exactly what it needs.
You've unlocked xAI's powerful models for any tool or application that speaks OpenAI—on your own terms.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.