Observed since 21 Oct, 09:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Enterprise-grade Mobile Telegram Cockpit & Gateway for Google Antigravity (agy)
A bidirectional Telegram bridge for the Google Antigravity (agy) CLI. It connects to an active tmux session, allows remote command approval via inline keyboards, tracks agent turns in real time, and exposes a local Unix domain socket for system push notifications.
flowchart LR
subgraph Client
TG["Telegram Mobile / Desktop"]
end
subgraph Host
BOT["agy-telegram daemon"]
TMUX["tmux session (main:0.0)"]
AGY["Antigravity CLI"]
LOG["transcript.jsonl"]
SOCK["/tmp/agy-sentinel.sock"]
end
TG <--> BOT
BOT -->|"send-keys / paste-buffer"| TMUX
TMUX --> AGY
AGY -->|"Event stream"| LOG
LOG -->|"Byte-offset tail"| BOT
SOCK -->|"IPC Alerts (0600)"| BOT
tmux set-buffer and paste-buffer to paste large inputs atomically, avoiding character-by-character key lag.transcript.jsonl using persistent byte-offset seeking, reading only new appended records without full file scans./tmp/agy-sentinel.sock) with 0600 permissions and Linux peer credential validation (SO_PEERCRED) to prevent local spoofing.tmux installed and available in $PATHagy) configured and accessible in $PATHgit clone https://github.com/kappino/agy-telegram.git
cd agy-telegram
pip install -e .
This installs two executable commands:
agy-telegram: Main daemon and management CLI.agy-notify: Command-line tool to dispatch proactive alerts through the local IPC socket.Create the configuration directory and copy the template:
mkdir -p ~/.config/agy-telegram
cp config.example.toml ~/.config/agy-telegram/config.toml
Edit ~/.config/agy-telegram/config.toml:
[telegram]
bot_token = "123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ"
allowed_users = [123456789] # Numeric Telegram user ID (from @userinfobot)
[agent]
executable = "agy"
default_workspace = "."
default_model = "gemini-3.8-flash"
default_effort = "high"
timeout_seconds = 600
[sentinel]
enabled = true
socket_path = "/tmp/agy-sentinel.sock"
[mirror]
enabled = true
mode = "tmux"
target_session = "main:0.0"
log_file = "/tmp/agy-telegram-chat.log"
check_interval_seconds = 1.0
Environment Variables: Alternatively, configure credentials via
TELEGRAM_BOT_TOKENandTELEGRAM_ALLOWED_USER_IDin a local.envfile or environment variables.
tmux new -s main "agy"
agy-telegram start
Open your bot in Telegram and send /start. Plain text messages sent to the chat will be forwarded into the active Antigravity session.
| Command | Description |
|---|---|
/start | Displays status and persistent quick keyboard. |
/status | Runs host resource diagnostics (load average, memory, disk). |
/model | Displays the active LLM model and allows switching dynamically. |
/usage | Reports token usage, context window saturation, and turn steps. |
/autoedit | Toggles automatic approval for file modifications (accept-edits). |
/mode | Selects execution mode (accept-edits, default, plan). |
/new | Resets the active session and clears turn context. |
/sessions | Lists recent conversation IDs for resumption. |
/abort | Sends Ctrl+C interrupt to the active terminal session. |
/help | Shows operation manual. |
When the agent prompts for confirmation (e.g. running a shell command), inline buttons (Approve and Reject) appear directly in the chat.
agy-notify)Local scripts, cron jobs, or monitoring hooks can trigger immediate push notifications to Telegram:
# Info level
agy-notify --level info --title "Backup" --message "Database backup completed successfully."
# Warning level
agy-notify --level warning --title "Memory" --message "RAM usage exceeded 85%."
# Critical alert
agy-notify --level alert --title "Service Offline" --message "Nginx process is not responding."
To deploy agy-telegram as a persistent daemon on Linux:
sudo cp systemd/agy-telegram.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now agy-telegram
sudo systemctl status agy-telegram
The systemd unit includes security sandboxing directives (PrivateTmp=true, ProtectSystem=full, ProtectHome=read-only, and RuntimeDirectory=agy-telegram).
Install development dependencies:
pip install -e ".[dev]"
Run test suite:
python3 -m unittest discover tests
Released under the MIT License.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.1 | 28 Sept 2026 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6261016cff64a02158c88f55c504b0abf9e068cefc02ea662862aa6d367f96f0