How shellcrafter/ai-inference works
ShellCrafter is a Termux-based Android app-in-a-shell for running a local Qwen model offline. The documented workflow is to install dependencies and the model once, then invoke runqwen, choose an inference mode, and chat through llama.cpp. The tree contains only the installer and runtime scripts; the README documents their responsibilities and interactions, so links below rely on that documentation rather than inspected source.
Main entry points: install.sh Installer · run_ai.sh Runtime script
Components 10
Installation
- Installer
install.sh - Termux environment
Local inference
- runqwen command
- Runtime script
run_ai.sh - Mode selection
run_ai.sh - llama.cpp engine
Runtime assets
- llama.cpp package
- Qwen GGUF model
Other components
- Termux user
- Internet
Connections 12
- Termux user → Installer: runs setup
README.md - Installer → Termux environment: checks environment
README.md - Installer → llama.cpp package: installs package
README.md - Installer → Internet: downloads model
README.md - Installer → Qwen GGUF model: verifies download
README.md - Installer → Runtime script: installs runtime
README.md - Installer → runqwen command: creates command
README.md - Termux user → runqwen command: invokes
README.md - runqwen command → Runtime script: launches
README.md - Runtime script → Mode selection: offers modes
README.md - Runtime script → llama.cpp engine: runs inference
README.md - Runtime script → Qwen GGUF model: uses local model
README.md