Ghostty + Claude Code Telegram bridge
Get notified on your phone when Claude finishes a task or needs input — reply to inject text back into the terminal, or chat with Claude directly.
cargo install ghost-codeZero-latency hook architecture
Security notice — ghost-code has high system privileges: terminal injection via Accessibility API, file system access to ~/.claude/, and keychain reads. Your Telegram bot token grants terminal access — keep it secret. Details →
Everything you need to stay connected to Claude
Silent Telegram notifications when Claude finishes a task, with cost and duration.
Immediate forwarding when Claude needs your input, with full context.
Inline Allow/Deny buttons for tool-use requests — approve from your phone.
Real-time model, cost, plan usage, context window, and aid task metrics.
Send messages to Claude directly from Telegram with live streaming responses.
Replies route back to the originating Ghostty tab via session mapping.
Hostname identification lets you run ghost-code on multiple machines.
Suppresses quota recovery spam and system events automatically.
Automatic caffeinate keeps your Mac awake during long tasks.
flock-based daemon ensures exactly one bot process with graceful shutdown.
Two commands to get going
$ cargo install ghost-code$ ghost-code setup# Edit ~/.claude/hooks/ghost-code.env with your bot token$ ghost-code test
Real-time metrics in Claude Code's bottom bar