| Crates.io | telegram-claude-yolo-bot |
| lib.rs | telegram-claude-yolo-bot |
| version | 0.1.0 |
| created_at | 2025-06-15 12:04:49.333281+00 |
| updated_at | 2025-06-15 12:04:49.333281+00 |
| description | A Telegram bot that bridges Claude CLI interactions |
| homepage | https://github.com/aviggiano/telegram-claude-yolo-bot |
| repository | https://github.com/aviggiano/telegram-claude-yolo-bot |
| max_upload_size | |
| id | 1713207 |
| size | 103,674 |
A Rust-based Telegram bot that bridges Claude CLI interactions, allowing you to interact with Claude through Telegram messages.
Install from crates.io using cargo:
cargo install telegram-claude-yolo-bot
git clone https://github.com/aviggiano/telegram-claude-yolo-bot
cd telegram-claude-yolo-bot
cargo install --path .
Create a .env file in your project directory:
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHAT_ID=your_chat_id_here
Then start the bot:
telegram-claude-yolo-bot start
Alternatively, set environment variables:
export TELEGRAM_BOT_TOKEN=your_bot_token_here
export TELEGRAM_CHAT_ID=your_chat_id_here
telegram-claude-yolo-bot start
To keep the bot running in the background, use screen:
screen -d -L -m telegram-claude-yolo-bot start
This will:
-d: Start screen detached-L: Log output to a file-m: Force creation of a new session| Command | Description |
|---|---|
start |
Start the Telegram bot |
/start - Display security warning and help/help - Show available commandsThe bot can be configured using:
.env file in the current directoryValues are loaded in this order (later values override earlier ones):
.env filecargo build --release
cargo test
Set RUST_LOG environment variable for logging:
RUST_LOG=info telegram-claude-yolo-bot start
Create a Dockerfile:
FROM rust:1.70 as builder
WORKDIR /app
COPY . .
RUN cargo build --release
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Install Claude CLI here
COPY --from=builder /app/target/release/telegram-claude-yolo-bot /usr/local/bin/
CMD ["telegram-claude-yolo-bot", "start"]
Run with Docker:
docker build -t telegram-claude-bot .
docker run -e TELEGRAM_BOT_TOKEN=your_token -e TELEGRAM_CHAT_ID=your_chat_id telegram-claude-bot
This project is licensed under the MIT License - see the LICENSE file for details.
This project is based on the original Python implementation by @devtooligan. You can find the original gist here.
This bot executes Claude commands DIRECTLY on your host system with NO SANDBOXING.
USE AT YOUR OWN RISK!
The bot includes automatic update functionality that:
cargo install telegram-claude-yolo-bot --forceFor production use, install as a systemd service:
# Copy the service file
sudo cp telegram-claude-yolo-bot.service /etc/systemd/system/
# Reload systemd and enable the service
sudo systemctl daemon-reload
sudo systemctl enable telegram-claude-yolo-bot
sudo systemctl start telegram-claude-yolo-bot
# Check status
sudo systemctl status telegram-claude-yolo-bot
This ensures the bot automatically starts on boot and restarts on crashes or updates.
This software is provided "as is" without warranty. The authors are not responsible for any damage or security breaches that may occur from using this software. Use at your own risk and always follow security best practices.