
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
Control Claude Code from your phone via Telegram. Get notifications when Claude needs input, respond with buttons or text, and monitor progress from anywhere.
--dangerously-skip-permissions for unattended operationnpm install -g tg-claude
Just run the command — the setup wizard guides you through everything:
tg-claude
The wizard will:
.env automaticallyThat's it! Now run with a prompt:
tg-claude "Fix the bug in app.js"
npx tg-claude
Note: With npx, the
.envfile is created in your current directory. Run from your project folder.
To reconfigure your Telegram credentials anytime:
tg-claude --setup
tg-claude [options] "Your prompt"
| Flag | Description |
|---|---|
--setup | Run setup wizard to configure Telegram credentials |
--help, -h | Show help message |
--version, -v | Show version number |
--verbose | Show additional logging |
--debug | Enable debug output |
--quiet | Suppress bridge logs, show only Claude output |
# Basic usage
tg-claude "Explain this codebase"
# Verbose output
tg-claude --verbose "Refactor the auth module"
# Quiet mode (only Claude's output)
tg-claude --quiet "Write tests for user.ts"
# Using npx
npx tg-claude "Create a README"
| Variable | Required | Description |
|---|---|---|
TELEGRAM_BOT_TOKEN | Yes | Bot token from @BotFather |
TELEGRAM_USER_ID | Yes | Your numeric Telegram user ID |
Without Telegram credentials, the bridge runs in terminal-only mode.
tg-claude "your prompt"The bridge uses Claude's --output-format stream-json for structured events and --resume for session continuity.
Both terminal and Telegram can respond to prompts:
Only the configured TELEGRAM_USER_ID can interact with your bot. All other users are silently ignored.
Your user ID should be a numeric value like 123456789, not a username. Get it from @userinfobot.
Install Claude Code CLI:
npm install -g @anthropic-ai/claude-code
claude auth login
Fix npm permissions (recommended one-time fix):
sudo chown -R $(whoami) ~/.npm
Then install normally:
npm install -g tg-claude
Or use a custom npm prefix:
npm config set prefix ~/.npm-global
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g tg-claude
Avoid using sudo with npx — it creates files with root ownership which causes issues.
TELEGRAM_BOT_TOKEN and TELEGRAM_USER_ID are correctclaude auth status)git clone https://github.com/memehalis/tg-claude
cd tg-claude
npm install
npm run dev "test prompt"
MIT
FAQs
Bridge between Claude Code CLI and Telegram for mobile interaction
We found that tg-claude demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.