Antigravity-Shield
Health Warn
- License รขโฌโ License: NOASSERTION
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Low visibility รขโฌโ Only 6 GitHub stars
Code Fail
- process.env รขโฌโ Environment variable access in .github/workflows/release.yml
- fs module รขโฌโ File system access in .github/workflows/release.yml
- rm -rf รขโฌโ Recursive force deletion command in deploy/arch/install.sh
- rm -rf รขโฌโ Recursive force deletion command in install.sh
Permissions Pass
- Permissions รขโฌโ No dangerous permissions requested
No AI report is available for this listing yet.
๐ก๏ธ Hardened, anti-ban AI account manager & proxy gateway for Antigravity & Gemini. Eliminates 403 Forbidden issues, prevents sandbox detection, and supports Claude Code & Cursor.
Antigravity-Shield ๐ก๏ธ
The Hardened, Anti-Ban AI Account Manager & Protocol Gateway (v5.0.0)
Your Dedicated Hardened High-Performance AI Gateway
Engineered for maximum account safety, zero sandbox detection, and seamless multi-account AI routing.
Why Shield? (Anti-403) โข Interface Showcase โข Key Features โข Quick Integration โข Architecture โข Installation โข License & Attribution
English | ็ฎไฝไธญๆ
๐ก๏ธ Why Antigravity-Shield? (The Anti-403 Solution)
While the original upstream project (lbjlaq/Antigravity-Manager) provided a basic proxy framework, over 1,800+ community issues accumulated due to critical architectural vulnerabilities when running high-concurrency AI coding agents (Claude Code CLI, Cursor, OpenCode, OpenClaw).
Antigravity-Shield is an independently maintained, deeply hardened distribution that systematically resolves these root causes across the proxy, account rotation, and network layers.
๐ Upstream vs. Antigravity-Shield Comparison
| Failure Mode & Vulnerability | Upstream Antigravity-Manager |
๐ก๏ธ Antigravity-Shield Hardened |
Upstream Issues Solved |
|---|---|---|---|
| Google Account Bans & 403 Forbidden | โ High Risk: Completion & quota calls hit internal sandbox/daily endpoints (daily-cloudcode-pa.sandbox.googleapis.com), triggering Google SOC intrusion detection. |
โ
100% Production Whitelist: Completely sanitized all staging URLs. Enforces official production endpoint cloudcode-pa.googleapis.com exclusively. |
#655, #1822, #2228, #2261 |
| Hardware Fingerprinting & Multi-Accounting | โ Shared Fingerprint: Every account transmitted the host's raw physical machine_uid. Google easily linked and banned all rotating accounts. |
โ
Per-Account Virtual DeviceProfile: Generates deterministic, isolated RFC 4122 UUIDs (x-machine-id, x-vscode-sessionid) per account. Raw host ID is never leaked. |
#655, #1430, #3160 |
| Account Quarantine (Domino Effect) | โ Pool-Wide Burn: On encountering 403 or policy errors, upstream rotated blindly through all available accounts, causing cascading fleet bans in minutes. | โ
Safe 3-Tier Quarantine: Immediate in-memory isolation for 5โ10 min cooldown. Extracts Google appeal_url and protects remaining accounts from repeat strikes. |
#1822, #1883, #2261 |
| Token Acquisition Concurrency (5s Timeout) | โ Frequent Deadlocks: Synchronous disk I/O on Tokio threads caused Token error: Token acquisition timeout (5s) - system too busy or deadlock detected. |
โ
Non-Blocking Architecture: Offloads all persistence to spawn_blocking, fine-grained per-account locks, and 15s expanded timeout window under heavy multi-agent load. |
#3348, #3245, #284 |
| Multi-Turn Context Cartesian Explosion | โ 1M+ Token Ceiling Breach: Session store duplication and unpruned thinking blocks inflated 60K contexts into 400Kโ1M+ tokens (Token count exceeds 1048576). |
โ
Semantic Turn Reconciliation: Content-hash deduplication, intermediate parallel tool preservation, and unconditional historical thought block pruning ({"text": "..."}). |
#3382, #3325, #3313 |
| Gemini 3.7 Tool Pseudocode Leaks | โ Silent Agent Aborts: Gemini 3.7 plaintext tool calls (call:default_api:Tool{...}) leaked as final chat text, breaking Claude Code and Cursor agent loops. |
โ
Fail-Closed Tool Recovery Bridge: Active recovery filter detects leaked tool invocations and reconstructs standard Anthropic & OpenAI tool_calls payloads. |
#3379, #3300, #1977 |
| Geographic Geoblocking (400 Location Error) | โ Fatal Request Drop: 400 User location is not supported was hard-coded as NoRetry, killing agent tasks immediately. |
โ
Dynamic Proxy Failover: Reclassified as RetryStrategy::FixedDelay with automated proxy pool node rotation and Google egress connectivity verification. |
#3301, #3377, #3323 |
| Automated Verification & Quality Gate | โ Manual & Brittle: Zero automated E2E test suites for protocol regression or concurrency verification. | โ
64/64 Automated E2E Tests: Comprehensive 4-tier opaque-box test runner (tests/e2e/runner.ts) verifying all 14 architectural features with 100% pass rate. |
Quality Gate |
๐ฌ Authoritative Technical Whitepapers & Specifications
- ๐ DIAGNOSTIC_AUDIT.md โ In-depth taxonomy of the top 10 upstream failure classes and root-cause proofs.
- ๐๏ธ PROJECT.md โ Architectural subsystem boundaries, 14-feature inventory, and interface contracts.
- ๐งช TEST_INFRA.md โ 4-tier E2E testing framework specification with 64 automated test scenarios.
- ๐จ๐ณ README_ZH.md โ ็ฎไฝไธญๆๅฎๆดๆๆกฃไธ่ฏดๆ.
๐ธ Interface Showcase
๐ Key Features
1. ๐๏ธ Intelligent Account Management
- Real-time Quota Monitoring: Monitor remaining quotas and reset timers for Gemini Pro, Gemini Flash, Claude, and Imagen 3 models with live color-coded badges.
- Smart Failover & Load Balancing: Automatically shifts traffic when encountering rate limits (HTTP 429) or transient token expirations (HTTP 401).
- Safe Background Sync: Non-intrusive, jitter-protected background quota updates.
- Modernized UI/UX: Distinct branded SVG controls for Antigravity Classic, Antigravity IDE, and Antigravity CLI (
agy), with clean modal inspection and floating action popovers.
2. ๐ Universal Protocol Translation (API Gateway)
- OpenAI Compatible: Standard
/v1/chat/completionsendpoint for plug-and-play compatibility with Cursor, Cherry Studio, NextChat, OpenCode, and Windsurf. - Anthropic Messages Protocol: Native
/v1/messagesendpoint with full reasoning/thinking chain support, custom system prompts, and native compatibility with Claude Code CLI. - Google Gemini Protocol: Direct support for native Gemini SDK clients.
3. ๐จ High-Definition Image Generation (Imagen 3)
- Support for arbitrary aspect ratios (1:1, 16:9, 9:16, 4:3, 21:9) and resolutions up to 4K via standard OpenAI image parameters or chat prompts.
๐ Quick Integration
1. Claude Code CLI
Start the API proxy in Antigravity-Shield (default port: 8045), then run in your terminal:
export ANTHROPIC_API_KEY="sk-antigravity"
export ANTHROPIC_BASE_URL="http://127.0.0.1:8045"
claude
On Windows PowerShell:
$env:ANTHROPIC_API_KEY = "sk-antigravity"
$env:ANTHROPIC_BASE_URL = "http://127.0.0.1:8045"
claude
2. Cursor / Windsurf / Cherry Studio / NextChat (OpenAI Protocol)
- Base URL:
http://127.0.0.1:8045/v1 - API Key:
sk-antigravity(or your configured custom key in Settings) - Models:
gemini-3-pro-high,gemini-3-flash,claude-sonnet-4-6
3. Python SDK Example
import openai
client = openai.OpenAI(
api_key="sk-antigravity",
base_url="http://127.0.0.1:8045/v1"
)
response = client.chat.completions.create(
model="gemini-3-flash",
messages=[{"role": "user", "content": "Explain quantum computing in 3 sentences."}]
)
print(response.choices[0].message.content)
๐๏ธ Architecture
graph TD
Client([Client: Claude Code / Cursor / Cherry Studio]) -->|OpenAI / Anthropic Protocol| Gateway[Antigravity-Shield Axum Gateway]
Gateway --> SecurityMiddleware[Security: Auth / Rate Limiting / Jitter]
SecurityMiddleware --> ModelRouter[Model Router: Dynamic ID Mapping]
ModelRouter --> Dispatcher[Account Dispatcher: Smart Health & Weight Rotation]
Dispatcher --> RequestMapper[Protocol Request Mapper]
RequestMapper --> UpstreamSafe[Official Google Production APIs: cloudcode-pa.googleapis.com]
UpstreamSafe --> ResponseMapper[Protocol Response Mapper]
ResponseMapper --> Client
๐ฆ Installation
Pre-built Binaries (Recommended)
Download the latest binaries for your platform from GitHub Releases:
- Windows:
.exeinstaller or standalone.zip - macOS:
.dmg(Apple Silicon & Intel) - Linux:
.debor.AppImage
Running via Docker (Headless / Server)
docker run -d --name antigravity-shield \
-p 8045:8045 \
-e API_KEY=sk-your-api-key \
-e WEB_PASSWORD=your-admin-password \
-v ~/.antigravity_shield:/root/.antigravity_shield \
doctorguidance/antigravity-shield:latest
โ๏ธ License & Attribution
- License: Distributed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). Strictly for personal, non-commercial use.
- Upstream Attribution: Antigravity-Shield is a hardened community continuation based on the open-source project lbjlaq/Antigravity-Manager created by lbjlaq and its contributors. All upstream copyrights, git history, and contributor credits are respectfully preserved.
- Privacy Guarantee: All OAuth tokens and account credentials remain 100% locally encrypted on your machine in a local SQLite database. No credentials or telemetry are ever sent to third-party tracking servers.
Maintained with โค๏ธ for account safety and reliable developer tooling.
Copyright ยฉ 2024-2026 Antigravity-Shield Contributors.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found


