ollama-admin-ui is a web application that makes it easy to download and delete models on your local ollama docker installation using your web browser.
DISCLAIMER: I am not affiliated with the ollama project. I made this for fun.
- see what models are available for download
- search model names, descriptions, and tags
- download desired models
- remove unwanted models
- provides links back to ollama.com for individual models, making it easy to get additional information from the official source.
- uses the same visual styling engine (Tailwindcss) and themes that ollama.com uses, making ollama-admin-ui visually appealing and coherent. Switching between ollama.com and ollama-admin-ui is seamless.
- provides an exportable ollama model/tag library manifest in json.
DISCLAIMER: ollama-admin-ui provides no authentication mechanisms and makes no guarantees about security. You probably shouldn't use it in production.
- I wanted something to help me manage the models on my local ollama installation without having to run curl commands or a python script and I wasn't aware of a similar project.
- I recently read the hypermedia systems book, and was inspired to make a hypermedia-based web application.
- I love the ollama project and wanted to make something complimentary.
git clone the project...
cd ollama-admin-ui
docker compose build
docker compose up
Access at http://localhost:8001/
Use the search box to search for models and tags.
Tip: search for "downloaded" to see which models/tags are already downloaded.
- Hover over the model tag and click the desired tag.
- Once the model is finished downloading, it will turn green.
- Click a green model tag to be prompted to delete the downloaded model.
- Click the model name to be taken to the model page at ollama.com
- click the "Refresh Model Catalog" button to refresh the list of models and tags with information from ollama.com
If you're a developer, the utility class wollama, provided by ollama-admin-ui source code can be used to programmatically access the model/tag catalog via the Catalog object. The Catalog object can also export the ollama model/tag library as JSON.
from wollama.wollama import (
Catalog,
ModelTag,
ModelTagCollection,
OllamaInfo,
OllamaRegistry,
)
# Initialize the OllamaRegistry client to read the remote ollama library
oregistry = OllamaRegistry()
# The OllamaRegistry should already have a version of the model/tag catalog cached.
if oregistry:
try:
oregistry.load_from_cache()
except Exception as e:
print(f"Could not load oregistry catalog from cache...:\n{e}")
try:
oregistry.refresh()
except:
print("Could not refresh the remote catalog from the web!")
catalog = oregistry.catalog
# Write the catalog to a JSON
catalog.export_catalog("/path/to/file.json")
- It is a known issue that ollama does not publish a complete manifest of model and tag information for easy download.
- As a result, ollama-admin-ui must scrape ollama.com for model information to refresh the library. To mitigate overloading of the servers, ollama-admin-ui comes with a library that is preloaded with information.
- The refresh functionality is rate-limited to protect ollama.com's servers, making a complete library refresh slow. As the ollama team publishes a way to pull library information without web-scrapping, this part of the application can be updated to use that method instead.
- https://github.com/zeitlings/alfred-ollama
- https://github.com/lemonit-eric-mao/ollama-web-management
- https://github.com/imoize/plasmoid-ollamacontrol
uv sync
uv run main.py
- Use Tailwindcss utility classes in html.
- Generate new css using tailwindcss cli.
tailwindcss --watch -i ./app/static/css/input.css -o ./app/static/css/output.css
- Use icons from heroicons