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