Welcome to the complete TCode tutorial! This guide contains all the commands you need to install and use TCode – a powerful Claude-style AI coding agent for Android using Termux.
📱 Termux Setup Commands
Update and Upgrade Termux
Updates package lists and upgrades all installed packages to their latest versions.
pkg update && pkg upgrade
Note: This takes 3-10 minutes. Type ‘Y’ when asked to continue.
Setup Storage Access
Grants Termux permission to access your phone’s storage (files, photos, downloads, etc.).
termux-setup-storage
Important: Tap “Allow” when the permission popup appears.
📂 Navigation Commands
Check Current Directory
Shows the full path of your current working directory.
pwd
List Files and Folders
Lists all files and folders in your current directory.
ls
Navigate to TCode Folder
Changes directory to the TCode installation folder. Replace the path with your actual TCode folder path.
cd /storage/emulated/0/Download/tcode
⚠️ Important: Your path might be different. Check your file manager for the exact path. It could be “Downloads” instead of “Download”.
Go to Home Directory
Takes you to your Termux home directory.
cd ~
⚙️ TCode Installation
Install TCode
Runs the installation script that sets up Python and all dependencies needed for TCode.
bash install.sh
🔧 Configuration Commands
Edit Configuration File
Opens the config.json file in nano text editor to add your API key.
nano config.json
Save in Nano Editor
Saves changes in nano editor (press Volume Down + O, then Enter).
Ctrl + O (then press Enter)
Exit Nano Editor
Exits nano editor (press Volume Down + X).
Ctrl + X
🔑 API Key Websites
Mistral AI Console (Free)
Get free API key from Mistral AI.
https://console.mistral.ai/home
Z.AI API (Cheap Paid)
Get affordable API key from Z.AI.
https://z.ai/manage-apikey
Google AI Studio (Free Credits)
Get Gemini API key with daily free credits.
https://aistudio.google.com/app/apikey
🎯 Using TCode
Start TCode (Interactive Mode)
Launches TCode in interactive chat mode.
tcode
Direct Command Mode
Execute a task directly without entering interactive mode.
tcode "your task here in quotes"
💡 Example TCode Commands
1. Create Portfolio Website
tcode "Create a responsive personal portfolio website with my name, a short bio, and links to GitHub and email. Use modern CSS with a dark mode toggle. Save all files in a folder called 'my-portfolio' and run it on a local server"
2. Build Note-Taking App
tcode "Build a simple note-taking web app that saves notes in the browser using localStorage. Include add, delete, and edit features. Style it cleanly with pastel colors. Put everything in a folder named 'quick-notes-app' then run it on a local server"
3. ASCII Art Generator
tcode "Make a minimalist ASCII art generator web page where I type text and it shows styled ASCII output"
4. Organize Old Screenshots
tcode "Find all screenshots in ~/storage/dcim/Screenshots older than 30 days and move them to a folder called 'old-screenshots-backup'"
5. Convert Voice Memo to MP3
tcode "I recorded a voice note in .m4a format in ~/storage/dcim/voice/. Convert it to a smaller, normalized MP3 with silence trimmed using ffmpeg. Save as clean_voice.mp3"
6. Extract Audio from Video
tcode "I have a lecture video at ~/storage/shared/lecture.mp4. Extract just the audio as an .mp3 so I can listen while commuting"
7. Merge Audio Files
tcode "I have three interview clips: part1.wav, part2.wav, part3.wav. Concatenate them into one file called full_interview.mp3"
8. Batch Resize Images
tcode "Resize all JPGs in ~/storage/dcim/Camera to 1080px wide, keep aspect ratio, and save in a new folder called 'instagram-ready'"
9. Create WhatsApp Video Clip
tcode "Cut a 15-second clip from my vacation video starting at 00:02:10 and ending at 00:02:25, then compress it to under 16MB for WhatsApp"
10. Extract Video Thumbnails
tcode "Extract one thumbnail per minute from long_video.mp4 and save them as thumb_001.jpg, thumb_002.jpg, etc."
11. Remove Image Background
tcode "remove background from photo.jpg and save as photo_nobg.png"
🧭 TC Navigation Assistant
Install TC Navigation Assistant
Installs the TC helper for easy directory navigation.
bash install_setup_tc.sh
Navigate Using TC
Use natural language to navigate to folders.
tc "go to downloads folder"
TC – Go to Pictures
tc "take me to pictures folder"
TC – Go to Music
tc "music folder"
TC – Go Home
tc "go home"
📝 Conclusion
This complete command reference guide covers everything you need to get started with TCode. Save this page for quick reference as you work with TCode on your Android device!
Need help? Drop a comment below and I’ll help you out!
