Skip to content

Instantly share code, notes, and snippets.

@wadewegner
Created February 18, 2026 13:22
Show Gist options
  • Select an option

  • Save wadewegner/62584f8ec7ff5cb4003d9234f366b037 to your computer and use it in GitHub Desktop.

Select an option

Save wadewegner/62584f8ec7ff5cb4003d9234f366b037 to your computer and use it in GitHub Desktop.
These are the steps I ran to configure https://github.com/RichardAtCT/claude-code-telegram/tree/main on a DO droplet
sudo apt update
# install zsh
sudo apt install zsh -y
# install other essentials
sudo apt install build-essential procps curl file git -y
# install gh
sudo apt install gh
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# for poetry
sudo apt install -y curl python3-venv python3-pip
# github
ssh-keygen -t ed25519 -C "do-droplet-deploy-key" -f ~/.ssh/github_deploy_key
cat ~/.ssh/github_deploy_key.pub # add to Github SSH keys
cat >> ~/.ssh/config <<'EOF'
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/github_deploy_key
IdentitiesOnly yes
EOF
chmod 600 ~/.ssh/config
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
# install poetry
curl -sSL https://install.python-poetry.org | python3 -
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# install claude code
curl -fsSL https://claude.ai/install.sh | bash
nano ~/.zshrc
export ANTHROPIC_API_KEY="sk-..."
source ~/.zshrc
# install the bot
git clone https://github.com/RichardAtCT/claude-code-telegram.git
cd claude-code-telegram
make dev
# Telegram
# Open app and get a bot token from @BotFather
# /newbot - go through the process
mkdir /root/projects
cp .env.example
nano .env
```
TELEGRAM_BOT_TOKEN=1234567890:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
TELEGRAM_BOT_USERNAME=your_bot_username
APPROVED_DIRECTORY=/path/to/your/projects
ALLOWED_USERS=123456789 # Your Telegram user ID
USE_SDK=true
```
# run
make run-debug # Recommended for first run
make run # Production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment