Scan your whole stack
From OX Research Newsroom
Are you using telegram-channels-cleaner?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.0.0
telegram-channels-cleaner was last scanned on 29 Nov 2026 at version 2.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.0.0 LATEST | 29 Nov 2026 | No rules fired |
| 1.7.0 | 21 Nov 2026 | No rules fired |
| 1.6.0 | 20 Nov 2026 | No rules fired |
| 1.5.0 | 20 Nov 2026 | Not shown |
| 1.4.2 | 20 Nov 2026 | Not shown |
Findings for v2.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Go through every Telegram channel you're subscribed to, one card at a time, and get rid of the ones you stopped reading years ago. Swipe left to leave, right to keep, or mute and archive. Nothing changes in Telegram until you've reviewed the whole batch.
It runs on your own computer: a small Python server (a Kurigram userbot + FastAPI) and a web UI that opens in your browser. No hosted service, no accounts. Prefer the couch? Let your phone in over the home Wi-Fi and go through the deck there.
t.me links for the public ones.| Deck (light theme) | History loupe |
|---|---|
| Review | Applying |
| A chat you own: who gets it | Ctrl+K: find a chat |
| Letting a phone in | The deck on a phone, and pairing |
You need Python 3.12+ and either uv or pipx. The package includes the built UI, so no Node.js is required.
uvx telegram-channels-cleaner
or install it once and run it whenever you like:
pipx install telegram-channels-cleaner
telegram-channels-cleaner
A browser tab opens at http://127.0.0.1:8765. On your phone, open Telegram → Settings → Devices → Link Desktop Device and scan the QR code. You can also log in with a phone number and code; a two-step verification password is asked for when it's set.
Mock mode replaces Telegram with 120 generated channels:
uvx telegram-channels-cleaner --mock
The QR code "scans" itself after a few seconds. The phone code is 12345; with CC_MOCK_2FA=1
the 2FA password is mock, which is also the one a transfer of ownership asks for. The screenshots
above are from mock mode.
docker run --rm -p 127.0.0.1:8765:8765 -v telegram-channels-cleaner:/data \
ghcr.io/asteroid-den/telegram-channels-cleaner:latest
Then open http://127.0.0.1:8765. Or from a checkout: docker compose up -d. Keep the
127.0.0.1: part of the port mapping: the UI has no password, and whoever can open it can act
on your Telegram account.
The image has a health check (docker ps shows healthy once the app answers). It looks at
CC_PORT, so change the port with that variable rather than a --port flag.
git clone https://github.com/asteroid-den/telegram-channels-cleaner.git
cd telegram-channels-cleaner
npm --prefix frontend ci && npm --prefix frontend run build # Node.js 22.18+
uv run telegram-channels-cleaner
The app still runs on the computer; a phone on the same Wi-Fi becomes a second screen for it.
http://192.168.1.23:8765, and the console prints it.That phone stays connected: next time open the address, scan the QR code in the list of connected devices, or put the app on the home screen. Cards and decisions are shared, so you can start on one screen and carry on on the other. The same window lists the connected devices, renames them and disconnects them, at once.
On the phone the card fills the screen and the keys become buttons: leave, later, mute, archive, keep. Undo is the small button by the progress bar, the magnifier in the header finds a chat, and a long press on the progress bar opens the history loupe (slide through it, tap a chat to go back to it).
Good to know:
docs/pair), because phone cameras open a scanned link only when it has
a domain, not a bare IP. The page just sends the phone on to the computer's address, which sits
after the # in the link: browsers never send that part to the server, so GitHub sees neither
the address nor the one-time code. Without internet on the phone, open the address and enter
the code instead. CC_PAIRING_PAGE= (empty) puts the plain link in the QR code.--host other than localhost: the app already listens
beyond the computer there, so the toggle is off. Keep those setups on 127.0.0.1.| Key | Action |
|---|---|
| ← / → | Unsubscribe / keep (← on a chat you own asks who gets it) |
| ↓ | Later: move to the back of the deck |
| M / A | Mute / archive |
| L | Free the public link (chats you own) |
| O | Open the chat in the Telegram app, at its last post (also the ↗ on the card) |
| Ctrl+Z or Backspace | Undo the last decision |
| Ctrl+← / → | Step back / forward through decisions you've made |
| Ctrl+K | Find a chat by name and put it on top |
| Enter | Go to the review |
| Ctrl+Enter | Apply (on the review screen) |
| Esc | Back to the deck |
Letter keys work on any keyboard layout. On macOS, Cmd works in place of Ctrl.
Read this before logging in with your real account.
127.0.0.1 only, talks to
Telegram directly and nowhere else. There is no telemetry.--host 0.0.0.0) you don't fully control.127.0.0.1 doesn't stop a page open in your
browser from sending requests to it. The app answers only requests addressed to localhost
(against DNS rebinding) and takes changes only from its own page (against cross-site
requests), so no site can queue or apply anything.| How you run it | Location |
|---|---|
uvx / pipx on Linux |
~/.local/share/telegram-channels-cleaner (or $XDG_DATA_HOME) |
uvx / pipx on macOS |
~/Library/Application Support/telegram-channels-cleaner |
uvx / pipx on Windows |
%APPDATA%\telegram-channels-cleaner |
| From source | ./data in the checkout |
| Docker | the /data volume |
The startup message prints the exact path. Inside:
sessions/*.session: one Telegram session per account (account.session for the first one).sessions/*.device.json: the device profile each session presents to Telegram.cleaner.sqlite3: the channel cache, your decisions and stats. Before an update changes
its structure, the app copies it next to it (cleaner.sqlite3.before-<version>).media/: cached avatars and post thumbnails.logs/app.log: what the app logged, kept to four files of 1 MB. Worth attaching when you
report a problem; it has chat ids and titles in it, but never the session.Telegram identifies third-party clients by an api_id. Out of the box this app uses the public
api_id of Telegram Desktop and, on first login, picks a plausible Telegram Desktop device
profile (OS, app version, language) from
device_profiles.json. The profile is
stored with the session and never changes after that, so in Settings → Devices you'll see
one ordinary desktop session rather than a new device on every start.
To be clear about what that means: the app presents itself as Telegram Desktop. Using an
unofficial client is at your own risk under
Telegram's Terms of Service, and Telegram can limit
accounts it considers abusive. For a cleaner setup, register your own app at
https://my.telegram.org/apps and set CC_API_ID and CC_API_HASH.
Reading is cheap: channel details and the last 100 post dates are fetched lazily, one card at a time, and cached for 72 hours. Actions run one after another with a random 1.5–3 s pause. If Telegram replies with a flood wait, the job sleeps for the time it was told to (the UI shows a countdown) and carries on. You can stop the job at any point; whatever wasn't applied stays queued.
Channels and supergroups you own or administer have a deck of their own (open the settings menu and pick "I run it"). Leaving a chat as an admin costs you your admin rights, so the review screen warns about it. Swiping left on a chat you created asks what to do with it: hand it over to one of its admins and leave, leave it without an owner, or delete it (Telegram deletes chats up to about 1000 members). A handover is confirmed with your 2FA password on the review screen.
Everything is optional. Use environment variables or a .env file in the working directory
(see .env.example).
| CLI flag | Env var | Default | |
|---|---|---|---|
--host |
CC_HOST |
127.0.0.1 |
Address to listen on |
--port |
CC_PORT |
8765 |
Port |
--no-browser |
CC_NO_BROWSER=1 |
off | Don't open a browser tab |
--mock |
CC_MOCK=1 |
off | Fake Telegram backend |
CC_MOCK_CHANNELS |
120 |
Number of generated channels | |
CC_MOCK_SUPERGROUPS |
60 |
Number of generated supergroups | |
CC_MOCK_2FA=1 |
off | Ask for a 2FA password in mock mode | |
CC_DATA_DIR |
see above | Sessions, database, media cache, log | |
CC_API_ID, CC_API_HASH |
Telegram Desktop | Your own Telegram API credentials | |
CC_APPLY_DELAY_MIN, CC_APPLY_DELAY_MAX |
1.5, 3.0 |
Pause between actions, seconds | |
CC_FULL_INFO_TTL_HOURS |
72 |
How long channel details stay cached | |
CC_PAIRING_PAGE |
GitHub Pages | The page the phone pairing QR goes through; empty = the plain link | |
-v |
off | Debug logging |
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.