A simple, stupid UI for Ollama. Keep It Simple, Stupid (KISS).
- Chrome Web Store version is under review
- Once approved, you can install it directly from the Chrome Web Store
- Advantage: No CORS issues to worry about
- Access directly via browser: https://jlvihv.github.io/ollama-kiss-ui/
- Note: You'll need to handle CORS when accessing Ollama API
While there are many excellent Ollama UIs available, most of them come with abundant features and dependencies that you might not need. I just wanted a straightforward interface to chat with Ollama models, without installing a ton of packages or dealing with complex configurations.
- Single page chat interface
- Model switching
- Chat history
- Markdown support (including code blocks)
- Code syntax highlighting with highlight.js
- One-click code copying
- Export chat history as JSON
- Dark/Light theme
- Server URL configuration
- That's it!
When accessing through GitHub Pages, you'll need to handle CORS. Here are several ways to configure Ollama to accept CORS requests:
-
Quick Start (Development)
OLLAMA_ORIGINS="*" ollama serve
-
Using systemd (Recommended for Linux users)
# Edit the service file sudo systemctl edit ollama # Add these lines: [Service] Environment="OLLAMA_ORIGINS=*" # Restart the service sudo systemctl restart ollama
-
Permanent Environment Variable
- Add to your shell config file (~/.bashrc or ~/.zshrc):
export OLLAMA_ORIGINS="*"
- Then reload your shell or run:
source ~/.bashrc # or source ~/.zshrc
- Add to your shell config file (~/.bashrc or ~/.zshrc):
-
Docker Users
docker run -d -e OLLAMA_ORIGINS="*" -p 11434:11434 ollama/ollama
Note: Using *
allows requests from any origin. For production environments, you may want to restrict this to specific domains for security.
- Install from Chrome Web Store (under review)
- Or load unpacked:
- Clone this repository
bun install
bun run build
- Open Chrome Extensions page
- Enable Developer mode
- Click "Load unpacked" and select the
dist
folder
- Ollama installed and running
- A web browser
- Open the extension or visit the GitHub Pages site
- Make sure your Ollama server is running (default: http://localhost:11434)
- Select a model
- Start chatting!
- Syntax highlighting automatically applies to code blocks using highlight.js
- Click the copy button in the top-right corner of any code block to copy the code
- Supports all major programming languages
bun install
bun run dev
bun run build
- No unnecessary features
- No complex configurations
- No massive dependencies
- Just chat
MIT
Built with:
- Svelte
- Tailwind CSS
- DaisyUI
- Dexie
- Marked
- DOMPurify
- highlight.js (syntax highlighting)
Feel free to contribute, but remember: keep it simple! If your feature request involves complex configurations or dependencies, it might not align with the project's KISS philosophy.
If you encounter issues with the UI, feel free to open an issue. If you have problems with Ollama itself, please refer to the Ollama repository.
Remember: Sometimes, less is more. 🎈