yuzhiqiang1993/agy-byok
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
- Works around Antigravity's lack of official BYOK support by intercepting its network calls with a local proxy
- 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
- Translates between four upstream protocols — OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Gemini generateContent — so different providers' request/response formats line up
- 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
- 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 GitHubTrending repos
- vorssaint/vorssaint-utilsOne free menu bar app replaces a dozen paid Mac utilities
- Alishahryar1/free-claude-codeA local proxy that lets coding AI agents run on 49 free or cheap model providers instead of one paid service
- freestylefly/awesome-gpt-image-2A library of 532 reverse-engineered prompts that turn GPT-Image2 into a predictable image-making tool
- block/buzzAn open-source workspace where humans and AI agents chat, code, and review in the same rooms
- NousResearch/hermes-agentNous Research's Hermes is an AI agent that gets smarter the more you use it
- virgiliojr94/book-to-skillA tool that turns technical book PDFs into on-demand reference skills for AI coding agents
- VoltAgent/awesome-agent-skillsA single hub collecting over 1000 'how-to' manuals that make AI coding assistants act like experts
- anthropics/claude-plugins-communityA shared shelf where anyone's Claude add-ons get listed for install