{"id":29947045,"url":"https://github.com/ableinc/local-ai","last_synced_at":"2026-04-18T04:02:00.505Z","repository":{"id":304756883,"uuid":"1019654415","full_name":"ableinc/local-ai","owner":"ableinc","description":"Converse with Ollama models running on your local machine","archived":false,"fork":false,"pushed_at":"2025-11-28T16:46:29.000Z","size":1397,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-29T13:58:14.962Z","etag":null,"topics":["chat-app","llm","ollama","ollama-chat","ollama-gui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ableinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-14T16:57:50.000Z","updated_at":"2025-11-28T16:46:33.000Z","dependencies_parsed_at":"2025-07-15T05:47:48.028Z","dependency_job_id":null,"html_url":"https://github.com/ableinc/local-ai","commit_stats":null,"previous_names":["ableinc/local-ai"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ableinc/local-ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Flocal-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Flocal-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Flocal-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Flocal-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ableinc","download_url":"https://codeload.github.com/ableinc/local-ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Flocal-ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat-app","llm","ollama","ollama-chat","ollama-gui"],"created_at":"2025-08-03T06:48:16.317Z","updated_at":"2026-04-18T04:02:00.493Z","avatar_url":"https://github.com/ableinc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ollama GUI Chat Application\n\nA modern, full-featured desktop chat application that runs entirely on your local machine. Built with Electron, React, TypeScript, and Vite, featuring a sleek UI powered by shadcn/ui components and Tailwind CSS.\n\n## 📥 Quick Start\n\nDownload the latest version for your platform from our [GitHub Releases](https://github.com/ableinc/local-ai/releases) page:\n\n- **macOS**: Download `Local.Ai-{version}.dmg` (Apple Silicon/Intel)\n- **Windows**: Download `Local.Ai-Setup-{version}.exe`\n- **Linux**: Download `Local.Ai-{version}.AppImage` or `.deb` package\n\nAfter installation, make sure you have Ollama running locally before starting the app.\n\n## ✨ Features\n\n- **🤖 Local AI Integration**: Connect to Ollama models running on your machine\n- **💬 Persistent Chat History**: SQLite database stores all conversations locally\n- **🔄 Streaming Responses**: Real-time AI responses with typing indicators\n- **📂 Multiple Conversations**: Create and manage multiple chat sessions\n- **🎨 Modern UI**: Clean, responsive interface with dark/light theme support\n- **📱 Mobile-Friendly**: Responsive design with collapsible sidebar\n- **🚀 Fast Performance**: Built with Vite for lightning-fast development and builds\n- **📄 Paginated History**: Efficient loading of chat history with scroll-based pagination\n- **🔧 Model Selection**: Choose from available Ollama models via dropdown\n\n## 🛠️ Tech Stack\n\n- **Desktop App**: Electron with auto-updates\n- **Frontend**: React 19, TypeScript, Vite\n- **UI Components**: shadcn/ui, Radix UI primitives\n- **Styling**: Tailwind CSS 4.x\n- **Database**: SQLite (better-sqlite3)\n- **Backend**: Express.js API server (runs embedded)\n- **AI Integration**: Ollama API\n- **Build Tool**: Vite with TypeScript\n- **Packaging**: electron-builder\n\n## 📋 Prerequisites\n\nBefore running this application, ensure you have:\n\n1. **Node.js** (v22 or higher)\n2. **bun** or **yarn**\n3. **Ollama** installed and running on your system\n\n### Installing Ollama\n\nVisit [Ollama's official website](https://ollama.ai) to download and install Ollama for your operating system.\n\nAfter installation, pull at least one model:\n```bash\n# Example: Pull a lightweight model\nollama pull llama2\n\n# Or pull other models like:\nollama pull mistral\nollama pull codellama\n```\n\nMake sure Ollama is running:\n```bash\nollama serve\n```\n\n## 🚀 Installation \u0026 Setup\n\n1. **Clone the repository** (if applicable) or navigate to the project directory:\n```bash\ncd localai\n```\n\n2. **Install dependencies**:\n```bash\nbun install\n```\n\n3. **Start the application**:\n```bash\n# Option 1: Start both frontend and backend simultaneously\nbun run dev:full\n\n# Option 2: Start them separately\n# Terminal 1 - Backend server\nbun run server\n\n# Terminal 2 - Frontend development server\nbun run dev\n```\n\n4. **Open your browser** and navigate to (development):\n   - Frontend: `http://localhost:5173` (or the port shown in terminal)\n   - Backend API: `http://localhost:3001`\n\n## 📖 Usage\n\n### Starting a Conversation\n1. Click the \"New Chat\" button in the sidebar\n2. Select an AI model from the dropdown menu\n3. Type your message in the input area\n4. Press Enter or click \"Send\"\n\n### Managing Chats\n- **View Chat History**: All chats appear in the left sidebar\n- **Switch Chats**: Click on any chat in the sidebar to load its history\n- **Scroll to Load More**: Scroll up in a chat to load earlier messages\n\n### Model Selection\n- Use the dropdown in the header to switch between available Ollama models\n- The app automatically fetches available models from your Ollama installation\n\n## 🏗️ Project Structure\n\n```\nlocal-ai/\n├── src/\n│   ├── components/\n│   │   ├── ui/           # shadcn/ui components\n│   │   └── app-sidebar.tsx\n│   ├── services/\n│   │   └── api.ts        # API service for backend communication\n│   ├── lib/\n│   │   └── utils.ts      # Utility functions\n│   └── App.tsx           # Main application component\n│   ├── server/\n│   │   └── index.js \n│   │   └── database-service.js \n├── server.js             # Express backend server\n└── package.json\n```\n\n## 🔧 Configuration\n\n### Environment Variables\nThe application uses default ports but you can customize them:\n- Frontend: Port 5173 (Vite default)\n- Backend: Port 3001\n- Ollama: Port 11434 (default)\n\n### Database\nThe SQLite database (`chat.db`) is automatically created in the project root when you first run the server.\n\n## 📚 API Endpoints\n\nThe backend provides these REST endpoints:\n\n- `GET /api/chats` - Retrieve all chats\n- `POST /api/chats` - Create a new chat\n- `GET /api/chats/:chatId/messages` - Get messages for a chat (paginated)\n- `POST /api/chats/:chatId/messages` - Add a message to a chat\n\n## 🐛 Troubleshooting\n\n### Common Issues\n\n**\"No models available\" in dropdown:**\n- Ensure Ollama is running: `ollama serve`\n- Check if you have models installed: `ollama list`\n- Pull a model: `ollama pull llama2`\n\n**App shows blank screen or won't start:**\n- Check if Ollama is running on port 11434\n- Try running with debug mode: Right-click app icon \u003e Run with Debug Mode\n- Check the app logs:\n  - macOS: `~/Library/Logs/Local Ai/main.log`\n  - Windows: `%USERPROFILE%\\AppData\\Roaming\\Local Ai\\logs\\main.log`\n  - Linux: `~/.config/Local Ai/logs/main.log`\n\n**Connection refused errors:**\n- Verify Ollama is running and accessible\n- Check your firewall settings\n- Make sure port 11434 is not blocked\n\n**Database errors:**\n- The SQLite database is created automatically\n- Check file permissions in the project directory\n- Restart the backend server if needed\n\n**Fast Refresh warnings:**\n- These are development-only warnings and don't affect functionality\n- The app will still work correctly in production builds\n\n## 🏗️ Building for Production\n\n### Running from Source\n\n```bash\n# Build the application\nbun run build\n\n# Start in development mode\nbun run dev:full\n```\n\n### Building Desktop Apps\n\n```bash\n# Build for current platform\nbun run build:mac    # macOS arm64/x64\nbun run build:win    # Windows x64\nbun run build:linux  # Linux x64\n\n# Production release build\nbun run clean:hard\nbun install\nbun run build:server\nbun run build:[os] # replace [os] with mac, win or linux\n\n# The packaged applications will be in the release/ directory\n```\n\n### Release Channels\n\n- **Stable**: Download from [GitHub Releases](https://github.com/ableinc/local-ai/releases)\n- **Development**: Build from source using instructions above\n\n### Code Signing\n\nThe macOS app is notarized and signed with an Apple Developer ID certificate. Windows builds are signed with an EV Code Signing certificate. This ensures:\n\n- No security warnings on launch\n- Gatekeeper approval on macOS\n- SmartScreen approval on Windows\n\n## 🤝 Contributing\n\nThis is a local development project. Feel free to modify and extend it according to your needs!\n\n## 📄 License\n\nThis project is for personal/educational use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fableinc%2Flocal-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fableinc%2Flocal-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fableinc%2Flocal-ai/lists"}