Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

yuzhiqiang1993/agy-byok

14RustMIT

A local proxy lets you plug your own AI models into Google's Antigravity IDE

Antigravity officially ships only with Gemini models and lower-tier Claude, with no built-in way to bring your own API key for other providers. AGY BYOK runs a local-only proxy that Antigravity IDE, App, and CLI are redirected to instead of the official cloud endpoint, forwarding requests to OpenAI, Anthropic, Gemini, DeepSeek, or a local Ollama model behind the scenes. It's a Rust/Tauri desktop app for macOS and Windows, currently labeled as a prototype.

What it does

  1. Works around Antigravity's lack of official BYOK support by intercepting its network calls with a local proxy
  2. Listens only on 127.0.0.1:12345 by default, and rewrites host configs such as settings.json's jetski.cloudCodeUrl or the CLOUD_CODE_URL environment variable to redirect traffic
  3. Translates between four upstream protocols — OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Gemini generateContent — so different providers' request/response formats line up
  4. Lets users fine-tune per-model context compression thresholds, addressing Antigravity's default policy of compressing conversation history too aggressively, which adds latency and can lose early context
  5. Activity logs keep only request routing, status, and timing in memory, deliberately excluding prompts, responses, tool arguments, headers, or API keys

Why it matters

It gives Antigravity users freedom to keep using whatever model subscription or relay service they already pay for, instead of being locked into Gemini and older Claude tiers. Since it's an unofficial tool that modifies local IDE/App/CLI configuration files and environment variables, users take on the risk themselves.

Terms in this repo

  • BYOK · Bring Your Own Key — connecting your own API key to use a provider of your choice
  • local proxy · a relay server running only on your own machine that intercepts and forwards requests
  • context compression · summarizing earlier conversation history to shorten it; doing this too often adds delay and loses detail
  • Tauri · a framework for building desktop apps with a web-based UI and a Rust backend

Repository description (English)

Bring Your Own Key (BYOK) proxy for Google Antigravity (IDE, App, & CLI). Connect OpenAI, Anthropic, Gemini, DeepSeek, Ollama, and customize context compression.

Open on GitHub

Trending repos

All repos →

Latest from METAL MEDIA