Built for developers who use Termux as a real development environment on Android.
- About
- β¨ Features
- π Recent Improvements
- πΈ Screenshots
- π¬ Demo
- π Quick Start
- π First Run
- π Usage
- ποΈ Architecture
- π§ Knowledge Base
- π‘οΈ Safety Features
- π Supported Models
- βοΈ Configuration
- π§ͺ Testing
β οΈ Limitations- π€ Contributing
- π License
ARIA is a terminal-native AI assistant designed specifically for Termux and Android development workflows. It combines Google's Gemma 4 models with a Termux-focused knowledge base, command system, and intelligent safety features to accelerate development on mobile devices.
Key Capabilities:
- π€ Intelligent code analysis and command fixing
- π‘οΈ Guardian safety layer for command validation
- π Offline knowledge base for Termux troubleshooting
- π Watch mode for automatic error detection
- π» Rich terminal UI with syntax highlighting
Unlike generic desktop-focused coding assistants, ARIA understands the unique constraints of Android-based development:
|
βοΈ Clang instead of GCC |
π± Mobile-only workflows |
|
|
|
|
|
|
- Better startup UX: ARIA now opens with a session dashboard that shows the active provider, model, safety state, watch state, and the most useful slash commands immediately.
- Faster provider switching: You can now switch directly with
/provider google,/provider openrouter, or/provider nvidia_nimwithout going back through the full config wizard. - Provider rotation:
/provider cyclejumps to the next configured provider, which is useful when comparing output or working around a provider issue. - Key management from the prompt:
/provider key <name>updates or saves a provider key inline. - Cleaner help output:
/help,/provider list, and/model listnow read like a control surface instead of raw debug text.
lv_0_20260511165025-ezgif.com-video-to-gif-converter.mp4
- Termux app on Android
- Python 3.8+
- Internet connection (for AI features)
# Update system packages
pkg update && pkg upgrade -y
# Install required tools
pkg install python git -y
pkg install termux-api -y
# Clone and install ARIA
git clone https://github.com/Alex72-py/aria-termux.git
cd aria-termux
# Install Python dependencies
pip install -r requirements.txt
# Launch ARIA
python run_aria.pyπ‘ Tip:
termux-apiis optional but recommended for clipboard integration. ARIA will gracefully fall back without it.
ARIA launches an interactive configuration wizard on first startup:
ββββββββββββββββββββββββββββββββββββββββββββ
β Welcome to ARIA Configuration Wizard β
ββββββββββββββββββββββββββββββββββββββββββββ
Choose provider [google/openrouter/nvidia_nim]: google
Enter API key for provider: β’β’β’β’β’β’β’β’β’β’β’β’β’β’
Enter preferred model: gemma-4-26b-a4b-it
Enable Guardian mode? [y/n]: y
Get your free Google API key here:
π Google AI Studio
After setup, ARIA shows:
- the active provider and model
- guardian and watch status
- a visible slash-command panel
- quick provider-switch shortcuts
Bare text is treated as /ask, so you can either type a command or just start talking to the model.
| Command | Description | Example |
|---|---|---|
/ask |
Ask ARIA any question about Termux or development | /ask How do I install Python on Termux? |
/fix |
Analyze and fix terminal errors | /fix "clang: error: linker command failed" |
/provider |
Inspect or switch model providers | /provider openrouter |
/model |
Inspect or switch the active model | /model set google/gemma-3n-e4b-it |
/models |
List models for the current provider | /models |
/kb |
Search the offline knowledge base | /kb python module not found |
/watch |
Enable automatic error detection | /watch |
/status |
Show active provider, model, and safety state | /status |
Common flows:
/provider list
/provider google
/provider openrouter
/provider nvidia_nim
/provider cycle
/provider key openrouter
/model listβββββββββββββββββββββββββββββββββββββββββββ
β ARIA Core System β
βββββββββββββββββββββββββββββββββββββββββββ€
β π Command System β
β ββ /ask, /fix, /provider, /model β
β ββ /models, /kb, /watch, /status β
β β
β π€ API Client β
β ββ Multi-Provider Routing β
β ββ Auto Model Discovery β
β ββ Intelligent Retry Logic β
β ββ Fallback Handling β
β β
β π‘οΈ Guardian Safety Layer β
β ββ Risk Assessment β
β ββ Confirmation Prompts β
β β
β π Watch Mode β
β ββ Error Detection β
β ββ Auto Analysis β
β β
β π Offline Knowledge Base β
β ββ Termux Troubleshooting β
β β
β π¨ Rich Terminal UI β
β ββ Syntax Highlighting β
β ββ Animations β
β ββ Color-Coded Output β
βββββββββββββββββββββββββββββββββββββββββββ
ARIA includes comprehensive offline knowledge covering:
| Category | Topics |
|---|---|
| π Common Errors | Package conflicts, permission issues, build errors |
| π¦ Package Management | pkg, apt, pip installation & troubleshooting |
| π Python | Virtual environments, venv, pip caching |
| π§ Proot-Distro | Linux distributions, container setup |
| π Android Bridge | Termux:API, Tasker integration, system access |
| π Git & SSH | SSH keys, Git configuration, GitHub access |
| π Networking | Port forwarding, localhost, DNS issues |
ARIA analyzes potentially dangerous commands before execution with a comprehensive risk assessment system:
| Risk Level | Color | Description | Action |
|---|---|---|---|
| π’ Low | Green | Safe operations (listing, viewing) | Execute immediately |
| π‘ Medium | Yellow | Network/code operations | Execute with notice |
| π High | Orange | User/system modifications | Require confirmation |
| π΄ Critical | Red | Recursive deletion, destructive commands | Require explicit approval |
ARIA supports multiple providers:
| Provider | Notes |
|---|---|
google |
Google AI Studio / Gemma access |
openrouter |
OpenAI-compatible multi-model routing |
nvidia_nim |
NVIDIA hosted model endpoints |
Example Google Gemma family:
Gemma 4 Model Family
βββ gemma-4-2b-it (Lightweight, 2B parameters)
βββ gemma-4-4b-it (Balanced, 4B parameters)
βββ gemma-4-26b-a4b-it (Advanced, 26B parameters)
βββ gemma-4-31b-it (Expert, 31B parameters)
Auto-discovery: ARIA fetches available models from the active provider automatically.
Configuration is stored locally in:
~/.aria/config.json
Example structure:
{
"provider": "google",
"api_key": "active-provider-key",
"api_keys": {
"google": "your-google-ai-studio-key",
"openrouter": "your-openrouter-key",
"nvidia_nim": "your-nvidia-key"
},
"model": "gemma-4-26b-a4b-it",
"guardian_mode": true,
"watch_mode": false,
"max_tokens": 8192
}Override config with environment variables:
export ARIA_API_KEY="your-key"
export ARIA_PROVIDER="openrouter"
export ARIA_MODEL="gemma-4-31b-it"
export GOOGLE_API_KEY="your-google-key"
export OPENROUTER_API_KEY="your-openrouter-key"
export NVIDIA_NIM_API_KEY="your-nvidia-key"Run the test suite with pytest:
# Run all tests
pytest -q
# Run with verbose output
pytest -v
# Run one test file
pytest tests/test_watch_mode.py -qDevelopment Status: This is a hackathon submission. These limitations are planned for future releases.
- π Watch mode is experimental and may require manual review
- π Internet connection required for AI features (knowledge base works offline)
- π± Optimized primarily for Termux on Android
- π€ Some auto-fix suggestions require manual verification
| Package | Purpose |
|---|---|
google-generativeai |
Google provider support |
rich |
Rich terminal formatting & UI |
click |
CLI command interface |
pydantic |
Data validation & models |
python-dotenv |
Environment variable management |
See requirements.txt for versions and additional dependencies.
We welcome contributions! Here's how to get started:
# Create a feature branch
git checkout -b feature/my-feature
# Make your changes and commit
git add .
git commit -m "Add my feature"
# Push and create a pull request
git push origin feature/my-featureGuidelines:
- Follow PEP 8 for Python code
- Add tests for new features
- Update documentation
- Keep commits focused and descriptive
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2026 Alex72-py
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Submitted for: Google Gemma 4 Challenge
- π― Real-world Focus: Actual Termux developer workflow optimization
- π Dynamic Discovery: Auto-detect and switch between available models
- π‘οΈ Resilient API: Self-healing with intelligent retry logic
- π± Mobile-First: Terminal UI optimized for small screens
- πΎ Offline Ready: Fallback support without internet connection
- π Safety-Conscious: Risk assessment before executing commands


