Â
PHAM HUU PHUC AN
Practical Guide·19/11/2026·6 min read

TeleGravity: Controlling Google Antigravity Remotely 24/7 via Telegram Without an API Key

Explore TeleGravity — an open-source bridge that lets you operate Google Antigravity 24/7 via Telegram with two-way desktop sync and no API Key required.

TeleGravity: Controlling Google Antigravity Remotely 24/7 via Telegram Without an API Key

The Bottleneck of Working with AI Agents Away from Your Desk

Next-generation AI Agents like Google Antigravity are fundamentally transforming how we write code, standardize documentation, and orchestrate digital projects. Yet for professionals who frequently travel, deliver corporate workshops, or conduct on-site advisory sessions, a persistent bottleneck remains: your AI assistant is still tethered to your desktop screen.

When a crucial idea strikes on the road, or an urgent operational task needs attention without opening a laptop, workflow momentum breaks immediately. Meanwhile, building ad-hoc chat bots via external REST APIs introduces three major barriers:

  1. Ongoing token costs tied to commercial API keys.
  2. Fragmented working context, as bot conversations remain completely isolated from your desktop application.
  3. Lack of safe execution governance whenever an AI needs to run shell commands or modify sensitive project files.

TeleGravity was built to solve all three challenges cleanly. Released as an open-source project (MIT License) at github.com/phamhuuphucan/TeleGravity, it bridges Google Antigravity directly to Telegram — turning your smartphone into a calm, secure, 24/7 mobile command center.


Three Architectural Pillars Behind TeleGravity

Rather than functioning as a basic Q&A wrapper, TeleGravity is engineered as a structured system bridge built on three core pillars:

1. Direct Agent Client Protocol (agy acp) Communication — No API Key Needed

TeleGravity does not rely on pay-per-token REST APIs. Instead, its core engine (bot.py) acts as a compliant ACP Client, communicating bidirectionally via JSON-RPC 2.0 over stdio with the agy acp process of the Antigravity CLI.

By leveraging the Google account already authenticated inside your local or VPS Antigravity CLI, the bridge unlocks full file editing, command execution, and multi-step agent capabilities with zero additional API key expenses.

2. Two-Way Session & Project Synchronization with the Desktop App

A common technical limitation of the Antigravity CLI is that command-line sessions default to a separate bucket (default-cli-project), making them invisible under your organized projects inside the Antigravity Desktop App.

TeleGravity resolves this through a four-step synchronization routine (sync_antigravity_projects) executed after each turn:

  • Workspace-to-Project UUID Mapping: Matches the active workspace folder against ~/.gemini/config/projects/*.json (or automatically creates a compliant project entry if it has never been opened in the Desktop App).
  • SQLite Database Alignment: Updates both conversation_summaries.db (including its embedded binary Protobuf project field) and individual session metadata databases.
  • Atomic Protobuf Cache Rebuild: Atomically regenerates agyhub_summaries_proto.pb and jetbox_summaries_proto.pb so the Desktop App’s conversation manager reflects updates immediately.

The result is true operational continuity: start a task on your desktop → head out, open Telegram, type /sessions, and continue on your phone — or initiate work on Telegram → return to your computer and find the entire history neatly filed under the right project.

3. Interactive Permission Approval (Human-in-the-Loop)

In system governance, automation must never mean surrendering oversight. Whenever the AI Agent requests to run a shell command (run_command) or touch sensitive files, TeleGravity dispatches an interactive inline prompt right inside Telegram:

  • Allow once or Always allow for trusted operations.
  • Reject immediately if a proposed action looks off-scope.
  • Switch oversight modes anytime via /mode (default, accept-edits, plan), protected by strict User ID Whitelisting so only the verified owner can control the workspace.

Practical Daily Workflows Inside Telegram

TeleGravity supports multimodal instructions — text messages, voice notes, UI screenshots, and forwarded files — backed by a smart non-blocking queue so you can send follow-up directions seamlessly.

Functional Group Key Commands Practical Operational Value
Project & Session Control /projects, /cd, /sessions, /new, /stop Switch rapidly across repositories while automatically remembering each project’s active session.
Personal Assistant & Files /pa, /todo, /note, /remind, /file Manage tasks (TODOS.md), quick notes (NOTES.md), scheduled reminders/recurring AI runs, and fetch files from your machine (up to 50 MB).
Agent Governance /model, /mode, /auto, /status, /restart Switch AI models (Gemini, Claude, etc.), adjust permission rigor, and restart the bridge remotely.
Autonomous Workflows /goal, /plan, /browser Forward native Antigravity slash commands directly from your phone.

Clean 3-Step Deployment Across Platforms

TeleGravity supports macOS (launchd), Linux / Cloud VPS / WSL2 (systemd), and Windows Native (Task Scheduler via PowerShell), complete with full documentation in 9 languages inside docs/.

Step 1: Prepare Your Telegram Credentials

  1. Message @BotFather on Telegram, run /newbot, and save your TELEGRAM_BOT_TOKEN.
  2. Message @userinfobot to retrieve your numeric Id for strict access whitelisting.
  3. Ensure Antigravity CLI (agy) is installed and authenticated with your Google account.

Step 2: One-Touch Installation & Background Service

On macOS / Linux / Windows (WSL2):

git clone https://github.com/phamhuuphucan/TeleGravity.git
cd TeleGravity

# Create .venv, install dependencies, and configure .env
./setup.sh

# Install as a 24/7 auto-starting background service
./service.sh install

On Windows (PowerShell):

git clone https://github.com/phamhuuphucan/TeleGravity.git
cd TeleGravity

.\service.ps1 setup
.\service.ps1 install

Step 3: Optional 24/7 Cloud VPS Operation

If you want your AI Agent available even when your personal laptop is closed, follow docs/02-vps-deployment-24-7.md in the repository. It walks through headless Linux VPS deployment, secure Google OAuth login via SSH Port Forwarding, and resilient systemd service management.


Core Principles for Operating Remote AI Agents

The true value of any digital transformation tool does not lie in code complexity, but in helping people work with greater clarity, calm, and intentional control. When taking AI Agents mobile with TeleGravity, uphold three guiding principles:

  1. Access discipline comes first: Keep your User ID whitelist strictly locked and reserve /auto on strictly for low-risk workflows.
  2. Maintain a single source of truth: Leverage two-way sync so every note, draft, and codebase edit lives cleanly inside its canonical project directory rather than scattering across devices.
  3. Keep humans at the helm: Let the AI absorb repetitive execution while you stay focused on architectural thinking, quality verification, and final decisions.

Explore the full source code, deploy it freely under the MIT License, or contribute improvements at: https://github.com/phamhuuphucan/TeleGravity.

Pham Huu Phuc AnPham Huu Phuc An
Topics:TeleGravity ·Google Antigravity ·Telegram Bridge ·Practical Applied AI ·Open Source
← All Insights

CONTACT

For enterprises, organizations, and functional units looking to discuss in-house training programs, digital transformation programs, and green transformation programs.