A modern, responsive chat interface for AI conversations using local Large Language Models like Ollama.
- 🎨 Modern UI with Light/Dark themes
- 📱 Responsive design & PWA support
- 🔄 Real-time streaming responses
- 💾 Local chat history
- ⚡ Zero dependencies
- 🔒 Privacy-focused (all data stays local)
- Ollama installed and running
- Modern web browser (Chrome, Edge, Safari or Firefox)
-
Configure Ollama for CORS
Choose your operating system:
Windows
setx OLLAMA_ORIGINS "*"
MacOS
launchctl setenv OLLAMA_ORIGINS "*"
Linux
sudo systemctl edit ollama.service # Add under [Service]: Environment="OLLAMA_ORIGINS=*" sudo systemctl daemon-reload sudo systemctl restart ollama
-
Restart Ollama
-
Visit Chat UI
-
Optional: Install as PWA for desktop-like experience
⚠️ Chrome Users: Disable 'Respect the result of Private Network Access preflights' inchrome://flags/
AI_Chat_UI/
├── assets/ # Static assets (images, fonts)
│ ├── css/ # Stylesheets
│ ├── js/ # JavaScript files
│ └── icons/ # App icons
├── layx/ # Core framework
│ ├── main/ # Main components
│ └── utils/ # Utility functions
└── pages/ # Static HTML pages
-
Theme Modification
- Edit
/layx/main/base/variable.css
for base variables - Edit
/layx/main/base/variable_color.css
for color schemes
- Edit
-
UI Components
- Main styles:
assets/css/chat_app/main.css
- Core logic:
assets/js/chat_app/main.js
- Main styles:
- Fork repository
- Create feature branch (
git checkout -b feature/AmazingFeature
) - Commit changes (
git commit -m 'Add AmazingFeature'
) - Push branch (
git push origin feature/AmazingFeature
) - Open Pull Request
MIT License - See LICENSE for details
- Multi-LLM support (Claude, GPT4All)
- Enhanced theme customization
- Voice input/output
- Markdown export
- Context length management
- Custom prompts library