Skip to content
المشاريع

feiyuggg/antigravity-account-manager

عرض على GitHub

حول

macOS Electron account manager for Google Antigravity using environment isolation and exclusive agy acp authentication

الأمان والخصوصية

كيف تُقاس هذه الأرقام

12 نجمة2 التفرعات +1 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
Antigravity Account Manager

Antigravity Account Manager

Cross-platform, zero-relogin account switcher for Google Antigravity
macOS Apple Silicon · Windows x64 · Linux x64 / arm64

Latest Release v1.2.5 macOS | Windows | Linux Official agy acp MIT License

English  |  简体中文

Download · Screenshots · Key Features · Architecture · Quick Start · Development

[!TIP] Download the latest release (v1.2.5): visit GitHub Releases (Latest), browse All Releases, or jump directly to the platform download table.

Antigravity Account Manager lets you switch between multiple Google Antigravity accounts in one click without signing in again every time. It isolates each account's OS-specific runtime environment (macOS HOME / CFFIXED_USER_HOME + dedicated Keychain, Windows USERPROFILE / APPDATA / LOCALAPPDATA, Linux HOME / XDG_*), authenticates exclusively via the official agy acp CLI, and seamlessly preserves your conversation history, projects, MCP configs, skills, and plugins across slots.


Screenshots

Account Overview and Environment Isolation
Account Overview & Environment Isolation — Monitor active runtime status, adopt existing logins, and switch slots with one click.

Browser ACP Auth & Email Detection Launch Flags, Hooks & Shared Data ACP & Isolation Audit Log
One-Click Browser ACP Auth Launch Flags and Hooks ACP Audit Log

Key Features

Zero-Relogin Environment Isolation

Each slot receives its own isolated directory tree: HOME / CFFIXED_USER_HOME + dedicated login.keychain-db on macOS, USERPROFILE / APPDATA / LOCALAPPDATA on Windows, and HOME / XDG_* on Linux. Credentials stay completely isolated so restarting into any account requires no re-login.

Official agy acp Auth & Auto Email

Click One-Click Add Account (Browser Auth) to launch the official agy acp OAuth flow (also supports terminal agy acp --login and enterprise Cloud OAuth). Account emails are automatically detected to name each slot cleanly.

Seamless Software Config, Data & Plugin Continuity

Automatically syncs the previous account's non-credential software configuration (config.json userSettings / plugin & sidecar toggles, app_storage.json UI preferences, window_state.json, antigravity_state.pbtxt, GEMINI.md, IDE User/ settings) plus shared conversations, brain, annotations, scratch, chapter_titles, conversation_summaries.db, agyhub_summaries_proto.pb, projects, mcp_config.json, global skills / plugins / rules, and obsidian-prism telemetry across switches, while keeping credentials and login identity strictly isolated.

Reopen Guard & Runtime Detection

Detects the running Antigravity instance's real --user-data-dir in real time. When Keep Selected Account is enabled, accidental manual reopens from Dock / Spotlight that fall back to the default profile are intercepted and restored automatically.

One-Click GitHub Auto-Updater

Built-in GitHub Releases updater accessible from the top bar, Settings, and tray menu. Automatically verifies SHA-256 checksums and code signatures before replacing the app bundle and restarting.

CDP Flags & Post-Restart Plugin Hooks

Passes custom flags such as --remote-debugging-port=58321, syncs DevToolsActivePort, waits for the workbench CDP target, prepends modern Node 22+ to PATH, and runs ordered post-restart hooks for extensions like obsidian-prism and antigravity-context-viewer.

Minimal Tray & Full Audit Log

Uses an icon-only tray indicator by default to avoid notch menu-bar crowding, with an optional fixed-width slot badge (#1 / #2). Every agy acp RPC call, isolation prep step, and hook execution is recorded with timings in the built-in Audit Log.

Cross-Platform & Bilingual UI (EN / 简体中文)

Prebuilt packages for macOS Apple Silicon (arm64), Windows (x64 portable), and Linux (x64 / arm64). Automatically matches your OS locale on first launch (English or Simplified Chinese) and can be switched anytime in Settings or the tray menu.

Download

Browse the Latest Release (v1.2.5), view the v1.2.5 Release Notes, check All Releases, or download directly below:

Platform / Architecture Package Notes
macOS (arm64 Apple Silicon) Antigravity-Account-Manager-1.2.5-macOS-arm64.dmg Recommended — open and drag to Applications
macOS (arm64 Apple Silicon) Antigravity-Account-Manager-1.2.5-macOS-arm64.zip Portable archive, extract and run
Windows (x64 Portable) Antigravity-Account-Manager-1.2.5-Windows-x64.zip Extract and run Antigravity Account Manager.exe
Linux (x64 / x86_64) Antigravity-Account-Manager-1.2.5-Linux-x64.tar.gz Extract, run ./antigravity-account-manager (optional ./install-desktop.sh)
Linux (arm64) Antigravity-Account-Manager-1.2.5-Linux-arm64.tar.gz Extract, run ./antigravity-account-manager (optional ./install-desktop.sh)
Checksums SHA256SUMS.txt SHA-256 verification manifest
First-launch OS security prompts (macOS / Windows / Linux)
  • macOS: Releases currently use a local ad-hoc signature without Apple notarization. If Gatekeeper reports "app is damaged" or "unverified developer" after moving to /Applications, run once in Terminal:
    xattr -cr "/Applications/Antigravity Account Manager.app"
    
  • Windows: If SmartScreen warns about an unrecognized app, click More info -> Run anyway.
  • Linux: If your kernel restricts unprivileged user namespaces for Chromium sandboxing, either fix sandbox permissions or pass --no-sandbox:
    sudo chown root:root chrome-sandbox && sudo chmod 4755 chrome-sandbox
    

How It Works

flowchart LR
  UI["Antigravity Account Manager<br/>Electron + React UI"] -->|"1. agy acp (OAuth / Session Check)"| ACP["Official agy CLI<br/>ACP Protocol Only"]
  UI -->|"2. Prepare Slot Sandbox"| ISO["~/.antigravity-accounts/profiles/<slot-id>/"]
  ISO -->|"Isolated Auth Store"| AUTH["macOS: HOME + login.keychain-db<br/>Windows: USERPROFILE / AppData<br/>Linux: HOME / XDG_*"]
  ISO -->|"Non-Credential Shared Sync"| SHARED["Primary ~/.gemini/<br/>conversations / brain / projects / skills / plugins"]
  UI -->|"3. Launch with Isolated Env & Flags"| APP["Google Antigravity"]
  APP -->|"4. Sync DevToolsActivePort & Wait CDP Ready"| HOOKS["Post-Restart Hooks<br/>(Obsidian Prism / Context Viewer)"]

Quick Start

  1. Prerequisites: Install Google Antigravity and the official agy CLI (typically at ~/.local/bin/agy or via your package manager; configurable inside Isolation & Settings).
  2. Adopt Current Login (Optional): If an Antigravity account is already signed in on your machine, click Adopt Current System Login as Slot #1 to preserve it safely.
  3. Add New Accounts: Click One-Click Add Account (Browser Auth) in the top bar. The app initializes a fresh isolated environment, launches agy acp browser OAuth, and auto-detects the signed-in email.
  4. Switch Anytime: Click Switch & Restart Antigravity on any slot card (or select a slot from the tray menu). Antigravity gracefully restarts into that slot's isolated environment without requiring re-login.

CDP Plugin Integration

In Isolation & Settings:

  • Antigravity Extra Launch Args: --remote-debugging-port=58321
  • Post-Restart Auto Commands: add one or more hooks to attach extensions after switch/restart:
    • Obsidian Prism: cd /path/to/obsidian-prism && npm run inject
    • Context Viewer: node /path/to/antigravity-context-viewer/cli.js live --no-launch

[!WARNING] Never append --relaunch inside a post-restart hook command. Doing so causes the plugin itself to relaunch Antigravity under the default system HOME, reverting your active account back to the default profile.


Compliance & Security

[!IMPORTANT] Strictly designed around official boundaries — no credential scraping, no private APIs.

Boundary Guarantee
Official agy acp Only All login, logout, and session checks invoke the official agy acp subprocess directly.
Zero Credential Parsing Never reads secrets out of system or isolated Keychains, nor parses OAuth tokens, refresh tokens, or cookies.
Zero Unauthorized APIs Does not contain or call any quota, usage, balance, or billing query endpoints; includes built-in source-level privacy and compliance checks.

Development & Build

Local development commands and cross-platform packaging outputs
# 1. Install dependencies
npm install

# 2. Typecheck & unit tests
npm run typecheck
npm test

# 3. Start local development mode
npm run dev

# 4. Regenerate documentation screenshots (headless Electron)
npm run build && env -u ELECTRON_RUN_AS_NODE ./node_modules/.bin/electron scripts/capture-screenshots.mjs

# 5. Package macOS Apple Silicon Release (.app / .dmg / .zip / SHA256SUMS.txt)
npm run release:macos

# 6. Cross-package Windows x64 & Linux x64 / arm64 (or package all platforms)
npm run release:cross
npm run release:all

Generated artifacts are placed in release/:

  • Antigravity Account Manager.app
  • Antigravity-Account-Manager-<version>-macOS-arm64.dmg
  • Antigravity-Account-Manager-<version>-macOS-arm64.zip
  • Antigravity-Account-Manager-<version>-Windows-x64.zip
  • Antigravity-Account-Manager-<version>-Linux-x64.tar.gz
  • Antigravity-Account-Manager-<version>-Linux-arm64.tar.gz
  • SHA256SUMS.txt

License

Released under the MIT License.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…