by P. Andreas Schmidt, IVE
Version 1 (October 6, 2025)
Download (7 downloads)
This is version 2 of my earlier flow (https://llamalab.com/automate/community/flows/49075). Since it has become possible to directly install g4f (GPT for Free: https://github.com/xtekky/gpt4free) on Termux, without using the docker image. Which means you can run queries either directly through Termux, or else start the server and run the web gui (or also http calls), the same way.
This flow will do the install for you, then run a simple sample query and show the output.
You can also use it to save the commands to a shell script, which you then can execute yourself from Termux.
Please make sure beforehand that you have both Termux and the Tasker plugin installed, as well as a WiFi connection. It should work out of the box, also a clean install. Can't guarantee that it won't break an existing installation (eventual incompatibilities between packages etc...), but my guess is it shouldn't. The script isn't refined, i.e. it may install unnecessary packages, but I couldn't know for sure, and this is working. So I'll leave it as is, unless someone can come up with something better. This also means a lot of data both for your data and storage usage. My estimate is 5-7 GB.
This gives you cli access to AI functions with which to enhance your flows and automations.
See the GitHub links for usage/command details.