npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

telegram-claude-code

v1.0.0

Published

Control Claude Code remotely via Telegram

Downloads

117

Readme

telegram-claude-code

Control Claude Code remotely via Telegram. Send messages from anywhere and let Claude Code edit files, run commands, and manage your projects — all through a Telegram bot.

How it works

You (Telegram) → Bot (thin proxy) → Claude Agent SDK → Your machine

The bot is a thin proxy — it just routes messages between Telegram and the Claude Agent SDK. All the heavy lifting (conversation context, file editing, code execution) is handled by Claude Code itself.

Features

  • Remote Claude Code access — interact with Claude Code from your phone or any device with Telegram
  • Session persistence — conversations are maintained between messages and survive bot restarts
  • File sharing — files created or edited by Claude Code are sent as Telegram documents
  • Whitelist auth — only authorized Telegram users can interact with the bot
  • Cross-platform — works on Linux, macOS, and Windows
  • Simple CLI — interactive setup wizard, one command to start

Prerequisites

Installation

npm install -g telegram-claude-code

Or run directly with npx:

npx telegram-claude-code init

Quick Start

1. Setup

telegram-claude-code init

The wizard will ask for:

  • Telegram bot token — from BotFather
  • Your chat ID — who can use the bot
  • Working directory — where Claude Code will operate

2. Start the bot

telegram-claude-code start

3. Chat

Open your bot on Telegram and start sending messages. Claude Code will respond just like it does in the terminal.

Telegram Commands

| Command | Description | |---------|-------------| | /start | Show welcome message and usage info | | /new | Start a new conversation (clear session) | | /cwd <path> | Change the working directory |

Any other text message is sent directly to Claude Code.

CLI Commands

# Interactive setup
telegram-claude-code init

# Start the bot
telegram-claude-code start

# Show current config
telegram-claude-code config show

# Update a config value
telegram-claude-code config set telegram.whitelist 123456789,987654321
telegram-claude-code config set claude.workingDirectory /path/to/project

Configuration

Config is stored at ~/.telegram-claude-code/config.json:

{
  "telegram": {
    "token": "YOUR_BOT_TOKEN",
    "whitelist": [123456789]
  },
  "claude": {
    "workingDirectory": "/home/user/projects",
    "permissionMode": "acceptEdits",
    "allowedTools": ["Read", "Edit", "Write", "Bash", "Glob", "Grep"]
  }
}

Options

| Key | Description | Default | |-----|-------------|---------| | telegram.token | Telegram bot token | — | | telegram.whitelist | Array of allowed chat IDs | — | | claude.workingDirectory | Directory Claude Code operates in | cwd | | claude.permissionMode | Permission mode (default, acceptEdits, bypassPermissions) | acceptEdits | | claude.allowedTools | Tools Claude Code can use | Read, Edit, Write, Bash, Glob, Grep |

Security

  • Config file is created with 600 permissions (owner read/write only)
  • Only whitelisted chat IDs can interact with the bot
  • Messages from unauthorized users are silently ignored
  • The bot runs locally on your machine — no data is sent to third-party servers (only Telegram API and Anthropic API)

How Sessions Work

Each Telegram chat gets its own Claude Code session. The conversation context is maintained between messages, so you can have multi-turn interactions just like in the terminal. Sessions persist across bot restarts.

Use /new to start a fresh conversation when you want to change topics.

License

MIT