<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.comfac.net/index.php?action=history&amp;feed=atom&amp;title=OpenCode_in_Android_Termux_260303</id>
	<title>OpenCode in Android Termux 260303 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.comfac.net/index.php?action=history&amp;feed=atom&amp;title=OpenCode_in_Android_Termux_260303"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=OpenCode_in_Android_Termux_260303&amp;action=history"/>
	<updated>2026-06-05T12:17:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://mediawiki.comfac.net/index.php?title=OpenCode_in_Android_Termux_260303&amp;diff=134&amp;oldid=prev</id>
		<title>Justinaquino: Imported from gi7b wiki</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=OpenCode_in_Android_Termux_260303&amp;diff=134&amp;oldid=prev"/>
		<updated>2026-03-06T10:07:46Z</updated>

		<summary type="html">&lt;p&gt;Imported from gi7b wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Complete Setup Guide: Termux, Ubuntu, OpenCode, and Claude Code =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;(Featuring the Opencode Isolation &amp;amp; Burner Workflow)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Follow these steps in order to turn your Android tablet into a fully functional development environment.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Safety Note:&amp;#039;&amp;#039;&amp;#039; By using &amp;lt;code&amp;gt;proot-distro&amp;lt;/code&amp;gt; (as outlined below), this setup employs the isolation technique referenced in wiki.gi7b.org. This creates a sandboxed Linux environment, ensuring that the AI coding agents are safely contained. With the added &amp;quot;burner workflow,&amp;quot; your agents are restricted to a daily isolated workspace, ensuring they cannot damage your Android device or access files outside their designated folder.&lt;br /&gt;
&lt;br /&gt;
== Phase 1: Download and Install Termux ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note: Do not use the Google Play Store version.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open your tablet&amp;#039;s browser and go to the official Termux GitHub releases page (Main site repo: [https://github.com/termux/termux.github.io Termux GitHub.io] or directly to the [https://github.com/termux/termux-app/releases app releases]).&lt;br /&gt;
&lt;br /&gt;
Download the file named: &amp;lt;code&amp;gt;termux-app_v0.118.3+github-debug_arm64-v8a.apk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tap the downloaded file to install it. If your tablet prompts you for permission to &amp;quot;Install unknown apps,&amp;quot; allow it.&lt;br /&gt;
&lt;br /&gt;
Open the Termux app.&lt;br /&gt;
&lt;br /&gt;
== Phase 2: Configure Termux &amp;amp; Android Permissions ==&lt;br /&gt;
&lt;br /&gt;
Once Termux is open, you will see a black terminal screen. Let&amp;#039;s get the base system updated and connected to your tablet&amp;#039;s storage.&lt;br /&gt;
&lt;br /&gt;
Grant storage access so you can access your tablet&amp;#039;s internal files. Run this command and tap &amp;quot;Allow&amp;quot; on the popup:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
termux-setup-storage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update the Termux base system by typing the following and hitting Enter. (If it pauses and asks Y/n, type Y and hit Enter. If it prompts you with a default configuration choice, just hit Enter):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pkg update &amp;amp;&amp;amp; pkg upgrade -y&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Phase 3: Install and Launch Linux (Ubuntu) - &amp;#039;&amp;#039;Isolation Step&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
Now we install &amp;lt;code&amp;gt;proot-distro&amp;lt;/code&amp;gt; and employ the &amp;#039;&amp;#039;&amp;#039;Burner Workflow&amp;#039;&amp;#039;&amp;#039; to create a safely isolated daily workspace.&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;proot-distro&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pkg install proot-distro -y&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download and install Ubuntu:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
proot-distro install ubuntu&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Isolation Step:&amp;#039;&amp;#039;&amp;#039; Create a daily workspace directory (e.g., &amp;lt;code&amp;gt;workspace260303&amp;lt;/code&amp;gt;) and launch Ubuntu so that its home directory points &amp;#039;&amp;#039;only&amp;#039;&amp;#039; to this isolated folder. Run the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a date-stamped workspace directory for today&lt;br /&gt;
&lt;br /&gt;
mkdir -p ~/workspace$(date +%y%m%d)&lt;br /&gt;
&lt;br /&gt;
Launch Ubuntu and bind the isolated workspace to the root home directory&lt;br /&gt;
&lt;br /&gt;
proot-distro login ubuntu --bind ~/workspace$(date +%y%m%d):/root&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Success!&amp;#039;&amp;#039;&amp;#039; When your prompt changes to &amp;lt;code&amp;gt;root@localhost&amp;lt;/code&amp;gt;, you are officially running Ubuntu inside your isolated daily burner workspace.&lt;br /&gt;
&lt;br /&gt;
== Phase 4: Prepare Ubuntu &amp;amp; Install AI Coding Agents ==&lt;br /&gt;
&lt;br /&gt;
Now that you are inside your safely isolated Ubuntu environment, you need to update it and install your coding tools. &amp;#039;&amp;#039;(Note: Because you are using a daily burner workspace, you will run these installs inside your fresh environment).&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Update Ubuntu&amp;#039;s package manager:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt update &amp;amp;&amp;amp; apt upgrade -y&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install prerequisite tools (Git and Curl):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt install git curl -y&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install OpenCode:&amp;#039;&amp;#039;&amp;#039; Run the official installation script for the OpenCode terminal AI agent:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
curl -fsSL https://opencode.ai/install | bash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Important: The installer places OpenCode in a local directory that isn&amp;#039;t loaded in your current session yet. Reload your environment so your terminal can find the new command:&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start OpenCode by typing: &amp;lt;code&amp;gt;opencode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install Claude Code:&amp;#039;&amp;#039;&amp;#039; Anthropic&amp;#039;s official CLI coding agent can be installed directly as well:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
curl -fsSL https://claude.ai/install.sh | bash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start Claude Code by typing: &amp;lt;code&amp;gt;claude&amp;lt;/code&amp;gt; &amp;#039;&amp;#039;(You will be prompted to authenticate your account on the first run).&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Phase 5: Set Up GitHub and Clone Your Repository ==&lt;br /&gt;
&lt;br /&gt;
Because you are using the &amp;quot;burner workflow&amp;quot; (where your workspace resets daily), pushing your code to GitHub is the essential way to save your work before logging off.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create a GitHub Account:&amp;#039;&amp;#039;&amp;#039; Open your tablet&amp;#039;s web browser, go to [https://github.com GitHub.com], and sign up for a free account if you don&amp;#039;t already have one.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create a New Repository:&amp;#039;&amp;#039;&amp;#039; Once logged in, click the &amp;quot;+&amp;quot; icon at the top right (or the &amp;quot;New&amp;quot; button) to create a new repository. Give it a name (e.g., &amp;lt;code&amp;gt;my-android-project&amp;lt;/code&amp;gt;), choose Public or Private, and check the box to &amp;quot;Add a README file&amp;quot; so you can easily clone it. Click &amp;quot;Create repository&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Configure Git in Ubuntu:&amp;#039;&amp;#039;&amp;#039; Go back to your Termux terminal (where Ubuntu is running) and tell Git who you are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your GitHub Username&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;your.email@example.com&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Generate a GitHub Token:&amp;#039;&amp;#039;&amp;#039; Since password authentication is no longer supported on the command line, go to GitHub in your browser, click your profile picture -&amp;gt; Settings -&amp;gt; Developer Settings -&amp;gt; Personal access tokens (Classic). Generate a new token and check the &amp;quot;repo&amp;quot; permissions box. Copy this token.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Clone the Repository:&amp;#039;&amp;#039;&amp;#039; In your Ubuntu terminal, copy the clone URL from your new GitHub repo and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone https://www.google.com/search?q=https://github.com/YourUsername/my-android-project.git&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;(When prompted for a password in the terminal, paste the Personal Access Token you just generated).&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Phase 6: Code, Commit, and Go Live ==&lt;br /&gt;
&lt;br /&gt;
This is your core development loop.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Navigate into your project:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd my-android-project&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Work with your AI Agent:&amp;#039;&amp;#039;&amp;#039; Launch your chosen AI assistant directly inside this repository folder to start coding. For example, to use OpenCode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
opencode&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;(Or type &amp;lt;code&amp;gt;claude&amp;lt;/code&amp;gt; to use Claude Code). Ask the AI to build your app, create a website, or write a script. It will read and write files directly in this directory.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Check your changes:&amp;#039;&amp;#039;&amp;#039; Once the AI is done and you exit the agent, verify what files were modified:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stage and Commit:&amp;#039;&amp;#039;&amp;#039; Save the changes to your local Git history:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git add .&lt;br /&gt;
git commit -m &amp;quot;Added features via AI coding agent&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Go Live (Push to GitHub):&amp;#039;&amp;#039;&amp;#039; Send your finished code up to your GitHub repository so it&amp;#039;s safely backed up and live!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push origin main&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;(Again, use your Personal Access Token if prompted for a password).&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Next Day Workflow:&amp;#039;&amp;#039;&amp;#039; Tomorrow, when you generate a new daily burner workspace, simply follow the cloning step (Phase 5, Step 5) to pull down your code and pick up exactly where you left off!&lt;/div&gt;</summary>
		<author><name>Justinaquino</name></author>
	</entry>
</feed>