# Ollama mirror (pkg.shecan.ir)

> Mirror of the Ollama model registry (registry.ollama.ai, the ollama.com library) for ollama pull; models are pulled by the mirror host name.

- Upstream: registry.ollama.ai
- Mirror URL: <https://mirror-ollama.pkg.shecan.ir>
- Clients: ollama
- Service status: <https://pkg.shecan.ir/status.json> (key `ollama`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/ollama/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/ollama.json>

## Limitations

- Models are named after the mirror host (ollama pull mirror-ollama.pkg.shecan.ir/library/<model>:<tag>); ollama cp gives them their usual short name.
- Model files of 5 GB or more are downloaded through the mirror but not cached; the cache holds about 10 GiB, so large models are often fetched from upstream again.
- Pull only: ollama push, ollama signin, cloud models and models from hf.co are not supported.

## Setup

Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.

### ollama: temporary (one command or the current shell; nothing saved)

Run

```sh
ollama pull mirror-ollama.pkg.shecan.ir/library/qwen2.5:0.5b
ollama cp mirror-ollama.pkg.shecan.ir/library/qwen2.5:0.5b qwen2.5:0.5b
```
