# Conda mirror (pkg.shecan.ir)

> Mirror of the conda-forge and bioconda channels (conda.anaconda.org) for conda, mamba, micromamba and pixi: repodata (including sharded repodata) and package files.

- Upstream: conda.anaconda.org (کانال‌های conda-forge و bioconda)
- Mirror URLs: <https://mirror-conda.pkg.shecan.ir>, <https://mirror-conda.pkg.shecan.ir/conda-forge>, <https://mirror-conda.pkg.shecan.ir/bioconda>
- Clients: conda, mamba, micromamba, pixi
- Service status: <https://pkg.shecan.ir/status.json> (key `conda`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/conda/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/conda.json>

## Limitations

- Only the conda-forge and bioconda channels. Anaconda's defaults channels (pkgs/main, pkgs/r, pkgs/msys2 on repo.anaconda.com) are not mirrored because Anaconda's terms of service do not allow mirroring them; the conda setup points defaults at the conda-forge mirror.
- Other channels on anaconda.org (pytorch, nvidia, personal channels) are not served (404).
- Read-only: anaconda upload/login are not supported. Installers (Miniforge, Miniconda) are not served.

## 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.

### conda, mamba: persistent (user- or system-wide configuration)

Run

```sh
conda config --set channel_alias https://mirror-conda.pkg.shecan.ir
conda config --add channels conda-forge
conda config --add default_channels https://mirror-conda.pkg.shecan.ir/conda-forge
```

Undo / restore the default

```sh
conda config --remove-key channel_alias
conda config --remove-key default_channels
```

### conda, mamba: temporary (one command or the current shell; nothing saved)

Run

```sh
conda create -n myenv --override-channels -c https://mirror-conda.pkg.shecan.ir/conda-forge python=3.12
```

### micromamba: persistent (user- or system-wide configuration)

Run

```sh
micromamba config set channel_alias https://mirror-conda.pkg.shecan.ir
micromamba config append channels conda-forge
```

### pixi: persistent (user- or system-wide configuration)

Configuration file: `%USERPROFILE%\.pixi\config.toml` or `~/.pixi/config.toml`

```toml
[mirrors]
"https://conda.anaconda.org/conda-forge" = ["https://mirror-conda.pkg.shecan.ir/conda-forge"]
"https://conda.anaconda.org/bioconda" = ["https://mirror-conda.pkg.shecan.ir/bioconda"]
```
