TGViewer
Data eXplore : Data Science, ML, Big Data, LLMs and AI Security Data eXplore : Data Science, ML, Big Data, LLMs and AI Security @dataxplore · 583 subscribers
Post #1980 219
Connect Telegram notifications in Claude Code

Hapi.run, a wrapper for CLI agents (Claude Code, Codex, Gemini-cli). clone of happy.engineering (which is buggy and glitchy, but has its advantages).

Consists of three parts:
- Server
- Client
- Daemon (but we don't need it today)

➡️ Quick launch:
1️⃣ Install the project:

npm install -g @twsxtd/hapi

2️⃣ Enter the bot token (first, you need to create it in @botfather):

export TELEGRAM_BOT_TOKEN=111:TOKEN_BOTA

3️⃣ Start the server:

hapi server

In the screenshot, I showed how the server generates a token (a password). If everything is done correctly, you'll see at the bottom that your bot has started.

4️⃣ However, the bot won't work without a tunnel (it needs to attach buttons from the mini app):
• cloudflare (without registration)
• ngrok (with registration)
• or something else.

brew install cloudflare

cloudflare tunnel --url http://localhost:3006

You'll see the tunnel address. Which you need to export:

export WEBAPP_URL="https://your-public-url"

As you've probably guessed, the client will connect to the server. To start the client, enter:

hapi

The client will ask you to enter the token, which you already received in the previous step. If you forgot to start the server - it will be started automatically.

5️⃣ In your bot, be sure to press /start

The bot will respond with a welcome message with a link to the mini app - enter the token in the mini app. Now you can manage your coding agents from your desktop and mobile simultaneously and receive all notifications via SMS in the Telegram bot.

All settings are stored in ~/.hapi/settings.json - edit them if something has changed, for example the tunnel address, or check the token there if you've forgotten it.


🦾 @PromptXplore
More from @dataxplore
  1. Oct 1, 2026Monitoring and debugging "silent" token drift in LLM pipelines: frequency analysis of embe…
  2. Sep 30, 2026Online detection of feature collisions in TDA transformation When using Topological Data A…
  3. Sep 18, 2026Am going to announce something big (for me, it's really big) on October 11, 2026.
  4. Sep 14, 2026Post #2188
  5. Aug 31, 2026I joined a Russian community on Telegram. They share some Russian startup and technology u…
  6. Aug 22, 2026Post #2185
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →