Tello-Renewal
中文版 | English Version
Automatic renewal system for Tello mobile plans. Uses CloakBrowser (headless Chromium with 57 source-level patches) to bypass Cloudflare managed challenges on Tello's checkout endpoint.
Features
- 🔄 Automatic plan renewal via CloakBrowser
- 🛡️ Cloudflare bypass via real browser fingerprinting (CloakBrowser)
- 📋 Plan catalog check — monitor available plans without login
- 📧 Email notifications for success / failure
- 🧪 Dry-run mode for safe testing
- 📡 JSON-first CLI output — machine-readable by default,
--humanfor text - ⚙️ YAML configuration with pydantic validation
- 📊 Structured logging with rotation
- 🐳 Docker support — single image with CloakBrowser pre-bundled
Installation
From PyPI
pip install tello-renewal
python -m cloakbrowser install # download patched Chromium (~200 MB, one-time)
Requirements
- Python 3.10+
- CloakBrowser's Chromium is self-contained (downloaded via
python -m cloakbrowser install)
Quick Start
-
Create configuration file:
tello-renewal config-init -
Edit
config.yamlwith your Tello credentials:tello: email: "you@example.com" password: "your_password" card_expiration: "1/27" # MM/YY
-
Test:
tello-renewal config-validate tello-renewal email-test tello-renewal status
-
Renew:
tello-renewal renew --dry-run # test without charging tello-renewal renew # real renewal
Configuration Reference
tello:
email: "you@example.com"
password: "your_password"
card_expiration: "1/27" # MM/YY, MM/YYYY, or YYYY-MM-DD
base_url: "https://tello.com"
login_timeout: 30
browser:
browser_type: "cloakbrowser"
headless: true # false for headed mode (helps with CF)
timeout: 60
# proxy_server: "http://10.0.0.1:7890"
# Expected plan (optional) — status/renew warn on mismatch
plan:
data: "2 GB" # "2 GB", "10 GB", "20 GB", "Unlimited"
call: "Unlimited" # "300 min", "Unlimited"
renewal:
auto_renew: true
days_before_renewal: 1 # start attempting N days before due date
max_retries: 3
retry_delay: 300 # seconds between retries
dry_run: false
state_folder_path: ".tello_state"
smtp:
server: "smtp.gmail.com"
port: 587
username: "you@gmail.com"
password: "app_password"
from_email: '"Tello Renewal" <you@gmail.com>'
use_tls: true
notifications:
email_enabled: true
recipients:
- "admin@example.com"
send_on_success: true
send_on_failure: true
send_on_not_due: false
logging:
level: "INFO"
format: "detailed" # simple | detailed | json
file: "tello_renewal.log"
max_size: "10MB"
backup_count: 5
console_output: true
CLI Commands
tello-renewal renew [--dry-run] [--force] # execute renewal
tello-renewal status # account status and balance
tello-renewal plan-check # list available plan options
tello-renewal config-init [--output FILE] # generate example config
tello-renewal config-validate # validate config file
tello-renewal email-test # send test notification
Global options: --config FILE, --verbose, --human, --version
Output is JSON by default (machine-readable). Add --human for a
human-friendly table/text view:
tello-renewal status # JSON output
tello-renewal --human status # human-readable text
tello-renewal --human plan-check # plan table
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Configuration error |
| 5 | Renewal failed |
| 6 | Not due for renewal |
| 7 | Skipped (cached) |
Docker
The Docker image (python:3.12-slim base) includes CloakBrowser's Chromium pre-downloaded.
docker run --rm --shm-size=256m \
-v /path/to/config:/app/config:ro \
-v /path/to/logs:/app/logs \
oaklight/tello-renewal:latest \
tello-renewal --config /app/config/config.yaml renew
--shm-size=256mis required — Chromium uses/dev/shmfor IPC and crashes with the default 64 MB Docker limit.
Build from source
make build-package # build Python wheel
make build-docker # build Docker image from local wheel
# Optional overrides
make build-docker MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple
make build-docker REGISTRY_MIRROR=docker.1ms.run
Cron with Docker
0 0 * * * docker run --rm --shm-size=256m \
-v ~/.config/tello-renewal:/app/config:ro \
-v /var/log/tello-renewal:/app/logs \
oaklight/tello-renewal:latest \
tello-renewal --config /app/config/config.yaml renew >/dev/null 2>&1
Scheduling (without Docker)
Cron
0 0 * * * /path/to/venv/bin/tello-renewal renew >> /var/log/tello-renewal.log 2>&1
Systemd timer
# /etc/systemd/system/tello-renewal.service
[Unit]
Description=Tello Plan Auto Renewal
After=network.target
[Service]
Type=oneshot
User=tello
ExecStart=/opt/tello-renewal/venv/bin/tello-renewal renew
# /etc/systemd/system/tello-renewal.timer
[Unit]
Description=Run Tello renewal daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
sudo systemctl enable --now tello-renewal.timer
Troubleshooting
CloakBrowser binary missing:
python -m cloakbrowser install
Email sending failures:
Use app-specific passwords. Test with tello-renewal email-test.
Debug mode:
tello-renewal --verbose renew --dry-run
Development
git clone https://github.com/Oaklight/Tello-Renewal.git
cd Tello-Renewal
pip install -e ".[dev]"
python -m cloakbrowser install
pytest
ruff check src/
Changelog
See CHANGELOG.md.
License
MIT — see LICENSE.
Disclaimer
Provided as-is for personal automation. You are responsible for complying with Tello's terms of service and for the security of your credentials. The authors are not liable for failed renewals or service interruptions.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tello_renewal-0.5.1.tar.gz.
File metadata
- Download URL: tello_renewal-0.5.1.tar.gz
- Upload date:
- Size: 77.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e38791373899696f63ba4f8ab8947fa7834d912cc3dc028566847a28299887ad
|
|
| MD5 |
0ccefdd5166cbb907b5a1395c2d15cbb
|
|
| BLAKE2b-256 |
7c9d18842d4b02cc7535d7ca9b1fdb6c8d3754cc6df632b3c98137e5a36b7308
|
Provenance
The following attestation bundles were made for tello_renewal-0.5.1.tar.gz:
Publisher:
release.yml on Oaklight/Tello-Renewal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tello_renewal-0.5.1.tar.gz -
Subject digest:
e38791373899696f63ba4f8ab8947fa7834d912cc3dc028566847a28299887ad - Sigstore transparency entry: 2498375279
- Sigstore integration time:
-
Permalink:
Oaklight/Tello-Renewal@84b7f23a05ed6e1d964f0bdbc23daba724b9bfc1 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Oaklight
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@84b7f23a05ed6e1d964f0bdbc23daba724b9bfc1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tello_renewal-0.5.1-py3-none-any.whl.
File metadata
- Download URL: tello_renewal-0.5.1-py3-none-any.whl
- Upload date:
- Size: 80.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a558ce4cbdb603e91aedeeb04a65f1968c589204b544a6a9a78935452e58b4a
|
|
| MD5 |
fb4ec980f33c530cf5b95bd96e38f56b
|
|
| BLAKE2b-256 |
d28a6036ed003f50f5f2e1c65c2ff94c117a5a86a191d7ca4b92e3f598308aae
|
Provenance
The following attestation bundles were made for tello_renewal-0.5.1-py3-none-any.whl:
Publisher:
release.yml on Oaklight/Tello-Renewal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tello_renewal-0.5.1-py3-none-any.whl -
Subject digest:
7a558ce4cbdb603e91aedeeb04a65f1968c589204b544a6a9a78935452e58b4a - Sigstore transparency entry: 2498375292
- Sigstore integration time:
-
Permalink:
Oaklight/Tello-Renewal@84b7f23a05ed6e1d964f0bdbc23daba724b9bfc1 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Oaklight
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@84b7f23a05ed6e1d964f0bdbc23daba724b9bfc1 -
Trigger Event:
workflow_dispatch
-
Statement type: