rclaude
Remote control for Claude Code via Telegram. Seamlessly teleport your coding sessions between terminal and phone.
Features
- Session Teleportation - Switch between terminal and Telegram mid-conversation with
/tg - Interactive Permissions - Approve file edits and shell commands from your phone
- Live Updates - See Claude's activity streamed to your terminal while on Telegram
- On-Demand Server - Server starts automatically when needed, shuts down when idle
- Hot Reload - Development mode with automatic restart on code changes
Requirements
- Python 3.14+
- Claude Code CLI installed
- Telegram account
Installation
pip install rclaude
Or install from source:
git clone https://github.com/leobuskin/rclaude.git
cd rclaude
pip install -e .
Setup
Run the interactive setup wizard:
rclaude setup
The wizard will guide you through:
- Create a Telegram bot - Message @BotFather, send
/newbot, and copy the token - Link your account - Send
/link <token>to your new bot - Install the /tg hook - Adds the teleport command to Claude Code
- Auto-start (optional) - Configure server to start on login (macOS)
Usage
Start a session
rclaude
This launches Claude Code with teleportation support. Work normally in your terminal.
Teleport to Telegram
When you want to continue on your phone, type in Claude Code:
/tg
The session transfers to Telegram. Your terminal shows live updates of the conversation.
Return to terminal
In Telegram, send /cc to get the command for resuming in terminal. The session seamlessly continues where you left off.
Telegram commands
| Command | Description |
|---|---|
/start |
Show help |
/new |
Start fresh session |
/cc |
Return to terminal |
/status |
Show session info |
/mode |
Change permission mode |
/model |
Change AI model |
/cost |
Show usage costs |
/stop |
Interrupt current task |
/cancel |
Cancel pending teleport |
How It Works
Terminal Server Telegram
──────── ────── ────────
rclaude ──────────────────────────────────────────────────────────
│ │ │
│ Claude Code running │ │
│ │ │ │
│ user: /tg │ │
│ │ │ │
│ └───── POST /teleport ─────► notify user │
│ │ │ │
│ (shows live updates) ◄──┼── SSE stream │ │
│ │ ▼ │
│ │◄──────── user messages ────┤
│ │ │
│ │ Claude Agent SDK │
│ │ │ │
│ │ ▼ │
│ │──────► responses ─────────►│
│ │ │
│ │◄──────── /cc ──────────────┤
│ │ │
│ resume ◄────────────────┤ │
│ │ │
- Wrapper (
rclaude) spawns Claude Code and monitors for/tg - Hook intercepts
/tg, POSTs session info to local server - Server notifies via Telegram frontend, streams events back to terminal via SSE
- SDK continues the conversation via Telegram messages with interactive permissions
- Return with
/ccemits event to terminal, shows resume command
CLI Reference
rclaude # Run Claude Code with teleport support
rclaude setup # Interactive setup wizard
rclaude serve # Start server manually (usually auto-started)
rclaude status # Show configuration and server status
rclaude uninstall # Remove configuration and hooks
Options
rclaude --reload # Development mode with hot-reload
rclaude --verbose # Enable debug logging
rclaude --version # Show version
Configuration
Config is stored in ~/.config/rclaude/config.toml:
[telegram]
bot_token = "123456:ABC..."
user_id = 123456789
username = "you"
[server]
host = "127.0.0.1"
port = 7680
[claude]
hook_installed = true
Development
# Clone and install in dev mode
git clone https://github.com/leobuskin/rclaude.git
cd rclaude
python -m venv .venv
source .venv/bin/activate
pip install -e .
# Run with hot-reload
rclaude --reload
# Lint
ruff check rclaude/
ruff format rclaude/
# Type check
ty check rclaude/
License
MIT
Release files for rclaude 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rclaude-0.4.4.tar.gz | 46.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rclaude-0.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.1 kB
Release files / rclaude-0.4.4.tar.gz
| Download URL | rclaude-0.4.4.tar.gz |
|---|---|
| Size | 46.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6514b963e27a331bdc1d92954ec425adc144c331f4d14e5f91c17225b13d225d
|
|
BLAKE2b-256 checksum How to use checksums |
2319f15c280eb0b09a23f6a5a3a8c3684f774124ae12bdba471f9c473baf4e0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 12, 2026.
Transparency logRelease files / rclaude-0.4.4-py3-none-any.whl
| Download URL | rclaude-0.4.4-py3-none-any.whl |
|---|---|
| Size | 51.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aaf45065bc573f487f1a9197c9e8d3b6f7e828c02bd6274238709f4cc2707198
|
|
BLAKE2b-256 checksum How to use checksums |
11ffe6168d219cf6f8ba281a232c71d0b8adfd4b86765c9846d8adb606dc0b4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 12, 2026.
Transparency log