Model Registry URL
Models auto-download from HuggingFace by default. You can override this to use a mirror, local server, or air-gapped environment.Programmatic Override (recommended for apps)
Environment Variables (recommended for CLI/testing)
Xcode Scheme
- Edit Scheme > Run > Arguments
- Go to Environment Variables tab
- Add:
REGISTRY_URL=https://your-mirror.example.com
Proxy Configuration
If you’re behind a corporate firewall, set thehttps_proxy environment variable:
When to Use Which
| Scenario | Solution |
|---|---|
| Local mirror or internal model server | Registry URL override |
| Behind a corporate firewall with proxy | Proxy configuration |
your-mirror.com instead of huggingface.co.
Proxy — App still requests huggingface.co, but traffic routes through the proxy.
In most cases, you only need one.