Complete step-by-step installation guide for running AIWB v2.0 on Termux (Android).
- F-Droid (Recommended): https://f-droid.org/en/packages/com.termux/
- NOT from Google Play (outdated version)
# Update package manager
pkg update && pkg upgrade -y
# Allow storage access (IMPORTANT - enables Android-visible workspace)
termux-setup-storage
# Press "Allow" when prompted# Install required packages
pkg install -y bash curl jq git
# Install optional but HIGHLY recommended
pkg install -y gum fzf
# Verify installation
which bash jq curl git# Go to home directory
cd ~
# Clone the repository
git clone https://github.com/juanitto-maker/AIworkbench.git
# Enter directory
cd AIworkbench
# Checkout the v2.0 branch with all enhancements
git checkout claude/analyze-app-enhancements-011CUwGmkEuSHmiJKRhE5bGG
# Make aiwb executable
chmod +x aiwbAIWB now supports 4 providers. Get at least ONE key:
- Go to: https://console.groq.com/
- Sign up (free account)
- Go to "API Keys"
- Click "Create API Key"
- Copy the key (starts with
gsk_...)
Why Groq?
- ✅ FREE tier available
- ✅ Ultra-fast inference (fastest in the industry!)
- ✅ Llama 3.1 70B model
- ✅ Perfect for Termux users
- Go to: https://makersuite.google.com/app/apikey
- Click "Create API Key"
- Copy the key
Free tier: 15 requests/minute, 1,500 requests/day
- Go to: https://console.anthropic.com/
- Sign up and add payment method
- Generate API key (starts with
sk-ant-...)
Paid only: $3-15 per 1M tokens
- Go to: https://platform.openai.com/api-keys
- Create API key (starts with
sk-...)
Paid only: $0.15-10 per 1M tokens
# Run AIWB from the repo directory
./aiwbYou'll see this beautiful interface:
╔══════════════════════════════════════════════════════════╗
║ AIWB Interactive Chat ║
╚══════════════════════════════════════════════════════════╝
AIWB Status
Platform: termux
Workspace: ~/storage/shared/aiwb (Android-visible!)
Provider: gemini
Model: flash-1.5
AIWB will detect you have no keys and prompt you:
Which API key would you like to configure?
> Gemini ○ Not set
Claude ○ Not set
OpenAI ○ Not set
Groq ○ Not set ⭐ (NEW!)
Done
- Select "Groq"
- Paste your API key (starts with
gsk_...) - Press Enter
- Done!
# Create env file
cat > ~/.aiwb/.aiwb.env <<'EOF'
export GROQ_API_KEY="gsk_your_key_here"
EOF
# Secure it
chmod 600 ~/.aiwb/.aiwb.env./aiwb statusYou should see your configuration.
./aiwb chatThen type:
> Write a Python function to reverse a string
If you see a response, IT WORKS! 🎉
Want to use Groq's ultra-fast models?
./aiwb settingsThen:
- Select "Provider: gemini"
- Choose "groq"
- Select "Model: llama-3.1-70b-versatile"
Now Groq is your default!
AIWB creates a special Android-visible workspace:
~/storage/shared/aiwb/
├── tasks/ # Your task prompts
│ └── inbox.prompt.md
├── outputs/ # Generated content
├── logs/ # Chat history & costs
├── templates/ # Reusable templates
└── history/ # Session backups
You can access these files from any Android file manager!
Let's create a REST API:
# Create a new task
./aiwb task new my-api
# Edit the task (uses $EDITOR or vi)
nano ~/storage/shared/aiwb/tasks/my-api.prompt.mdAdd this content:
# Create a simple REST API
Create a Node.js Express API with:
- GET /users - list all users
- POST /users - create user
- Include input validation
- Add error handlingSave and exit, then:
# Estimate cost first
./aiwb estimate my-api
# Generate the code
./aiwb generate my-apiOutput saved to: ~/storage/shared/aiwb/outputs/my-api_[timestamp].md
The killer feature - automated improvement:
# Let multiple AIs refine your code
./aiwb refine my-api --iterations=3This will:
- Generate with Groq (fast & cheap)
- Verify with Claude (if you have key)
- Refine based on feedback
- Repeat 3 times!
# Create a link in ~/.local/bin
mkdir -p ~/.local/bin
ln -s ~/AIworkbench/aiwb ~/.local/bin/aiwb
# Add to PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Now you can run from anywhere:
aiwb# For bash
echo 'source ~/AIworkbench/completions/aiwb.bash' >> ~/.bashrc
source ~/.bashrc
# Now you have tab completion!
aiwb <TAB><TAB>Open any file manager app, navigate to:
Internal Storage/aiwb/logs/
You can read chat history directly on your phone!
./aiwb template list
./aiwb template use rest-api./aiwb costsSee exactly how much you've spent!
Available Groq models:
| Model | Speed | Quality | Cost (per 1M tokens) | Best For |
|---|---|---|---|---|
| llama-3.1-70b-versatile | ⚡⚡⚡ Fast | 🏆 High | $0.059 in / $0.079 out | General use, code |
| llama-3.1-8b-instant | ⚡⚡⚡⚡ Ultra-fast | ⭐ Good | $0.005 in / $0.008 out | Quick tasks, chat |
| mixtral-8x7b-32768 | ⚡⚡ Very fast | ⭐⭐ Very good | $0.024 / $0.024 | Long context |
| gemma2-9b-it | ⚡⚡⚡ Fast | ⭐ Good | $0.02 / $0.02 | Lightweight tasks |
Switch models:
./aiwb settings
# → Provider → groq
# → Model → [choose from list]# Run from the repo directory
cd ~/AIworkbench
./aiwbOr add to PATH (see Pro Tips above).
# Ensure you're in the repo directory
cd ~/AIworkbench
pwd # Should show: /data/data/com.termux/files/home/AIworkbench
# Check libraries exist
ls -la lib/./aiwb keys
# → Select provider
# → Enter your keychmod +x ~/AIworkbench/aiwb./aiwb doctorAIWB is now running on your Android device via Termux!
Next Steps:
- Read the Quick Start
- Try Examples
- Explore Templates
- Check Changelog for features
Join the Community:
- GitHub: https://github.com/juanitto-maker/AIworkbench
- Issues: https://github.com/juanitto-maker/AIworkbench/issues
# Essential commands
./aiwb # Start chat
./aiwb keys # Manage API keys
./aiwb settings # Configure provider/model
./aiwb status # Show current config
./aiwb doctor # System health check
# Task workflow
./aiwb task new my-task # Create task
./aiwb estimate my-task # Check cost
./aiwb generate my-task # Generate content
./aiwb verify my-task # AI review
./aiwb refine my-task # Auto-improve
# Utilities
./aiwb costs # Cost breakdown
./aiwb history # Session history
./aiwb security-audit # Security check
./aiwb --help # Full helpHappy AI Coding on Android! 🎉📱🤖