Privacy & Data Handling in Google Antigravity: What Happens to Your Code?
Privacy & Data Handling in Google Antigravity: What Happens to Your Code?
When using AI-powered IDEs, privacy is a top concern. This guide explains exactly how Google Antigravity handles your code, what data is sent to servers, and how to protect your intellectual property.
How Antigravity Uses Your Code
What Gets Sent to Gemini 3
When you use AI features, Antigravity sends:
- Current file content (or selected portion)
- Context files (referenced imports, types)
- Project structure (file names, not contents)
- Your prompt/question
What Stays Local
- Files in
.antigravityignore - Environment variables
- Git credentials
- MCP server credentials
- Build outputs
Data Flow Architecture
βββββββββββββββββββββββ
β Your Code β
β (Local IDE) β
βββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Context Builder βββββΆ Filters sensitive files
β (Local) βββββΆ Applies .antigravityignore
βββββββββββ¬ββββββββββββ
β
βΌ HTTPS/TLS 1.3
βββββββββββββββββββββββ
β Google Cloud β
β (Gemini 3 API) β
βββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β AI Response β
β (Streamed back) β
βββββββββββββββββββββββ
Privacy Settings
Configure Privacy Level
// settings.json
{
// Minimum context mode
"antigravity.privacy.mode": "strict",
// Disable telemetry
"antigravity.telemetry.enabled": false,
// Limit context sent
"antigravity.gemini.maxContextFiles": 5,
"antigravity.gemini.sendProjectStructure": false,
// Don't send file names
"antigravity.gemini.anonymizeFilenames": true
}
Privacy Modes
| Mode | Context Sent | Best For |
|---|---|---|