Arif Ozgun

OpenGem - Free, Open-Source AI API Gateway in 1 file

by
OpenGem turns one or more Google accounts into a local, load-balanced Gemini gateway. It exposes the native Gemini API shape and also accepts OpenAI Chat Completions and Anthropic Messages requests, so most SDKs can point at your OpenGem server with only a base URL change. It is designed for personal, educational and research usage. You run the gateway, connect your own Google accounts, create your own API keys, and monitor usage from the admin console.

Add a comment

Replies

Best
Arif Ozgun
Maker
📌
Highlights: • Next.js admin console with a rebuilt setup wizard, dashboard, logs, API keys, docs, settings and chat playground. • Native Gemini endpoint: POST /v1beta/models/{model}:generateContent. • OpenAI-compatible endpoint: POST /v1/chat/completions and GET /v1/models. • Anthropic-compatible endpoint: POST /v1/messages. • Multi-account rotation with cooldowns, retries, quota handling and automatic account reactivation. • Local SQLite backend using Node.js node:sqlite, plus optional Firebase Firestore. • Secure API key store with hashed keys, JWT admin sessions, rate limiting and Helmet headers. • Streaming support across Gemini, OpenAI-compatible and Anthropic-compatible surfaces. • Function calling, system prompts, tool payloads, image payloads and request logging.