Skip to main content

Bot-based system to interact with Claude CLI on remote machines

Project description

Codecast

Codecast

Control Claude CLI on remote machines from Discord & Telegram

PyPI CI License Python


Send a message in Discord or Telegram. It reaches Claude CLI on your GPU server, your cloud VM, or any machine with SSH access — and streams the response back in real time.

Why Codecast?

Problem Solution
Claude CLI only runs locally Run it on any remote machine via SSH
Lose context when you close the terminal Sessions persist — detach and resume anytime
Can't use Claude on mobile Chat through Discord or Telegram from any device
Managing multiple dev machines is tedious One bot, many machines — switch with a command

Architecture

Codecast Architecture

Quick Start

Prerequisites: Python 3.11+, Rust/cargo, SSH access to a remote machine with Claude CLI installed.

pip install codecast

Configure:

cp config.example.yaml ~/.codecast/config.yaml
$EDITOR ~/.codecast/config.yaml   # add machines + bot token

Run:

codecast

Then open Discord or Telegram and type /start my-server ~/projects/myapp.

Key Features

  • Persistent sessions — Claude CLI runs as a long-lived process; context survives across messages
  • SSH tunnels — daemon binds to localhost only, never exposed to the internet
  • Detach & resume/exit keeps the session alive, /resume picks it back up
  • Multiple machines — connect any number of servers, switch between them
  • Permission modesauto (full autonomy), code (auto-edit files), plan (read-only), ask (confirm everything)
  • Real-time streaming — responses stream back via SSE as Claude types
  • Mobile-friendly — works from any device with Discord or Telegram

Commands

Command What it does
/start <machine> <path> Start a new Claude session
/resume <name> Resume a detached session
/new New session, same directory
/clear Fresh context, same directory
/exit Detach (process keeps running)
/ls machine List machines
/ls session List sessions
/mode <auto|code|plan|ask> Switch permission mode
/status Current session info
/health Daemon health check

See Commands Reference for the full list.

Documentation

Guide Description
Getting Started Installation, first session walkthrough
Adding a Discord Bot Create a Discord Application step by step
Adding a Telegram Bot Create a Telegram bot via BotFather
Adding a Server SSH config, jump hosts, password auth
Commands Reference Every command with examples

Configuration

Config files are searched in order:

  1. CLI argument: codecast /path/to/config.yaml
  2. ~/.codecast/config.yaml
  3. ./config.yaml (dev fallback)

Requirements

  • Python 3.11+ — head node
  • Rust/cargo — daemon binary is compiled during pip install codecast (rustup.rs)
  • SSH access — to remote machine(s) with Claude CLI installed
  • Bot token — Discord and/or Telegram

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codecast-0.2.7.tar.gz (146.2 kB view details)

Uploaded Source

File details

Details for the file codecast-0.2.7.tar.gz.

File metadata

  • Download URL: codecast-0.2.7.tar.gz
  • Upload date:
  • Size: 146.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for codecast-0.2.7.tar.gz
Algorithm Hash digest
SHA256 b95befd7f14874532b6c25ec1475eb22bee57c44f872d8c544528d29734500fe
MD5 a0d4c3ad621adf9e783639f1e3faf728
BLAKE2b-256 0974aae112fee415280a4e8a178b4c39881979c6af140ceb2360e8df752557ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page