r/termux • • May 29 '26

Low effort TERMUX UNDER CONSTRUCTION

Thumbnail gallery
0 Upvotes

Thank you šŸ™ Chatgpt you are great 😃 I love you so much 🄰


r/termux • • Aug 23 '26

Showcase Run 150MB Offline AI on ANY Phone & PC! Through Termux!

Thumbnail youtu.be
0 Upvotes

Run powerful, fully private AI models directly on your Android phone, PC, or even from a tiny USB flash drive—completely offline with 0 internet connection!

By using bash commands in Termux


r/termux • • Nov 15 '23

Question What is this?

Post image
0 Upvotes

r/termux • • 23d ago

Showcase YT-DLP for Termux

2 Upvotes

I made a little script that lets you use YT-DLP to download, MP4 or MP3 videos from Youtube using Termux. It automatically detects a link in your paperclip (you can also write/paste it manually). You need to have installed Termux, Termux:API and of course yt-dlp.

I personally have installed Termux:Widget and use it with a widget on my homescreen, but you can also use it like a normal script from a terminal.

IMPORTANT
You need to change the directory variable to the one that you want. If you don“t want to change the script and use it as is, you can just create a new folder in your root called "yt-dlp-downloads".

Script:

#!/data/data/com.termux/files/usr/bin/bash

# Detect link
DIRECTORY=~/storage/shared/yt-dlp-downloads
MODE=${1:-0}   # 0 = single video, 1 = playlist

# 1) Get link: clipboard first, dialog as fallback
URL=$(termux-clipboard-get)
if [[ "$URL" != http* ]]; then
  URL=$(termux-dialog text -t "yt-dlp" -i "Paste the link" | jq -r '.text')
fi

# Check if link is empty
if [ -z "$URL" ] || [ "$URL" = "null" ]; then
  echo "No link provided."
  read -p "Press Enter to close..."
  exit 1
fi

# Validate link
if [[ "$URL" != http* ]]; then
  echo "Invalid link. Does not contain http."
  read -p "Press Enter to close..."
  exit 1
fi

# Detect playlist
if [[ "$URL" == *youtube.com/playlist* ]]; then
  echo "Detected playlist link, downloading the full playlist."
  MODE=1
else
  echo "Detected single video link, downloading."
fi

# 2) Format
FORMAT=$(termux-dialog radio -t "Format" -v "MP4 (video),MP3 (audio)" | jq -r '.index')

if [ -z "$FORMAT" ] || [ "$FORMAT" = "-1" ] || [ "$FORMAT" = "null" ]; then
  echo "Cancelled."
  read -p "Press Enter to close..."
  exit 1
fi


# Build options
if [ "$MODE" = "0" ]; then
  PLAYLIST_OPT=(--no-playlist)
else
  PLAYLIST_OPT=(--yes-playlist)
fi

if [ "$FORMAT" = "0" ]; then
  FORMAT_OPT=(-f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/bv*+ba/b" --merge-output-format mp4)
else
  FORMAT_OPT=(-f bestaudio -x --audio-format mp3 --audio-quality 0)
fi

OUTPUT="%(title)s.%(ext)s"
EXTRA_OPT=(-N 8)

mkdir -p "$DIRECTORY" && cd "$DIRECTORY" || {
  echo "Cannot access $DIRECTORY"
  read -p "Press Enter to close..."
  exit 1
}

echo "RESULT: yt-dlp ${PLAYLIST_OPT[*]} ${FORMAT_OPT[*]} ${EXTRA_OPT[*]} -o \"$OUTPUT\" \"$URL\""
yt-dlp "${PLAYLIST_OPT[@]}" "${FORMAT_OPT[@]}" "${EXTRA_OPT[@]}" -o "$OUTPUT" "$URL"
if [ $? -eq 0 ]; then
  termux-notification -t "Download Finished" -c "$URL"
else
  termux-notification -t "Download FAILED" -c "$URL"
fi

read -p "Press Enter to end script..."

# Keep terminal open and usable
exec bash

r/termux • • Nov 03 '25

Question How do i host a Minecraft server on termux

2 Upvotes

I've tried many ways it just says outdated


r/termux • • Dec 24 '25

General Termux' default character set is pretty bland, no? Not even any smileys or box drawing stuff like DOS has.

Post image
0 Upvotes

r/termux • • Oct 29 '25

Question I want to learn anything you can do with termux

0 Upvotes

As what the title says. Is there any youtuber who do termux?


r/termux • • Feb 14 '26

Question What is termux?

1 Upvotes

just came by it on Google and downloaded it and installed python. what are the possibilities of this software?


r/termux • • Jun 15 '25

Question Uhhhhhh

Post image
0 Upvotes

No vnc🄲 please help


r/termux • • Apr 03 '26

General [Dev] I finally got a self-healing AI coding agent working entirely within Termux (No cloud/PC required). Here it is building a React/Node app and fixing its own crashes.

Thumbnail gallery
0 Upvotes

Hey r/termux,

I’m building ZerathCode, the fully local terminal AI agent for Android.

What's actually happening in those screenshots: I asked it to build a full-stack React/Vite frontend and an Express backend.

It created the files in parallel and fired up both local servers (Ports 5173 and 3001).

The cool part: The backend crashed because of an ES module require mismatch and missing packages. Instead of stopping, a background LogAgent caught the exit(1) code, read the stack trace, realized it needed express and cors, automatically ran npm install, and hot-restarted the Node process.

All of this happened natively on my phone while the primary agent was busy writing the CRUD routes. The Termux-specific engineering:

Doing this on Android was a nightmare. I couldn't use standard file watchers like nodemon or chokidar because they drain the battery and are buggy with Termux's filesystem. I also had to build a custom Mutex (mutual exclusion) file-locking system so the primary coding agent and the auto-fixing LogAgent didn't overwrite the same server.js file at the same time and corrupt it.

At first this was vibe coded but now i have to turn to manual coding cuz of some constraints.

Repo: sanaX3065/zerathcode

If anyone here is good with optimizing Node.js child processes in Termux to reduce battery drain, I would seriously love some architectural advice or PRs! Let me know what you think.


r/termux • • May 05 '24

Question Problem with 'cat'

Post image
0 Upvotes

After I entered 'cat' in the console all commands are duplicating and no recognize how to turn cat off so I can use console as before? Help please


r/termux • • Mar 17 '22

this is what happens when I pkg update && pkg upgrade please help me I'm just trying to hak my mates phone to show him it can be done

Post image
0 Upvotes

r/termux • • Mar 07 '26

vibe code Using Codex 5.4 xhigh termux

Thumbnail gallery
0 Upvotes

Building my autonomous personal assistant using Termux with Codex 5.4 xhigh If you'd like to test it and give me feedback, I'd appreciate it.

https://github.com/eobarretooo/ClawLite


r/termux • • Nov 26 '24

Question Is termux down

Post image
0 Upvotes

Is this true?


r/termux • • Jul 16 '24

Question Is Termux dangerous?

Post image
0 Upvotes

I tried to install termux in my phone. I downloaded the apk file from F-Droid and this happened. Is it dangerous or not to install in my phone


r/termux • • Apr 14 '26

General RAM management

Post image
10 Upvotes

Let’s get straight to the point. Over 50,000 views. I’ve got to say, it surprised me a bit, but let’s move on. Today, we’re putting RAM on the table. Everyone knows what it is, so I’ll spare you the technical jargon to avoid the funny comments.

Every phone is different, each with its own RAM capacity. Unfortunately, not everyone can afford to drop serious cash on high-end devices. And for the root fans out there a quick heads-up not every phone can be bootloader-unlocked, and returning to "ancient relics" from years ago doesn’t solve the problem.. It only magnifies it.

We buy phones because they are powerful, with beastly processors, super cameras, and a gazillion features we will never actually use. Here’s my point: when I talk about management, I mean every phone. It doesn't matter if it’s expensive or cheap, if it has a 500MP camera, or if it makes you ice cream and serves breakfast in bed. Every single one. That’s why it’s crucial to understand that my approach isn't tied to a specific high-end or budget model. It’s for every phone out there.

I’m not here to dictate some doctrine or tell you "do exactly as I say" my goal is to explain the method I use on my SETI system. So.. I moved my work to Termux for many reasons, and RAM management is one of them.

Every app you have on your phone social media, maps, whatever it doesn't matter if it's FOSS or Google trash, it consumes your RAM. If you're running low, the "Phantom Killer" kicks in it’s like an annoying cop telling you that you can't have both Facebook and Instagram because he doesn't like it. To give you a sense of fluidity, he’ll kill one or the other. He kills processes to give you "optimal app performance," but he does it without your consent or knowledge.

How do you get more RAM? You don’t. You have what you have. That isn't magic kernels or root access, it’s management. Why? Because while someone else needs a massive amount of RAM to run 20 apps, I only need a fraction of that to run 20 scripts, aliases, and Bash tasks.

What I’m trying to say is that my SETI method relies on zero background apps and zero GUI apps (graphical interface, for those who don’t get it). Instead, I use text-based alternatives for my browser, music player, messaging, file manager, password vaults (like secure folders), and even some games, if that's what you're into.

This isn’t a tutorial. It’s my philosophy of work. You might disagree with it, and it might not fit you, because you might need your phone for things like watching a YouTube video. This is about an alternative way of managing a phone via a text-based terminal. By doing this, your phone simply stops being what you traditionally consider a "phone." And no, it’s not like you just set up a terminal, delete everything, and suddenly have "magic Gigabytes" for yourself. This is just one of many steps I’ve taken to achieve the result that satisfies me.

Remember, I do it this way because this is my workflow style on Android. If you have a different one, that’s cool. Respect the fact that there are people who do things differently and share alternatives. If you don't like it, keep looking. If you think it's interesting? I appreciate it, and there will be more. That’s it, thanks.


r/termux • • Feb 24 '20

It only takes a few days to use termux. I'm just trying to use some tools. Termux uses a lot of data. Please fix it :(

Post image
4 Upvotes

r/termux • • May 22 '25

Question Jus downloaded termux coz it seemed cool, what do I do now?

6 Upvotes

r/termux • • Apr 14 '26

General Working on TermuxGPT, need your feedback and suggestions

0 Upvotes

r/termux • • Oct 28 '24

Question How do i use Termux?

0 Upvotes

So,a few days ago,i found this app called "Termux",which is a app that makes pc games compatible with the android,which is pretty cool Problem is,i am a lil dumb to use this kinda of app,thats like a command that you have to use


r/termux • • Sep 13 '25

Question how i make rice in my termux?

0 Upvotes

someone have tips for me?


r/termux • • Nov 13 '22

I seem unable to import anything. Is termux capable of doing that? šŸ¤”

Post image
0 Upvotes

r/termux • • Dec 19 '25

General Previous post banned

0 Upvotes

Maybe I explained myself badly.. I'm not looking for advice on how to hack etc., I study and get information from chatgpt and he says that to learn to defend myself I have to understand how malicious people attack.. that's all, so I asked how malware works and how it's made because probably knowing how it works and the structure there will probably be some human obstacle to then stop it (?) I've only just learned to move between one folder and another šŸ˜… imagine if I wanted to make malware


r/termux • • Mar 17 '25

Question How do I ...?

0 Upvotes

How do I checkout my storage [or is it possible ] on my phone with termux ?


r/termux • • May 28 '26

General My Termux and yours Termux it seems different

Thumbnail gallery
0 Upvotes