While many methods exist, the current gold standard for this integration is Remoat, a pre-built, open-source bridge designed for security and ease of use. It creates a direct, authenticated link between the Telegram API and Antigravity's internal Chrome DevTools Protocol (CDP) port.
Here are the step-by-step instructions to turn your local IDE into a mobile-controllable assistant.
Before you can control the IDE, you need to create the bot you will chat with.
Launch BotFather: Open Telegram and search for @BotFather. This is the official bot for creating other bots.
Create New Bot: Send the message /newbot.
Name Your Bot: Follow the prompts to give your bot a name (e.g., MyIDEAgent) and a username that must end in bot (e.g., John_AG_Agent_Bot).
Save Your Token: BotFather will provide a long, secure Bot Token. Copy this string immediately; this is your key.
Get Your User ID: Search for @userinfobot on Telegram and send it any message. It will respond with your unique numerical User ID. You will use this ID to ensure the bot only responds to you.
You will need Node.js installed on the computer where Antigravity is running.
Global Installation: Open your terminal and install the Remoat bridge: npm install -g remoat (For macOS/Linux, you can also use Homebrew: brew tap optimistengineer/remoat && brew install remoat)
Run Configuration: Start the setup wizard by running: remoat setup
Provide Setup Details: The wizard will ask for three things:
Telegram Bot Token: Paste the token you got from BotFather.
Allowed User IDs: Paste your numerical User ID.
Workspace Directory: Provide the absolute file path to the main folder where your coding projects are located.
For the connection to work, Antigravity must be launched with its internal debugging ports exposed.
Restart Antigravity: If the IDE is open, close it completely.
Open via Bridge: In your terminal, launch Antigravity using the Remoat wrapper: remoat open
Start the Bridge: Now, start the listener process that connects to Telegram: remoat start
Go to your new bot's chat on your phone and send a read-only test message to confirm the bridge is active without risking code changes.
Test Prompt: "Agent, please list the names of the files that are currently open in the active editor tabs."
If your phone receives a reply listing your active files, congratulations—your full-time smart AI agent is now in your pocket, ready to fix problems from anywhere on earth.