An AI-powered code assistant for Termux that utilizes Google's Vertex AI and Gemini models to generate and execute Python code.
- Install required dependencies in Termux:
pkg update && pkg upgrade
pkg install python python-pip git
- Clone and install the package:
git clone https://github.com/AmazingZach/termux-ai-assistant.git
cd termux-ai-assistant
pip install -e .
- Set up Google Cloud credentials:
- Create a Google Cloud project
- Enable Vertex AI API
- Create a service account and download credentials
- Place credentials in
~/.config/termux_ai_assistant/credentials.json
- Start the assistant:
tai
- Enter your code generation request in natural language.
- Review the generated code.
- Choose whether to execute the code.
- Natural language to code generation
- Safe code execution environment
- Rich terminal UI
- Configuration management
- Error handling and timeouts
- Python 3.8+
- Termux
- Google Cloud account with Vertex AI access
MIT License