TDOC (Termux Doctor) is a powerful CLI tool to diagnose, fix, and manage your Termux environment.
It is designed for:
- Detecting broken packages, storage, repository settings, and more
- Automatic or manual fixes
- Generating JSON reports and system status
- Safe update via GitHub Release
- Professional UX with colors and spinners
TDOC is lightweight, open-source, and optimized for Termux users and developers.
- ✅ System scan (storage, repositories, Python, NodeJS, etc.)
- ✅ Manual / automatic fixes (
tdoc fix,tdoc fix --auto) - ✅ Status reports (
tdoc status,tdoc report) - ✅ Doctor JSON output (
tdoc doctor --json) - ✅ GitHub update (
tdoc update,tdoc update --check) - ✅ Professional CLI UX (colors, icons, spinners)
- ✅ Modular, configurable, and extendable
pkg update && pkg upgrade
pkg install git curl tar
git clone https://github.com/djunekz/tdoc
cd tdoc
chmod +x tdoc
mv tdoc $PREFIX/bin/
tdoc status= Show current system statustdoc explain= Detailed explanation of broken itemstdoc fix= Run manual fix wizardtdoc fix --auto= Run automatic fix processtdoc report= Show raw system state reporttdoc doctor --json= JSON output for integrationstdoc security= Repository security checktdoc security --json= JSON security outputtdoc help= Show usage infotdoc version= Show version
We welcome contributions! Please read our CONTRIBUTING.md and CODE_OF_CONDUCT.md before submitting PRs or issues.
- Fork the repo
- Create a descriptive branch
- Submit a PR with detailed description
- Follow coding style & versioning
TDOC is licensed under the MIT License.
For commercial or proprietary use, a separate commercial license is available. See COMMERCIAL_LICENSE.md.
Please report security issues privately as described in SECURITY.md. Do not post exploits publicly.
TDOC is designed to be safe by default:
- No root access
- No background services
- No telemetry or network calls during scan
- No package installation/removal without user confirmation
- Repository verification uses official Termux mechanisms only
TDOC does not modify system state unless explicitly instructed by the user.
TDOC Project Team