Developers · Mac
A real-time avatar for Mac apps and desktop companions
Two ways in. The Swift package renders the avatar inside your Mac app. The bitHuman CLI runs a complete desktop companion, and with its local conversation brain (BITHUMAN_LOCAL=1), speech recognition, the language model and the voice all run on the Mac. The session still reports usage online.
From 12 October 2026, API and SDK use requires the Creator plan or higher.
Install
.package(url: "https://gitlab.com/bithuman/sdk/homebrew-bithuman", from: "2.20.5")curl -fsSL https://install.bithuman.ai | shWhat you need: Xcode 26+, API secret · sign-in (from the docs)
Add a conversation
The local conversation brain (CLI)
Speech recognition, the language model and the voice run on the Mac. It needs a one-time build and a model download on its first run; the docs give the steps and the size.
Your own services, in a Swift app
The Swift package takes 16 kHz mono speech from any voice stack and returns frames, as on iPhone.
When the avatar renders in your app on the device and you use your own voice and language services, bitHuman receives usage metering only, never audio, video or conversation text.
Requirements
- A Mac with Apple silicon; Intel Macs are not supported.
- Essence 2 in the Swift package needs a newer Mac and macOS than Expression 2; the docs list both floors.
- A sandboxed Mac app needs the Outgoing Connections (Client) entitlement, or the engines cannot check your API secret.
What it costs
| Item | On the device (Essence 2, Expression 2) | bitHuman cloud avatar | Managed voice chat (all-inclusive) |
|---|---|---|---|
| Credits per minute of active session time | 2 | 4 | 10 |
| At top-up rates ($1 = 100 credits) | about $0.02 | about $0.04 | about $0.10 |
From 12 October 2026, API and SDK use requires the Creator plan or higher.
Rates from GET https://api.bithuman.ai/v1/pricing, as published on docs.bithuman.ai/pricing.
Examples you can clone

Mac — Expression 2
One Swift command-line tool: speech in, lip-synced frames out, on your Mac.
Swift · Mac (Apple silicon)

Python quickstart
Open an avatar, play speech through it and watch it talk; conversation.py adds a voice conversation.
Python · Mac, Linux

CLI recipes
Render a video or run a live avatar from the terminal, with no code.
Shell · Mac, Linux
Before you ship
Not available on this platform
- An offline license in a Swift-package app: fully offline on a Mac runs Essence 1 through the Python package.
- Intel Macs.
