Antigravity-Shield

skill
Security Audit
Fail
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.

SUMMARY

๐Ÿ›ก๏ธ Hardened, anti-ban AI account manager & proxy gateway for Antigravity & Gemini. Eliminates 403 Forbidden issues, prevents sandbox detection, and supports Claude Code & Cursor.

README.md

Antigravity-Shield ๐Ÿ›ก๏ธ

The Hardened, Anti-Ban AI Account Manager & Protocol Gateway (v5.0.0)

Antigravity Shield Logo

Your Dedicated Hardened High-Performance AI Gateway

Engineered for maximum account safety, zero sandbox detection, and seamless multi-account AI routing.

Version Anti-Ban Hardened E2E Tests Upstream Issues Resolved Tauri Rust React License

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

๐ŸŽ›๏ธ Account & Quota Dashboard ๐Ÿ“Š Activity Heatmap & Token Stats ๐Ÿ“ˆ Model Consumption Breakdown
Dashboard Accounts Quota Monitor Token Stats Heatmap Model Consumption Breakdown
Multi-tier quota status & quick switches 37-day activity map & usage curves Per-model requests, input/output & share

๐ŸŒŸ 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/completions endpoint for plug-and-play compatibility with Cursor, Cherry Studio, NextChat, OpenCode, and Windsurf.
  • Anthropic Messages Protocol: Native /v1/messages endpoint 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: .exe installer or standalone .zip
  • macOS: .dmg (Apple Silicon & Intel)
  • Linux: .deb or .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)

No results found