Skip to main content

Telegram remote-control daemon for Claude Code CLI sessions running in dtach

Project description

aipager

Telegram remote-control for Claude Code CLI sessions. Run Claude inside a detached terminal (dtach), drive it from your phone — read responses, send prompts, approve permission requests, switch sessions — without an SSH session staying open.

Install

Requires Python 3.10+. dtach is installed automatically via the dtach-bin dependency — no separate system package needed.

pipx install aipager

(or uv tool install aipager, or pip install aipager into a venv — all work the same.)

Linux ARM and macOS users on Apple Silicon get the same one-command install; the dtach binary ships as pre-built wheels for each platform.

Homebrew support is coming in v0.3 as brew install <user>/tap/aipager, which uses the system dtach instead of the bundled one.

Configure

aipager config

Interactive wizard — asks for your Telegram bot token (from @BotFather) and chat ID, validates them, then patches ~/.claude/settings.json to wire the necessary hooks automatically. You never edit any file by hand.

Run

aipager start

The daemon stays in the foreground. Launch a Claude session in another terminal:

claude-dtach dev

The daemon discovers the session within seconds and Telegram starts mirroring it. To survive logout, use screen, tmux, or a systemd-user unit (template at scripts/aipager.service.example — full aipager service install automation lands in v0.4).

What it does

  • Mirrors Claude Code session state to Telegram: busy/idle, tool calls, context %, cost, line counts
  • Lets you reply to messages to inject prompts back into the session
  • Surfaces permission prompts and AskUserQuestion dialogs as Telegram inline keyboards
  • Notifies on context warnings, compaction, session end, and stalls
  • Supports multiple concurrent sessions with one bot
  • Optional read-only observer bots

Developing locally

git clone <repo-url> aipager && cd aipager
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
pytest -q

When iterating on code changes you'll generally want to also install dtach-bin from a local checkout — or pip install dtach-bin — so the runtime can find dtach on PATH.

Release process is in CONTRIBUTING.md.

License

MIT — see LICENSE.

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

aipager-0.2.0.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aipager-0.2.0-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

Details for the file aipager-0.2.0.tar.gz.

File metadata

  • Download URL: aipager-0.2.0.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aipager-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a6714d7f13caa95a4f95f0957b295bb5fb05ca41d00ce7cf7d4467e94d9f4a05
MD5 bb1f3f0c54bdc73c50ef6985b6ca42e7
BLAKE2b-256 ac1183f1a6a3268e4363c8c9d0692a9282ee54c7598d1828b1d13cb527a1de00

See more details on using hashes here.

Provenance

The following attestation bundles were made for aipager-0.2.0.tar.gz:

Publisher: publish.yml on dev-aly3n/aipager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aipager-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aipager-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 56.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aipager-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b0816bdfe2a77015d4c37ce4aee436f9ade11762827cbed0041f498f792c68c
MD5 292b3ab5645f0791d2ea39a2b4aabe61
BLAKE2b-256 dc20d1975933cfb52db5d3ae791e45d2bc974822da61ce30b77c10cf2c73321b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aipager-0.2.0-py3-none-any.whl:

Publisher: publish.yml on dev-aly3n/aipager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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