Termux API is the official Termux add-on that exposes Android capabilities as command-line tools so shell scripts can reach device hardware and services.
- v0.53.0
- Published at
- Sep 1, 2025
- 4,686
- Stars
- 1,063,371
- Download
- Synced at
- 5d ago
The author no longer ships through GitHub Releases, but the repository is still active (last push Sep 17, 2026). Get the latest version from: Project homepage
Latest release
v0.53.0Sep 1, 2025, 11:54 PMDownloads slow? Switch the source anytime above
README
Project Overview
Termux API is the official companion app to Termux, turning Android capabilities into command-line interfaces: run the matching command in a terminal to read sensors, post notifications, access the clipboard, or invoke the camera. It is not standalone and must work with the main Termux app, which also has to share its signing key.
| Item | Value |
|---|---|
| Platform | Android |
| Language | Java |
| Current version | v0.53.0 |
| License | Not stated |
Let shell scripts reach the phone's hardware and system services.
Supported Hosts
| Host | Notes |
|---|---|
| Termux | The main app and the only caller allowed to use these APIs |
| F-Droid build | Works when its signature matches the main app |
| Self-built | Must be signed with the same key as the main app |
Key Features
- Command wrappers: each Android capability maps to a
termux-prefixed command - Script friendly: text or JSON output that pipes and parses cleanly
- On-demand permissions: system prompts appear on first use of each capability
- Debug builds: per-commit packages for trying new features and testing PRs
- Separation of duties: this app supplies capabilities, Termux keeps the terminal and package management
Installation and Activation
- Install Termux API from F-Droid with the same signature as the main app
- Install the matching command-line package inside Termux
- Grant permissions when a command triggers the system prompt
- Check the command help page for arguments before scripting
Permissions and Scope
- Signature check: apps other than the main Termux cannot call these APIs
- Sensitive capabilities: camera, location, and SMS trigger separate grants
- Background limits: some capabilities are restricted in the background, keep the app foregrounded or whitelisted
- Data flow: output returns only to the caller, the app uploads nothing
Notes
- Signatures must match: mixing Termux and API packages from different sources breaks permissions
- Version pairing: large gaps between the app and command-line package can disable individual commands
- System limits: newer Android versions add constraints on background location and sensors
- License missing: no license file is present, confirm terms before redistribution
Release history
Sort