A SwiftUI chat application showcasing swift-huggingface and AnyLanguageModel.
Screen.Recording.2025-10-13.at.04.36.04.mov
Note
This project is in active development. Features and APIs may change.
- Apple Intelligence — Native integration with Apple Foundation Models (macOS 26+) for on-device AI
- Hugging Face Integration — Connect to Hugging Face with OAuth 2.0 authentication
- Streaming Responses — Real-time streaming of AI responses for a responsive user experience
- Chat Persistence — Save and manage multiple conversations
- MLX Model Support — Download and run models locally using MLX
- CoreML Integration — Support for CoreML-optimized models
- GGUF Format Support — Load GGUF models from Hugging Face Hub
- Model Downloads — Browse and download models directly from Hugging Face
- BYOK — Bring your own API keys for other inference providers (OpenAI, Anthropic, etc.)
- macOS 26 or later
- Xcode 26+
- Clone the repository
git clone https://github.com/mattt/chat-ui-swift.git
cd chat-ui-swift- Open in Xcode
xed .- Build and run
Press ⌘R to build and run the application.
To use Hugging Face's Inference API:
- Launch the app
- Click the sign-in button in the sidebar
- Authenticate with your Hugging Face account
- Select a Hugging Face model from the model picker
- Start chatting!
The app uses OAuth 2.0 to securely authenticate with Hugging Face. Your access token is stored securely in the Keychain and automatically refreshed when needed.
This project is available under the MIT license. See the LICENSE file for more info.
Hugging Face® is a registered trademark of Hugging Face, Inc.