Antigravity for Copilot
Expose Google Antigravity models to VS Code via Copilot's official BYOK (Bring Your Own Key) interface - Manages CLIProxyAPI server lifecycle and configures custom language models using VS Code's supported extension APIs.
⚠️ Disclaimer: This extension uses VS Code's official Language Model API for custom model configuration. It does not modify GitHub Copilot internals, intercept Copilot traffic, or patch any Copilot files. This project is unofficial and not affiliated with GitHub, Microsoft, Google, or Anthropic.
🌟 Features
- One-Click Server Management: Start/stop CLIProxyAPI directly from VS Code
- Automatic Configuration: Creates default
config.yaml if missing
- BYOK Model Registration: Registers Antigravity models using VS Code's official Language Model API
- Status Bar Integration: Quick visual status and server controls
- Sidebar Dashboard: Monitor server status, view available models, and manage settings
- Auto-Start Support: Configure the server to start automatically with VS Code
- Authentication Launcher: Launches Antigravity's authentication flow via CLIProxyAPI
🤖 Available Models (10)
| Model |
Description |
Capabilities |
| Claude Sonnet 4.5 |
Latest Claude model |
Tools |
| Claude Sonnet 4.5 (Thinking) |
Extended thinking mode |
Tools, Thinking |
| Claude Opus 4.5 (Thinking) |
Most powerful Claude |
Tools, Thinking |
| Gemini 2.5 Flash |
Fast Gemini model |
Tools |
| Gemini 2.5 Flash Lite |
Lightweight Gemini |
Tools |
| Gemini 3 Pro (Preview) |
Latest Gemini Pro |
Tools |
| Gemini 3 Flash (Preview) |
Latest Gemini Flash |
Tools |
| Gemini 3 Pro Image (Preview) |
Gemini with vision |
Tools, Vision |
| Gemini 2.5 Computer Use |
Computer interaction |
Tools, Vision |
| gpt-oss-120b-medium |
Open source model |
Basic |
📦 Prerequisites
VS Code Insiders (required for custom models support)
winget install --id Microsoft.VisualStudioCode.Insiders
GitHub Copilot Pro subscription
GitHub Copilot Extensions (pre-release versions)
code-insiders --install-extension github.copilot --pre-release
code-insiders --install-extension github.copilot-chat --pre-release
CLIProxyAPI installed in %USERPROFILE%\CLIProxyAPI\
$zipPath = "$env:TEMP\CLIProxyAPI.zip"
$extractPath = "$env:USERPROFILE\CLIProxyAPI"
Invoke-WebRequest -Uri "https://github.com/router-for-me/CLIProxyAPI/releases/download/v6.6.103/CLIProxyAPI_6.6.103_windows_amd64.zip" -OutFile $zipPath
Expand-Archive -Path $zipPath -DestinationPath $extractPath -Force
Remove-Item $zipPath
CLIProxyAPI Configuration: (Optional) The extension will automatically create a default config.yaml if one doesn't exist.
🚀 Quick Start
Step 1: Install the Extension
- Download the
.vsix file
- Open VS Code Insiders
- Press
Ctrl+Shift+P → "Extensions: Install from VSIX..."
- Select the downloaded file
Step 2: Authenticate
- Click the Antigravity icon in the Activity Bar
- Click "Login to Antigravity" button
- Follow the authentication flow in the terminal (Server will stop temporarily during login)
Step 3: Start Server
- Click "Start Server" in the sidebar
- Wait for the server to start (status will turn green)
- Click "Configure Models" button
- Reload VS Code when prompted
- Open Copilot Chat (
Ctrl+Alt+I)
- Click the model picker dropdown → "Manage Models..."
- Find the Antigravity models and click the eye icon to enable them
- The models will now appear in the model picker dropdown
⚙️ Configuration
Open VS Code Settings (Ctrl+,) and search for antigravityCopilot:
| Setting |
Default |
Description |
server.enabled |
false |
Enable server on startup |
server.autoStart |
false |
Auto-start server with VS Code |
server.executablePath |
(auto) |
Path to cli-proxy-api.exe |
server.port |
8317 |
Server port |
server.host |
127.0.0.1 |
Server host |
autoConfigureCopilot |
true |
Auto-configure models on startup |
showNotifications |
true |
Show notifications |
Example settings.json
{
"antigravityCopilot.server.autoStart": true,
"antigravityCopilot.autoConfigureCopilot": true,
"antigravityCopilot.showNotifications": true
}
🎮 Commands
Access commands via Command Palette (Ctrl+Shift+P):
- Antigravity: Start Server - Start the CLIProxyAPI server
- Antigravity: Stop Server - Stop the server
- Antigravity: Restart Server - Restart the server
- Antigravity: Login to Antigravity - Authenticate with Google
- Antigravity: Configure Models - Add models to Copilot Chat
- Antigravity: Show Server Controls - Open quick controls menu
❓ Troubleshooting
Server won't start
- Verify CLIProxyAPI is installed at
%USERPROFILE%\CLIProxyAPI\cli-proxy-api.exe
- Check if port 8317 is already in use:
netstat -ano | findstr :8317
- Review logs: Click "Show Logs" in the dashboard
Models not appearing in Copilot Chat
- Ensure you're using VS Code Insiders (not stable VS Code)
- Ensure Copilot extensions are pre-release versions
- Click "Configure Models" and reload VS Code
- Check if Custom OpenAI feature is available (gradual rollout)
Authentication failed
- Run
Antigravity: Login to Antigravity command
- Follow the browser authentication flow
- Check auth files in
%USERPROFILE%\.cli-proxy-api\
🔗 Resources
📝 License
MIT License
🏗️ Architecture
This extension:
- Manages CLIProxyAPI: A local OpenAI-compatible proxy server that launches and manages Antigravity authentication via CLIProxyAPI
- Registers Models via BYOK: Uses VS Code's official
github.copilot.chat.models configuration to register custom OpenAI-compatible endpoints
- Displays Status: Provides a sidebar UI for server management and status monitoring
No Copilot internals are modified. The extension only uses documented VS Code APIs and settings.
Compliance Boundary
This extension explicitly does NOT:
- ❌ Modify GitHub Copilot internals or files
- ❌ Host or redistribute any AI models
- ❌ Collect, store, or transmit user credentials
- ❌ Intercept or proxy Copilot traffic
- ❌ Provide access to Antigravity (users must obtain access independently)
- ❌ Connect to any internal/private services
Credits
- Punal Manalan - Author and maintainer
- CLIProxyAPI - The proxy server powering this extension
⚠️ Legal Notice
This extension requires CLIProxyAPI and a Google account with Antigravity access.
- This project does not provide access to Antigravity — users must obtain access independently
- This project is unofficial and not affiliated with GitHub, Microsoft, Google, Anthropic, or OpenAI
- Users are responsible for ensuring their use complies with all applicable terms of service
- The authors assume no liability for any misuse or ToS violations
- Antigravity access may be subject to eligibility requirements or usage policies set by Google