PocketAI is an elegant terminal-based AI assistant that connects to your local Ollama server.
Unlike cloud AI assistants, PocketAI keeps everything offline, private, and under your control.
Whether your AI model runs on your desktop computer or on your Android phone through Termux, PocketAI provides the exact same seamless experience over your local network.
โก Fast โข ๐ Private โข ๐จ Beautiful โข ๐ป Terminal First
- ๐ค Local AI chat powered by Ollama
- ๐ First-Run Setup Wizard
- ๐ค Automatic Ollama Detection
- ๐ฆ Automatic Model Detection
- โ๏ธ Automatic Configuration Creation
- ๐ฅ๏ธ EXE Ready (No manual config required)
- ๐ก๏ธ Graceful Ctrl+C Exit Confirmation
- โก Real-time streaming responses
- ๐ง Conversation memory
- ๐พ Save conversations
- ๐ Browse saved chat history
- ๐ Load previous conversations
- โ๏ธ Rename saved conversations
- ๐๏ธ Delete saved conversations
- ๐จ Multiple beautiful themes
- ๐ Built-in response statistics
- ๐ Search within the current conversation
- ๐ค Export conversations to Markdown, Plain Text, or PDF
- ๐ Built-in update checker
- ๐ฆ Model browser & quick model switching
- ๐ Rich help menu
- ๐ 100% Local & Private
- ๐ฑ Windows โข Linux โข Android Hybrid Support
| Feature | PocketAI | ChatGPT Web | Local AI Web UIs |
|---|---|---|---|
| Offline processing | โ | โ | โ |
| Rich Terminal UI | โ | โ | โ |
| Zero Setup (EXE) | โ | โ | โ |
| Android (Termux) Ready | โ | โ | โ |
| Open Source | โ | โ | โ |
| Document Chat (RAG) | v0.6 | โ |
PocketAI was built for developers, students, Linux users, and AI enthusiasts who love working inside the terminal. Instead of providing another heavy browser interface, PocketAI focuses on simplicity.
Why choose PocketAI?
- ๐ Starts instantly
- ๐ป Terminal-first workflow
- ๐ชถ Lightweight architecture
- ๐ Completely offline
- ๐จ Beautiful Rich-powered UI
- ๐ Persistent conversation management
- โก Extremely fast
- โค๏ธ Open Source
If you spend most of your time in the terminal, PocketAI feels like a natural AI companion.
๐ธ Screenshots and demo GIFs will be added soon.
Current UI includes:
- ๐ First-Run Setup Wizard
- ๐จ Rich Dashboard
- ๐ฆ Model Manager
- ๐ Conversation Search
- ๐ค Export Manager
- ๐ Conversation History
- โ๏ธ Theme System
PocketAI acts as a lightweight, blazing-fast bridge between your terminal and your local LLMs.
You (Terminal)
โ
โผ
PocketAI CLI
โ
โโโโโโโโโโโโโโโโโโโโ (Hybrid Mode)
โผ โผ
Local PC Ollama Android (Termux) Ollama
โ โ
โโโโโโโโโโฌโโโโโโโโโโ
โผ
Local AI Models
PocketAI/
โ
โโโ pocketai/
โ โโโ ai.py
โ โโโ config.py
โ โโโ exporter.py
โ โโโ markdown.py
โ โโโ models.py
โ โโโ search.py
โ โโโ setup.py
โ โโโ setup_ui.py
โ โโโ storage.py
โ โโโ theme.py
โ โโโ ui.py
โ โโโ updater.py
โ โโโ main.py
โ
โโโ chats/
โโโ exports/
โโโ PocketAI.spec
โโโ requirements.txt
โโโ README.md
โโโ LICENSE
- Tested On: Windows 11 โ | Ubuntu 24.04 โ
- Python 3.13+
- Git
- Requests & Rich Libraries
- Ollama (Installed locally on your computer)
- Tested On: Android 13/14 (Termux) โ
- Android Device
- Termux (via F-Droid or GitHub โ Do not use Google Play version)
- Ollama for Android (Running inside Termux)
The easiest way to get started with PocketAI is by downloading the latest release from the GitHub Releases page.
- Download
PocketAI.exefrom the latest release. - Double-click
PocketAI.exe. - Complete the first-run setup wizard.
- Start chatting with your local AI.
- Download the Windows ZIP package.
- Extract it to any folder.
- Run
PocketAI.exe. - Complete the first-run setup wizard.
Note: Ollama must already be installed and running with at least one model.
Developers who want to build PocketAI from source can clone the repository and install the required dependencies:
git clone [https://github.com/kongogaming/PocketAI.git](https://github.com/kongogaming/PocketAI.git)
cd PocketAI
pip install -r requirements.txt
Next, choose one of the two methods below to host your AI model.
Use this method if you want your PC's hardware to handle the AI processing.
- Install Ollama: Download from ollama.com/download.
- Download a Model:
ollama pull qwen2.5:1.5b
- Start Ollama:
ollama serve
Use this method if you want your phone to run the AI, and connect to it from your PC over Wi-Fi.
- Install Termux: Download the latest APK from F-Droid (Recommended) or the Termux GitHub Releases.
โ ๏ธ Important: Do not download Termux from the Google Play Store, as that version is deprecated and broken.
- Update Packages:
pkg update && pkg upgrade
- Install Ollama & Download a Model: Follow standard Termux instructions for Ollama, then run:
ollama pull gemma3:270m
- Expose Ollama to your Local Network:
export OLLAMA_HOST=0.0.0.0:11434
ollama serve
โ ๏ธ Leave this Termux session running!
- Find your Phone's IP Address: Take note of your phone's local IP (e.g.,
192.168.29.142).
If you built from source, launch the app on your PC from the PocketAI folder:
python pocketai/main.py
PocketAI automatically detects whether a configuration exists. No manual config editing is required.
On first launch, the interactive setup wizard will:
- Connect to your Ollama server (or prompt for your phone's IP if using Hybrid Mode).
- Detect installed models.
- Recommend the best model.
- Generate your configuration file automatically.
- Launch the PocketAI dashboard.
If you ever need to manually inspect the config.json that the wizard generates, it looks like this:
{
"url": "[http://127.0.0.1:11434/api/chat](http://127.0.0.1:11434/api/chat)",
"model": "qwen2.5:1.5b",
"theme": "monokai",
"stats": true
}
PocketAI comes with a rich set of built-in commands to manage your experience directly from the chat prompt.
| Command | Description |
|---|---|
/help |
Show help menu |
/about |
About PocketAI |
/config |
View current configuration |
/theme |
Browse available themes |
/theme <name> |
Change theme |
/models |
List installed Ollama models |
/model |
Show current model |
/model <name> |
Switch model |
/save |
Save conversation |
/history |
Browse saved chats |
/load <id> |
Load conversation |
/rename <id> <title> |
Rename conversation |
/delete <id> |
Delete conversation |
/search <text> |
Search current conversation |
/export md |
Export as Markdown |
/export txt |
Export as Text |
/export pdf |
Export as PDF |
/update |
Check for updates |
/stats |
Show statistics status |
/stats on |
Enable statistics |
/stats off |
Disable statistics |
/reset |
Clear conversation |
/clear |
Clear terminal |
/version |
Show PocketAI version |
/bye |
Exit PocketAI |
PocketAI works with any Ollama-compatible model.
Recommended:
- โญ
qwen2.5:1.5b - โญ
qwen2.5:3b - โญ
qwen3:4b - โญ
gemma3:1b gemma3:270mllama3.2phi4-minideepseek-r1mistraltinyllama
Make sure the server is actively running. Open a new terminal window and run:
ollama serve
You need to pull at least one model before PocketAI can use it. Run:
ollama pull qwen2.5:1.5b
If connecting from your PC to your Android phone fails, ensure your phone is broadcasting on 0.0.0.0 by running export OLLAMA_HOST=0.0.0.0:11434 inside Termux before starting the server.
Does PocketAI require the Internet? No, 100% of the processing happens locally on your machine once your models are downloaded.
Can I use it with any Ollama model? Yes. As long as Ollama supports it, PocketAI can chat with it.
Does it work on Android? Yes, using the Termux method outlined in the installation instructions.
- Internet web search is not currently supported.
- Requires an active Ollama server to function.
- Document RAG functionality is not yet available (Planned for v0.6).
- Local AI Chat & Streaming Responses
- Configuration & Theme Systems
- Rich Terminal UI & Statistics
- Conversation Memory, Save & Load
- History Management & Dashboard Improvements
- Search Conversations
- Markdown, TXT, and PDF Export
- Update Checker
- Model Manager Improvements
- UI Polish & Better Help System
- First-Run Setup Wizard
- Automatic Ollama Detection
- Automatic Model Detection
- Automatic Configuration Creation
- Better EXE Distribution
- Graceful Ctrl+C Exit Confirmation
- Setup Wizard UI Polish
- Automatic Self-Updater
- GitHub Release Installer
- Voice Input
- Text-to-Speech
- Chat With Documents (RAG)
- Image Understanding
- Plugin System
- Performance Improvements
PocketAI is powered by amazing open-source projects. Huge thanks to their maintainers:
Contributions are always welcome! Feel free to:
- Fork the repository
- Improve the code
- Suggest features
- Report bugs
- Open Pull Requests
Licensed under the MIT License. See the LICENSE file for details.
Somya Ranjan Pal
- GitHub: @kongogaming
- Repository: PocketAI
Made with โค๏ธ using Python, Rich, and Ollama.