The remote controller for your Antigravity.
Supports Windows, Linux, and macOS (including Docker) with Antigravity IDE.
Gagaclaw is a bridge layer that connects messaging platforms (Telegram, CLI) to Antigravity IDE, turning it into a remotely controllable AI agent.
It intercepts Antigravity's internal communication via Chrome DevTools Protocol (CDP), allowing you to send prompts, receive streamed responses, approve tool permissions, and manage sessions — all from your phone or terminal.
- Telegram Bot — Full-featured bot with inline keyboard buttons, streaming responses, file upload/download, and command autocomplete
- CLI Interface — Terminal-based interactive session with colored output
- Multi-Model Support — Switch between Gemini, Claude, and GPT models on the fly
- Cron Scheduler — Schedule recurring AI tasks with customizable model/mode per job
- MCP Server — Includes
gagaclaw_recommend_mcpfor Groq audio transcription and Telegram file sending - Permission System — Inline keyboard approval/denial for tool calls, with optional YOLO auto-approve mode
- Workspace System — Isolated workspaces with per-workspace personality (
soul.md) and memory (memory.md)
- Windows 10/11, Linux (Ubuntu 20.04+, Debian 11+, etc.), or macOS
- Node.js 18+
- Antigravity IDE
- A Telegram bot token (from @BotFather)
- (Optional) Groq API key for audio transcription
gagaclaw.json fields:
| Field | Description |
|---|---|
telegram.token |
Bot token from @BotFather |
telegram.allowedUsers |
Array of authorized Telegram user IDs (first entry is also used as admin chat for MCP/cron notifications) |
app.name |
IDE application name |
app.targetExecutables |
Process names to detect |
activeWorkspace |
Active workspace folder name |
yoloMode |
true = auto-approve all tool calls, false = ask for approval |
groq.apiKey |
Groq API key for audio transcription (optional) |
defaults.model |
Model ID (e.g. MODEL_PLACEHOLDER_M37). Must use full ID, not shorthand keys. See MODELS in core.js for available IDs. |
defaults.mode |
planning or fast |
defaults.agentic |
Enable tool usage by default |
defaults.cdpPorts |
Chrome DevTools Protocol ports to connect |
defaults.cdpHost |
CDP host address |
Jump to the One-Click AI Setup section at the bottom — open a fresh Antigravity workspace, paste the prompt, and the AI handles everything (clone, install, configure, MCP registration).
| Command | Description |
|---|---|
/help |
Show help |
/new |
Start new conversation |
/stop |
Stop current response |
/list |
List conversations (with switch/delete buttons) |
/model |
Switch AI model (inline keyboard) |
/mode |
Switch mode — planning / fast |
/agentic |
Toggle tool usage ON/OFF |
/yolo |
Toggle auto-approve ON/OFF |
/ws |
Switch workspace |
/cron |
Manage scheduled tasks |
/restart |
Warm or cold restart |
All commands support both inline keyboard buttons (tap to select) and text arguments (e.g., /model flash).
Gagaclaw can run scheduled AI tasks automatically. Copy the example and edit:
cp cronjobs.example.json cronjobs.jsonExample job in cronjobs.json:
{
"jobs": [
{
"id": "news-hourly",
"enabled": true,
"cron": "0 * * * *",
"prompt": "Find 5 trending news articles that match my interests",
"model": "high",
"mode": "fast",
"agentic": true,
"notify": { "telegram": 123456789 }
}
]
}| Field | Description |
|---|---|
id |
Unique job identifier |
enabled |
true / false |
cron |
Cron expression (min hour day month weekday) |
prompt |
The prompt to send to AI |
model |
flash / low / high / opus / sonnet / gpt (optional, defaults to gagaclaw.json) |
mode |
planning / fast (optional) |
agentic |
Enable tool usage (optional) |
notify |
{ "telegram": true } to send results to Telegram |
cascadeId |
Reuse a specific conversation; omit to create new each time |
Manage jobs in Telegram with /cron (shows ON/OFF toggle buttons per job).
The included gagaclaw_recommend_mcp provides two tools:
groq_transcribe— Transcribe audio files to text using Groq Whisper APItelegram_send_file— Send files to Telegram admin chat (auto-converts.mdto.html)
To register it in Antigravity:
- Refer to
mcp_config.jsonin the project root as a template (do not edit it directly) - Create the MCP config directly in Antigravity's config directory, with the absolute path to
index.js:- Windows:
%USERPROFILE%\.gemini\antigravity\mcp_config.json - Linux/macOS:
~/.gemini/antigravity/mcp_config.json
- Windows:
The IDE only reads MCP config from ~/.gemini/antigravity/ — always edit it there.
gagaclaw/
├── core.js # Core engine (CDP, auth, session, streaming)
├── telegram.js # Telegram bot interface
├── cli.js # CLI interface
├── cronjob.js # Cron scheduler
├── cron.js # Cron helper
├── gagaclaw.json # Main config (not in repo, copy from example)
├── gagaclaw.example.json # Config template
├── cronjobs.json # Cron job definitions
├── mcp_config.json # MCP config template (do not edit, copy to ~/.gemini/antigravity/)
├── package.json # Dependencies
├── gagaclaw_recommend_mcp/ # MCP server (groq_transcribe + telegram_send_file)
│ └── index.js
├── docs/
│ ├── setup-en.md # English setup prompt
│ └── setup-zh.md # 繁體中文安裝提示詞
├── .agents/rules/
│ ├── rules.example.md # AI behavior rules (template)
│ └── rules.md # AI behavior rules (copy from example, not in repo)
└── workspace/ # AI workspace
├── soul.example.md # Workspace personality (template)
├── soul.md # Workspace personality (copy from example, not in repo)
├── memory.example.md # Workspace memory (template)
└── memory.md # Workspace memory (copy from example, not in repo)
This project is provided for research and educational purposes only.
- No Guarantee on AI Results: AI-generated outputs may contain errors, inaccuracies, or unexpected behavior.
- Risk of Data Loss & System Damage: The AI has the ability to execute commands on your machine. The author makes no warranties and assumes no responsibility for any accidental data deletion, broken environments, or system modifications caused by AI operation errors (especially when YOLO mode is enabled).
- Security & Privacy Risks: The AI has access to your local filesystem. It may inadvertently read or transmit sensitive information, credentials, or private data to external AI models. Do not use this tool with highly confidential data without strict oversight.
- Third-Party Costs: This tool utilizes external APIs (e.g., Groq, Gemini, Claude, OpenAI). Users are solely responsible for any API usage charges or associated costs incurred.
- Account Suspension Risk: Using automated tools or bots may violate the terms of service of certain platforms, leading to the risk of your accounts (e.g., Google, Telegram) being suspended or banned.
Use at your own risk.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
- You are free to use, modify, and distribute this software
- Any derivative work must also be open-sourced under the same license
- You must retain the original copyright notice and license
- This software comes with absolutely no warranty
Open a fresh Antigravity workspace, paste the setup prompt, and the AI handles everything.
English Setup Prompt | 繁體中文安裝提示詞
The remote controller for your Antigravity. (你的專屬 Antigravity 遠端遙控器)
支援 Windows、Linux 和 macOS(含 Docker),搭配 Antigravity IDE 使用。
Gagaclaw 是一個橋接層,將通訊平台(Telegram、CLI)連接到 Antigravity IDE,讓它變成一個可遠端控制的 AI 代理人。
透過 Chrome DevTools Protocol(CDP)攔截 Antigravity 的內部通訊,讓你可以從手機或終端機發送提示詞、接收串流回應、核准工具權限、管理對話 — 一切盡在掌控。
- Telegram Bot — 完整功能的機器人,支援行內鍵盤按鈕、串流回應、檔案上傳/下載、指令自動完成
- CLI 介面 — 終端機互動式對話,支援彩色輸出
- 多模型支援 — 隨時切換 Gemini、Claude、GPT 模型
- 排程任務 — 透過 Cron 排程自動執行 AI 任務,每個任務可自訂模型/模式
- MCP 伺服器 — 內建
gagaclaw_recommend_mcp,提供 Groq 語音轉文字與 Telegram 檔案傳送 - 權限系統 — 工具呼叫的行內鍵盤核准/拒絕,可選 YOLO 自動核准模式
- 工作區系統 — 獨立的工作區,每個工作區有專屬個性設定(
soul.md)與記憶(memory.md)
- Windows 10/11、Linux(Ubuntu 20.04+、Debian 11+ 等)或 macOS
- Node.js 18+
- Antigravity IDE
- Telegram 機器人 Token(從 @BotFather 取得)
- (選用)Groq API Key 用於語音轉文字
gagaclaw.json 欄位說明:
| 欄位 | 說明 |
|---|---|
telegram.token |
從 @BotFather 取得的 Bot Token |
telegram.allowedUsers |
授權的 Telegram 使用者 ID 陣列(第一個也作為 MCP/排程通知的管理員聊天室) |
app.name |
IDE 應用程式名稱 |
app.targetExecutables |
要偵測的程序名稱 |
activeWorkspace |
啟用的工作區資料夾名稱 |
yoloMode |
true = 自動核准所有工具呼叫,false = 詢問後核准 |
groq.apiKey |
Groq API Key,用於語音轉文字(選用) |
defaults.model |
模型 ID(例如 MODEL_PLACEHOLDER_M37)。必須使用完整 ID,不可使用簡寫 key。可用模型請參考 core.js 中的 MODELS。 |
defaults.mode |
planning 或 fast |
defaults.agentic |
預設是否啟用工具使用 |
defaults.cdpPorts |
Chrome DevTools Protocol 連接埠 |
defaults.cdpHost |
CDP 主機位址 |
前往下方 一鍵 AI 安裝 章節 — 開啟一個新的 Antigravity 工作區,貼上提示詞,AI 會自動完成所有事項(複製、安裝、設定、MCP 註冊)。
| 指令 | 說明 |
|---|---|
/help |
顯示說明 |
/new |
開始新對話 |
/stop |
停止目前回應 |
/list |
列出對話(含切換/刪除按鈕) |
/model |
切換 AI 模型(行內鍵盤) |
/mode |
切換模式 — planning / fast |
/agentic |
開關工具使用 |
/yolo |
開關自動核准 |
/ws |
切換工作區 |
/cron |
管理排程任務 |
/restart |
熱重啟或冷重啟 |
所有指令皆支援行內鍵盤按鈕(點選選擇)與文字參數(例如 /model flash)。
Gagaclaw 可以自動執行排程 AI 任務。複製範本並編輯:
cp cronjobs.example.json cronjobs.jsoncronjobs.json 範例:
{
"jobs": [
{
"id": "news-hourly",
"enabled": true,
"cron": "0 * * * *",
"prompt": "找 5 篇符合我興趣的熱門新聞",
"model": "high",
"mode": "fast",
"agentic": true,
"notify": { "telegram": 123456789 }
}
]
}| 欄位 | 說明 |
|---|---|
id |
唯一任務識別碼 |
enabled |
true / false |
cron |
Cron 表達式(分 時 日 月 星期幾) |
prompt |
要傳送給 AI 的提示詞 |
model |
flash / low / high / opus / sonnet / gpt(選用,預設使用 gagaclaw.json) |
mode |
planning / fast(選用) |
agentic |
啟用工具使用(選用) |
notify |
{ "telegram": true } 將結果傳送到 Telegram |
cascadeId |
重複使用特定對話;省略則每次建立新對話 |
在 Telegram 中使用 /cron 管理任務(顯示每個任務的 ON/OFF 按鈕)。
內建的 gagaclaw_recommend_mcp 提供兩個工具:
groq_transcribe— 使用 Groq Whisper API 將音訊檔轉為文字telegram_send_file— 傳送檔案到 Telegram 管理員聊天室(自動將.md轉換為.html)
在 Antigravity 中註冊:
- 參考專案根目錄的
mcp_config.json作為範本(請勿直接編輯) - 直接在 Antigravity 的設定目錄中建立 MCP 設定檔,填入
index.js的絕對路徑:- Windows:
%USERPROFILE%\.gemini\antigravity\mcp_config.json - Linux/macOS:
~/.gemini/antigravity/mcp_config.json
- Windows:
IDE 只會從 ~/.gemini/antigravity/ 讀取 MCP 設定 — 請一律在該位置編輯。
gagaclaw/
├── core.js # 核心引擎(CDP、認證、會話、串流)
├── telegram.js # Telegram 機器人介面
├── cli.js # CLI 介面
├── cronjob.js # 排程執行器
├── cron.js # 排程輔助工具
├── gagaclaw.json # 主設定檔(不在 repo 中,從範本複製)
├── gagaclaw.example.json # 設定範本
├── cronjobs.json # 排程任務定義
├── mcp_config.json # MCP 設定範本(勿直接編輯,複製到 ~/.gemini/antigravity/)
├── package.json # 相依套件
├── gagaclaw_recommend_mcp/ # MCP 伺服器(groq_transcribe + telegram_send_file)
│ └── index.js
├── docs/
│ ├── setup-en.md # English 安裝提示詞
│ └── setup-zh.md # 繁體中文安裝提示詞
├── .agents/rules/
│ ├── rules.example.md # AI 行為規則(範本)
│ └── rules.md # AI 行為規則(從範本複製,不在 repo 中)
└── workspace/ # AI 工作區
├── soul.example.md # 工作區個性(範本)
├── soul.md # 工作區個性(從範本複製,不在 repo 中)
├── memory.example.md # 工作區記憶(範本)
└── memory.md # 工作區記憶(從範本複製,不在 repo 中)
本專案僅供研究與教育用途。
- 不保證 AI 結果: AI 產生的輸出可能包含錯誤、不準確或非預期的行為。
- 資料遺失與系統損壞風險: AI 具有在您機器上執行指令的能力。對於 AI 操作錯誤(特別是在啟用 YOLO 自動核准模式下)所導致的任何誤刪資料、環境破壞或系統變更,作者不提供任何形式的保證,亦不承擔任何連帶責任。
- 資安與隱私風險: AI 可存取您的本機檔案系統,可能會不慎讀取或將敏感資訊、帳號密碼或私人數據傳輸給外部 AI 模型。在沒有嚴格監控的情況下,請勿將本工具用於處理高機密資料。
- 第三方 API 費用: 本工具會呼叫外部 API(如 Groq、Gemini、Claude、OpenAI)。使用者須自行承擔因 AI 呼叫所產生的任何 API 費用或相關成本。
- 帳號停權風險: 使用自動化工具或機器人可能違反部分平台的服務條款,存在導致您的帳號(例如 Google、Telegram)被鎖定或封禁的風險。
使用風險自負。
本專案採用 GNU 通用公共授權條款 v3.0(GPL-3.0)。
- 您可以自由使用、修改及散佈本軟體
- 任何衍生作品必須以相同授權條款開源
- 您必須保留原始版權聲明與授權條款
- 本軟體完全不提供任何保證
開啟一個新的 Antigravity 工作區,貼上安裝提示詞,AI 就會自動完成一切。
