Xybrid

A cross-platform on-device AI toolkit, with a Swift package for iOS, that runs speech, language and vision models locally and can optionally fall back to cloud models.

View on GitHub ↗
Stars
★ 536
Last commit
4 Dec 2026
Maintenance
Active
Licence
Apache-2.0
Category
On-device AI SDKs · Cloud-capable
GitHub
xybrid-ai/xybrid

Overview

Xybrid is a toolkit for running speech-to-text, text-to-speech, language and vision models inside apps and games, on the device, with one API across several programming languages. Official bindings include Swift, Flutter, Kotlin, React Native, Unity, Rust, Python and a CLI. The README's main pitch is private, offline inference, with no cloud needed after the first model download.

It is not Apple-only. Backends include ONNX Runtime, llama.cpp (GGUF), whisper.cpp, Candle and CoreML. The docs list Metal acceleration (through llama.cpp) on Apple devices and CPU on the iOS Simulator. Android and Windows run on the CPU for now, and Linux can opt into Vulkan.

The Swift package is a full SDK, but its Package.swift currently declares only iOS 16 or later. The shipped XybridFFI xcframework does not include macOS, even though the wider toolkit lists macOS as a supported platform.

Cloud execution is optional and documented. A pipeline stage can run on the device, in the cloud, or in auto mode, which may send OpenAI-compatible requests to Xybrid Platform (https://api.xybrid.dev/v1) or to a direct provider such as OpenAI, Anthropic, DeepSeek or OpenRouter. On-device runs do not need an API key once the model is cached. Billing for Xybrid Platform has not been verified.

The project is licensed under the Apache-2.0 licence. Version 0.21.0 of the xybrid crate on crates.io is also Apache-2.0 and matches the GitHub release. Model weights keep their own licences.

Features

  • A shared API for loading a registry model and running text, audio or other envelopes, with download and cache handling.
  • Speech-to-text (including Whisper Tiny), text-to-speech (including Kokoro 82M), LLMs (including Gemma 4, Qwen 3.5, LFM2.5 and others) and vision-language models.
  • Tool calling from local models, on the documented SDKs.
  • Optional multi-model pipelines (MMP) that chain stages such as ASR, LLM and TTS; this path is marked experimental.
  • Experimental bring-your-own-model support for ONNX, GGUF or SafeTensors, with a model_metadata.json file.
  • A CLI (xybrid run, xybrid models list) and install scripts for macOS, Linux and Windows.
  • Optional cloud fallback and routing policies, plus opt-in telemetry behind an API key.
  • A model catalogue at https://www.xybrid.ai/models.

Requirements

  • For the Swift SDK: iOS 16 or later, Xcode, and Swift Package Manager. The package downloads XybridFFI from the matching GitHub release.
  • Network access for the first model download from the registry, and for any cloud stage.
  • For the CLI: the published install script, or a crates.io install of xybrid 0.21.0.
  • Cloud stages need XYBRID_API_KEY (gateway) or the relevant provider key for direct mode.
  • Other SDKs have their own minimum versions (for example Flutter documents iOS 16, macOS 14 and Android 9; Kotlin and React Native releases from 0.16.0 need Android 10).

Install

  1. Swift: add .package(url: "https://github.com/xybrid-ai/xybrid.git", from: "0.21.0") and depend on the Xybrid product, then let model = try await Xybrid.model("kokoro-82m").load().

  2. CLI on macOS or Linux: run the README's install.sh from the master branch (a standard curl-to-shell install). Windows has install.ps1.

  3. Rust: xybrid = "0.21.0" on crates.io. Other language SDKs are documented at https://docs.xybrid.dev.

Example

In an iOS app, add the Swift package from 0.21.0, load kokoro-82m, and run an Envelope.text("Hello world") call to get 24 kHz WAV audio. For a local LLM, load a registry id such as lfm2.5-230m and run a text envelope. Cloud routing, if used, is configured on a pipeline stage as described in the hybrid execution docs.

Works with

Not stated by the source

Listed in

Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.

Report a correction

More in this category