Arbiter – Unified AI runtime for Swift with intelligent provider routing
Arbiter is a unified AI runtime designed for Swift, allowing developers to interact with multiple AI providers through a single interface. It features intelligent routing that analyzes requests to determine the best provider based on various factors such as complexity and cost. The system supports both cloud and on-device AI, enabling flexible and efficient AI integration in applications.
- ▪Arbiter allows developers to call any AI provider through a consistent interface.
- ▪The intelligent routing system analyzes requests to determine the optimal provider based on complexity and intent.
- ▪Arbiter supports both cloud and on-device AI, providing flexibility for developers.
Opening excerpt (first ~120 words) tap to expand
Arbiter One API for every AI — cloud, on-device, and Apple Intelligence. Arbiter is a unified AI runtime for Swift that lets you call any AI provider through a single, consistent interface. Write your AI code once, then swap providers — or run them all simultaneously with intelligent routing. Quick Start import Arbiter let ai = try Arbiter { try $0.cloud(.anthropic(from: .keychain)) } // Simple generation let response = try await ai.generate("Explain quantum computing") // Or drop in a full chat UI ArbiterChatView(ai: ai) Multi-Provider Setup let ai = try Arbiter { try $0.cloud(.anthropic(from: .keychain)) try $0.cloud(.openAI(from: .keychain)) try $0.cloud(.gemini(from: .keychain)) $0.local(OllamaProvider()) $0.local(MLXProvider(.auto)) $0.system(AppleFoundationProvider())…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.