Control IsotopeAI from your Android home screen with Termux:Widget buttons.
Open Termux and paste:
bash <(curl -fsSL https://raw.githubusercontent.com/Suydev/isotope-code/main/install-termux.sh)Or if curl is not yet installed:
pkg install curl && bash <(curl -fsSL https://raw.githubusercontent.com/Suydev/isotope-code/main/install-termux.sh)This single command:
- Updates Termux packages
- Installs Node.js, Git, and all required tools
- Clones the IsotopeAI repository
- Runs setup and installs home-screen shortcuts
- Starts the server and opens it in your browser
Important: Install Termux from F-Droid or the GitHub release β not the Play Store. The Play Store version stopped receiving updates in 2020 and has known bugs.
Install from the same source as Termux:
- F-Droid: https://f-droid.org/packages/com.termux.widget/
- GitHub: https://github.com/termux/termux-widget/releases
Mixing sources (e.g. Termux from F-Droid + Widget from Play Store) causes failures.
- Long press the Android home screen
- Tap Widgets
- Find and expand Termux Widget
- Drag a widget onto your home screen
- Tap it and choose a shortcut from the list below
| Shortcut | What it does |
|---|---|
isotope-start |
Start the local server and open it in the browser |
isotope-stop |
Stop the managed local server |
isotope-restart |
Stop, restart, and open the app |
isotope-update |
Pull the latest version from GitHub and restart if running |
isotope-open |
Open http://127.0.0.1:PORT in the browser |
isotope-doctor |
Full diagnostic β checks all dependencies and health |
isotope-status |
Show PID, port, version, and configuration status |
isotope-logs |
Show the last 80 server log lines (secrets redacted) |
isotope-repair |
Re-install dependencies and refresh the global command |
isotope-reinstall-widgets |
Refresh all home-screen shortcuts |
These run silently β useful for quick one-tap stop/restart without opening Termux:
| Shortcut | What it does |
|---|---|
isotope-stop-bg |
Stop the server silently in the background |
isotope-restart-bg |
Restart the server silently in the background |
Background shortcuts log to ~/.isotope/logs/widget-<name>.log.
If shortcuts stop working after an update, run from Termux:
bash setup-termux-widget.shOr use the CLI:
isotope reinstall-widgetsOr tap the isotope-reinstall-widgets home-screen button.
If something stops working (missing packages, stale process, permissions):
isotope repairOr tap the isotope-repair home-screen button.
During setup, the absolute path to the isotope command is resolved and embedded in each shortcut script. This avoids failures when Termux:Widget launches scripts without the interactive terminal PATH.
Shortcuts are stored in:
~/.shortcuts/β foreground shortcuts (open Termux window)~/.shortcuts/tasks/β background task shortcuts (silent)
Each shortcut logs its output to ~/.isotope/logs/widget-<name>.log.
The project path is remembered in ~/.isotope/project-path.
isotope start # start server in background
isotope stop # stop server
isotope restart # stop + start + open
isotope update # pull latest version from GitHub
isotope status # show project, port, version, config
isotope doctor # full diagnostic check
isotope open # open in browser
isotope logs # show last 80 server log lines
isotope version # print installed version
isotope repair # fix deps + reinstall CLI
isotope reinstall-widgets # refresh Termux shortcuts
isotope setup # re-run setup without starting server| Log | Path |
|---|---|
| Server output | ~/.isotope/logs/server.log |
| Update output | ~/.isotope/logs/update.log |
| Setup output | ~/.isotope/logs/setup.log |
| Install output | ~/.isotope/logs/install.log |
| Widget output | ~/.isotope/logs/widget-<name>.log |
View recent server logs:
isotope logsWidget button does nothing:
Run bash setup-termux-widget.sh to refresh shortcuts with the current command path.
"isotope command not found" in shortcut:
Run bash setup.sh or bash install-termux.sh to reinstall the global command.
Play Store Termux warning during install: Reinstall Termux from F-Droid or the GitHub release β the Play Store version is unmaintained.
Server started but browser shows error:
Your .env may be missing Supabase credentials. Run isotope doctor to check.
Stale PID / server won't start:
Run isotope repair β it clears stale process state and re-verifies dependencies.