This project provides simple bash scripts and Termux:Widget shortcuts to start, stop, toggle, and check the status of a locally hosted code-server (VS Code in the browser) running inside Termux.
✅ Tested on Amazon Fire Max 11 using Fire OS 8.3.3.4 and Microsoft Launcher for widget access.
“Amazon”, “Fire”, “Fire OS”, and “Fire Max 11” are trademarks of Amazon.com, Inc. or its affiliates.
start-code-server.sh: Starts code-server on localhost port 8080stop-code-server.sh: Terminates any running code-server instancetoggle-code-server.sh: Starts or stops based on current statestatus-code-server.sh: Displays current running state
Each script has a matching .shortcuts/ entry for widget launching.
termux-vscode-scripts/
├── start-code-server.sh
├── stop-code-server.sh
├── toggle-code-server.sh
├── status-code-server.sh
└── .shortcuts/
├── Start VS Code
├── Stop VS Code
├── Toggle VS Code
└── VS Code Status
git clone https://github.com/Astrotheque/termux-vscode-scripts.git
cd termux-vscode-scripts
chmod +x *.sh .shortcuts/*mkdir -p ~/.shortcuts
cp .shortcuts/* ~/.shortcuts/pkg install nodejs
npm install -g code-serverThis project was built and tested using the Termux terminal emulator for Android.
Tested Termux Version:
v0.118.0(installed directly from the official Termux GitHub repository)
Recommended Installation Source:
✅ GitHub Releases (secure and up-to-date)
❌ Do not use the Play Store version — it is outdated and unsupported.
Run Updates:
pkg update && pkg upgradeGrant storage permissions:
termux-setup-storageInstall required packages before using scripts:
pkg install git nodejs openssh📄 Setup Guide for Code Server on Fire Max 11
- Fire OS disables custom launchers and widgets on the default home screen.
- Workaround: use Microsoft Launcher and open its Widget screen to access the Termux Widget interface.
- Download from F-Droid or GitHub Releases
- Install via Android's native installer (tap
.apkin file manager) - Add the widget via Microsoft Launcher
- Tap your scripts to run them from the widget interface
- Scripts use
nohupto stay alive in background - Process control is handled via
pkill -f code-server - Customize bind IP/port if needed
MIT License
Astrotheque
https://github.com/Astrotheque
Trademark & Affiliation Notice
Termux is developed by the open-source community and is not affiliated with
Amazon, Microsoft, or Google.
“Amazon,” “Fire,” “Fire OS,” and “Fire Max 11” are trademarks of
Amazon.com, Inc. or its affiliates.
“Google Play” and “Google Play Store” are trademarks of
Google LLC.
“Microsoft” is a trademark of the
Microsoft group of companies.
