awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
Sophomoresty avatar

Sophomoresty/gemini-web2api

0
View on GitHub↗

Gemini Web2api

gemini-web2api is a self-hosted reverse proxy that puts an OpenAI-compatible API in front of the Gemini web interface. Instead of an official API key, it authenticates upstream requests with the cookies, account index, and page token from a signed-in browser session. Existing OpenAI-style clients, libraries, and agents can then use Gemini as their model backend without code changes.

The proxy translates OpenAI-style chat, model-listing, tool-calling, and Responses requests into Gemini web requests. Replies stream back incrementally over server-sent events. Function definitions are converted into the upstream prompt format, and model output is parsed back into structured tool calls. Model variant and reasoning depth are chosen through a suffix on the model name, with fast, extended-thinking, pro, auto, and lite options. A Responses-style endpoint and native model endpoints let command-line coding assistants use the local proxy as their backend.

Chat messages can include images as HTTP links or base64 data URLs, which are uploaded for the model to interpret. Access to the API can be restricted with bearer or key-header authentication, and it stays open when no keys are configured. Upstream traffic can go through an HTTP proxy set by command-line argument, config file, or environment variable. The service can run in Docker or Compose with a mounted config and cookie file.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • OpenAI-Compatible APIs - Exposes OpenAI-style chat, model-listing, tool-calling and Responses endpoints in front of a web chat service so existing clients work without code changes.
  • OpenAI-Compatible Model Servers - Exposes an OpenAI-compatible API for chat, model listing, tool calling, and Responses requests so existing clients work against Gemini unchanged.
  • Gemini Integrations - Provides access to Google's Gemini models from scripts and applications through a signed-in browser session, with selectable model tier and reasoning depth.
  • OpenAI Chat Request Proxies - Accepts OpenAI-style chat and model-listing requests and relays them to Gemini web requests so existing OpenAI clients work without code changes.
  • Browser Session Authentication - Authenticates upstream requests with cookies, account index, and page token taken from a signed-in browser session instead of an official API key.
  • Streaming Chat Responses - Streams generated replies incrementally over server-sent events so clients show text as the model writes it.
  • AI Coding Assistant Proxies - Serves a Responses-style endpoint and native model routes so command-line coding assistants can use the local proxy as their model backend.
  • Coding Agent CLI Bot Backends - Serves a Responses-style endpoint and native model endpoints so command-line coding assistants can use the local proxy as their backend.
  • Function Calling Interfaces - Converts OpenAI-style function definitions into the upstream prompt format and parses model output back into structured tool call objects.
  • Tool Calling - Accepts function definitions in the chat-API format and returns structured tool calls parsed from model output so agents can trigger actions.
  • AI Gateways - Runs as a private self-hosted gateway in Docker or Compose, with API key access control and optional upstream HTTP proxy routing.
  • LLM API Servers - Runs as a locally hosted, Docker-deployable server that exposes a language model over a REST API with key-based access control and upstream proxy support.
  • API Proxy Gateways - Acts as a local intermediary that receives standard API calls and forwards them to the upstream Gemini web interface as web requests.
3,571 stars·784 forks·Python·MIT·0 views

Star history

Star history chart for sophomoresty/gemini-web2apiStar history chart for sophomoresty/gemini-web2api

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does sophomoresty/gemini-web2api do?

gemini-web2api is a self-hosted reverse proxy that puts an OpenAI-compatible API in front of the Gemini web interface. Instead of an official API key, it authenticates upstream requests with the cookies, account index, and page token from a signed-in browser session. Existing OpenAI-style clients, libraries, and agents can then use Gemini as their model backend without code changes.

What are the main features of sophomoresty/gemini-web2api?

The main features of sophomoresty/gemini-web2api are: OpenAI-Compatible APIs, OpenAI-Compatible Model Servers, Gemini Integrations, OpenAI Chat Request Proxies, Browser Session Authentication, Streaming Chat Responses, AI Coding Assistant Proxies, Coding Agent CLI Bot Backends.

Which projects share features with sophomoresty/gemini-web2api?

Projects with overlapping indexed features include: benedictking/ccx — CCX is a self-hosted AI API gateway that puts Claude, OpenAI, and Gemini behind a single endpoint and credential. It… linuxhsj/openclaw-zero-token — OpenClaw Zero Token is a self-hosted gateway and assistant platform that lets people chat with browser-based AI… ogx-ai/ogx — OGX is a self-hostable API server that exposes OpenAI-compatible endpoints for chat completions, responses, and… cheaper-inference/omniroute — OmniRoute is a self-hosted AI gateway that puts one OpenAI-compatible endpoint and key in front of many chat, media,… ardeyouxipianyi/workbuddy2api-hub — workbuddy2api-hub is a self-hosted gateway that pools several AI coding-assistant accounts, including international,… lm-sys/routellm — RouteLLM is a routing framework and traffic manager designed to direct prompts between high-capability and low-cost…

Projects sharing features with Gemini Web2api

These projects share indexed features with Gemini Web2api. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • benedictking/ccxBenedictKing avatar

    BenedictKing/ccx

    3,983View on GitHub↗

    CCX is a self-hosted AI API gateway that puts Claude, OpenAI, and Gemini behind a single endpoint and credential. It translates between the providers' protocols, so clients can mix upstream services through whichever API format they already use. It accepts Claude Messages calls, OpenAI-style chat and Codex requests, and Gemini content-generation calls, and it also handles embeddings, model listing, and image generation and editing. Requests are scheduled across configured upstream channels by priority, with promotion windows that decide when a preferred channel gets traffic again. Continuous

    Goclaudecodexgemini
    View on GitHub↗3,983
  • linuxhsj/openclaw-zero-tokenlinuxhsj avatar

    linuxhsj/openclaw-zero-token

    5,213View on GitHub↗

    OpenClaw Zero Token is a self-hosted gateway and assistant platform that lets people chat with browser-based AI services such as ChatGPT, Claude, Gemini, DeepSeek, Kimi and Grok without paying for API tokens. It captures a login from a debuggable Chrome browser through the Chrome DevTools Protocol, then reuses that session's cookies and headers for later requests. A single OpenAI-compatible chat completions endpoint, secured by a bearer token, routes each request to whichever web model is configured, so outside programs can call those models like a standard API. Because web chat models have n

    TypeScript
    View on GitHub↗5,213
  • ogx-ai/ogxogx-ai avatar

    ogx-ai/ogx

    8,454View on GitHub↗

    OGX is a self-hostable API server that exposes OpenAI-compatible endpoints for chat completions, responses, and embeddings, and routes them to many local or hosted model backends. It also accepts requests from Anthropic Messages and Google GenAI client libraries, translating them into one native format so teams can keep the client libraries they already use. The same core can run as an HTTP server reachable from any language or as a library imported into a Python program. What sets it apart is that agent orchestration runs on the server. Tool calling, connections to MCP tool servers, file sea

    Python
    View on GitHub↗8,454
  • cheaper-inference/omniroutecheaper-inference avatar

    cheaper-inference/OmniRoute

    85,439View on GitHub↗

    OmniRoute is a self-hosted AI gateway that puts one OpenAI-compatible endpoint and key in front of many chat, media, search, and local-model providers. It translates each request into the chosen provider's native format and maps the reply back. It is built to serve coding assistants and command-line agents, and it can configure them to send their model traffic through the gateway. It also catalogs free and keyless model tiers and uses them before falling back to paid capacity. Routing and failover are central. Models can be chained into ordered combos with strategies such as priority, round-r

    TypeScripta2aai-agentsai-gateway
    View on GitHub↗85,439
Compare all 30 related projects→