Ollama WebUI is a minimalist, easy-to-use web interface built with FastAPI and Vue.js, designed to interact with local AI models via Ollama.
- Simple, responsive web interface.
- System prompts (custom instructions) to define AI behavior.
- FastAPI backend + Vue.js frontend.
- Seamless integration with local Ollama models.
- Docker support for quick deployment.
git clone https://github.com/wilmerm/ollama-webui.git
cd ollama-webuipip install -r requirements.txtcd frontend/vue-app
npm install
npm run build./start.shdocker compose build
docker compose up -d# Required:
DEFAULT_MODEL=llama3.1:latest # See more models: https://ollama.com/library/
OLLAMA_BASE_URL=http://127.0.0.1:11434
# Optional:
DEFAULT_TIMEOUT=30 # Increase if model is heavy or system resources are limited.
DEFAULT_TEMPERATURE=0.5 # Controls creativity of AI responses.
GUNICORN_WORKERS=1 # Number of Gunicorn workers.
VITE_SERVER_BASE_URL=http://127.0.0.1:7000 # Only set if backend runs on a different URL/port.To allow the backend inside Docker to connect to Ollama, edit the Ollama systemd service file and add:
[Service]
Environment="OLLAMA_HOST=0.0.0.0"Download from the official website: ➡️ https://ollama.com/download
Or install via shell:
curl -fsSL https://ollama.com/install.sh | shDownload a model:
ollama pull llama3.1:latestRun a model:
ollama run llama3.1:latestNote: You don’t need to run the model manually when using Ollama WebUI. The app will automatically start the model specified in
.envif it’s not already running.
Ollama WebUI supports system prompts to customize AI behavior. Click the "⚙️ Instrucciones del Sistema" section above the chat to:
- Define custom AI personality and behavior
- Set context that persists throughout the conversation
- Use preset examples or create your own instructions
- Enable/disable as needed during conversations
Example system prompts:
"You are an IT security expert. Always answer from a cybersecurity perspective.""Always respond in Spanish and help me learn the language.""You are a helpful assistant who answers concisely and clearly."
For detailed documentation, see docs/SYSTEM_PROMPTS.md.
Contributions are welcome!
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Commit your changes (
git commit -m 'Add feature'). - Push to your fork (
git push origin feature/your-feature). - Open a Pull Request.
This project is licensed under the MIT License — see the LICENSE file for details.
![]() Wilmer Martinez Author & Maintainer |
