
Introducing swift-huggingface: The Complete Swift Client for Hugging Face — announced via Hugging Face on December 5, 2025. Today, we're announcing swift-huggingface , a new Swift package that provides a complete client for the Hugging Face Hub. Building an app where users sign in with their Hugging Face account? swift-huggingface includes a complete OAuth 2.0 implementation: swift-huggingface implements a Python-compatible cache structure that allows seamless sharing between Swift and Python clients: And that's not all!
Today, we're announcing swift-huggingface , a new Swift package that provides a complete client for the Hugging Face Hub.
You can start using it today as a standalone package, and it will soon integrate into swift-transformers as a replacement for its current HubApi implementation.
When we released swift-transformers 1.0 earlier this year, we heard loud and clear from the community:
Downloading large models is now straightforward with proper progress tracking and resume support:
The API is similar, but the implementation is completely different — built on URLSession download tasks with proper delegate handling, resume data support, and metadata tracking.
Faster downloads with Xet. We're adding support for the Xet storage backend , which enables chunk-based deduplication and significantly faster downloads for large models. More on this soon.
swift-huggingface is a ground-up rewrite focused on reliability and developer experience. It provides:
One of the biggest improvements is how authentication works. The TokenProvider pattern makes it explicit where credentials come from:
The auto-detection follows the same conventions as the Python huggingface_hub library:
This means if you've already logged in with hf auth login , swift-huggingface will automatically find and use that token.