--- title: "Desktop SDKs: macOS, Windows, Linux, Electron, Tauri" description: "Install the versioned macOS, Windows, Linux, Electron or Tauri SDK, wire the microphone permission, and run the example app." last_updated: "2026-11-20T09:54:31+02:00" --- # Desktop SDKs: macOS, Windows, Linux, Electron, Tauri Source: https://busymate.ai/docs/guides/desktop-sdks Last modified: 2026-11-20T09:54:31+02:00 Install an official desktop SDK, distribution **1.0.4**, to show Busymate AI chat in a desktop app, whether native on Windows, Mac or Linux or built with Electron or Tauri. Each section below holds only what differs on that platform, and everything shared is on [Native SDKs](https://busymate.ai/docs/guides/sdks): the channel, identity, microphone protocol and release rules. Load the chat as the window's top-level page with `channel=desktop_sdk`, and keep the other supported query parameters. The microphone adapter is 1.0.0 on every desktop platform. Open a platform's README before you wire callbacks. ## macOS A Swift package for `WKWebView` on AppKit, with a SwiftUI wrapper. It requires macOS 12 or later and Swift tools 5.9 or later. 1. In Xcode choose File › Add Package Dependencies, enter `https://github.com/serebano/busymate-ai-sdk-macos.git`, select exact version `1.0.4` and link the `BusymateAI` product. In a package manifest use `.package(url: "https://github.com/serebano/busymate-ai-sdk-macos.git", exact: "1.0.4")`. 2. Present the SDK's chat controller with its AppKit view controller or SwiftUI view, and keep the controller in an `ObservableObject`, not in the view. It installs the identity bridge and `BusymateMicrophone` before the first load, pins top-level navigation to your allowed origins, sends other links to the default browser and recovers from web content process termination. 3. The controller takes `chatURL`, a `bridge` configuration, `microphone` (default on) and an optional `WKWebViewConfiguration`. The bridge adds `authCallbackScheme` for `ASWebAuthenticationSession` sign-in, and `mint` times out after 15 seconds. 4. Add `NSMicrophoneUsageDescription` and localize it. With the App Sandbox add `com.apple.security.network.client` and `com.apple.security.device.audio-input`; with the hardened runtime outside the sandbox add the Audio Input capability. macOS asks at the first tap. Adapter: [`BusymateMicrophone.swift`](https://github.com/serebano/busymate-ai-sdk-macos/releases/download/1.0.4/BusymateMicrophone.swift), [`SHA256SUMS`](https://github.com/serebano/busymate-ai-sdk-macos/releases/download/1.0.4/SHA256SUMS), [latest](https://github.com/serebano/busymate-ai-sdk-macos/releases/latest/download/BusymateMicrophone.swift). Demo: open `example-app/` in Xcode, choose its scheme and My Mac, and run. Links: [source](https://github.com/serebano/busymate-ai-sdk-macos/tree/1.0.4), [release](https://github.com/serebano/busymate-ai-sdk-macos/releases/tag/1.0.4), [README](https://github.com/serebano/busymate-ai-sdk-macos/blob/1.0.4/README.md), [configuration](https://github.com/serebano/busymate-ai-sdk-macos/blob/1.0.4/docs/configuration.md), [microphone](https://github.com/serebano/busymate-ai-sdk-macos/blob/1.0.4/docs/microphone.md), [example app](https://github.com/serebano/busymate-ai-sdk-macos/blob/1.0.4/example-app/README.md), [release manifest](https://github.com/serebano/busymate-ai-sdk-macos/blob/1.0.4/release-manifest.json). ## Windows A .NET 8 library for Microsoft Edge WebView2 with WPF and WinForms controls. Target `net8.0-windows` on Windows 10 or 11 with the WebView2 Runtime installed (Windows 11 ships it). The package depends on `Microsoft.Web.WebView2` 1.0.2903.40 or a compatible newer version. 1. The package is not on nuget.org. Download the `.nupkg` attached to the release into a local folder, add that folder as a NuGet source and add the package at version `1.0.4`. Alternatively clone tag `1.0.4` and add a `ProjectReference` to the library project under `src/`. 2. Use the WPF chat view or WinForms chat panel and call `StartAsync(chatUrl, options)`. On an existing `CoreWebView2`, call `AttachAsync(core, options)` before `Navigate`. 3. The options are `Identity` (null keeps a guest chat), `Microphone` (null denies microphone and camera), `RestrictNavigation`, `NavigationOrigins`, `OpenExternal` and `UserDataFolder`. The identity configuration uses PascalCase names, with `Mint` as `(request, CancellationToken)` and an optional `AppId` that salts the account hash. The control reports window re-activation as `resume`. 4. Windows has no per-app runtime prompt. The adapter re-reads Settings › Privacy & security › Microphone on every tap, can await your own `Confirm` consent dialog, and always denies camera. Reuse the identity origins with `ForAssistant(assistant, origins)`. Adapter: [`BusymateMicrophone.cs`](https://github.com/serebano/busymate-ai-sdk-windows/releases/download/1.0.4/BusymateMicrophone.cs), [`SHA256SUMS.txt`](https://github.com/serebano/busymate-ai-sdk-windows/releases/download/1.0.4/SHA256SUMS.txt), [latest](https://github.com/serebano/busymate-ai-sdk-windows/releases/latest/download/BusymateMicrophone.cs). Demo: run the WPF project in `example-app/` with `dotnet run --project`. Links: [source](https://github.com/serebano/busymate-ai-sdk-windows/tree/1.0.4), [release](https://github.com/serebano/busymate-ai-sdk-windows/releases/tag/1.0.4), [README](https://github.com/serebano/busymate-ai-sdk-windows/blob/1.0.4/README.md), [configuration](https://github.com/serebano/busymate-ai-sdk-windows/blob/1.0.4/docs/configuration.md), [microphone](https://github.com/serebano/busymate-ai-sdk-windows/blob/1.0.4/docs/microphone.md), [example app](https://github.com/serebano/busymate-ai-sdk-windows/blob/1.0.4/example-app/README.md), [release manifest](https://github.com/serebano/busymate-ai-sdk-windows/blob/1.0.4/release-manifest.json). ## Linux A C library on GTK4 and WebKitGTK 6.0, built with Meson, with GObject Introspection data for Python, GJS, Vala and Rust. It needs GTK 4.10, WebKitGTK 6.0 at 2.42, GLib 2.76, json-glib 1.6 and Meson 1.0, each or later. 1. Pin it as a Meson subproject: a `subprojects/` wrap file that points at the repository with `revision = 1.0.4`, then the `dependency(…)` line the README gives, with `example=false` and `tests=false`. Alternatively install system-wide from tag `1.0.4` with `meson setup`, `meson compile` and `meson install`; consumers find it through `pkg-config`. 2. Create the bridge with the mate and origins, connect its signals, install it on your web view and create the microphone adapter once per web view, before `webkit_web_view_load_uri`. 3. Configuration is construct properties (`assistant`, `origins`, `app-id`) plus signals: `get-account`, a required `mint` signal you answer with a fresh token and nonce, `action`, `close` and `open-uri` (return `TRUE` when you opened the URI yourself). Call `account_changed` after login, logout and account switches. When the web process crashes, the bridge reloads the chat and sends `restored`. 4. Unsandboxed apps have no per-app runtime prompt; capture goes through WebKitGTK to PipeWire or PulseAudio. Under Flatpak add the `--socket=pulseaudio` finish-arg, and under Snap connect `audio-record`. The optional `request-permission` signal lets you show your own consent dialog. Adapter: [`busymate-microphone.c`](https://github.com/serebano/busymate-ai-sdk-linux/releases/download/1.0.4/busymate-microphone.c), [`busymate-microphone.h`](https://github.com/serebano/busymate-ai-sdk-linux/releases/download/1.0.4/busymate-microphone.h), [`SHA256SUMS`](https://github.com/serebano/busymate-ai-sdk-linux/releases/download/1.0.4/SHA256SUMS); latest: [`.c`](https://github.com/serebano/busymate-ai-sdk-linux/releases/latest/download/busymate-microphone.c), [`.h`](https://github.com/serebano/busymate-ai-sdk-linux/releases/latest/download/busymate-microphone.h). Demo: run `meson setup _build && meson compile -C _build`, then the binary under `_build/example-app/`. Links: [source](https://github.com/serebano/busymate-ai-sdk-linux/tree/1.0.4), [release](https://github.com/serebano/busymate-ai-sdk-linux/releases/tag/1.0.4), [README](https://github.com/serebano/busymate-ai-sdk-linux/blob/1.0.4/README.md), [configuration](https://github.com/serebano/busymate-ai-sdk-linux/blob/1.0.4/docs/configuration.md), [microphone](https://github.com/serebano/busymate-ai-sdk-linux/blob/1.0.4/docs/microphone.md), [example app](https://github.com/serebano/busymate-ai-sdk-linux/blob/1.0.4/example-app/README.md), [release manifest](https://github.com/serebano/busymate-ai-sdk-linux/blob/1.0.4/release-manifest.json). ## Electron An npm package with a main-process helper that creates the chat window with secure defaults. It needs Electron 30 or later (a peer dependency, for `WebContentsView`), ships CommonJS and ESM with TypeScript types, and has no runtime dependencies. 1. The package is not on the npm registry. Run `npm install https://github.com/serebano/busymate-ai-sdk-electron/releases/download/1.0.4/busymate-ai-electron-1.0.4.tgz`, or clone tag `1.0.4`, build it and install the local folder. 2. Call the create-chat-window helper (or the `WebContentsView` variant), then `chat.load()`. The window uses `contextIsolation`, the Chromium `sandbox`, no `nodeIntegration`, no `` and a dedicated persistent session. The frozen identity files are byte-identical to `https://busymate.ai/sdk/v2/2.0.0/electron/`. 3. The options are `url` (HTTPS, with `channel=desktop_sdk`, its origin allowed), `assistant`, `origins`, a required `appId` that salts the account hash, `account`, `mint` returning `{ token, nonce }` or `null`, `onAction`, `onClose` (for example `chat.window.close()`) and `microphone` (default `true`; `false` loads the identity-only preload). Call `chat.accountChanged()` after account changes. When the renderer dies the bridge reloads the chat, sends `restored` and tells `onRenderProcessGone`. 4. On macOS the OS is asked with `systemPreferences.askForMediaAccess` at the first tap. In a packaged macOS app add `NSMicrophoneUsageDescription` to `Info.plist`, and with the hardened runtime the `com.apple.security.device.audio-input` entitlement. Adapter: [`microphone.ts`](https://github.com/serebano/busymate-ai-sdk-electron/releases/download/1.0.4/microphone.ts), [`preload-microphone.ts`](https://github.com/serebano/busymate-ai-sdk-electron/releases/download/1.0.4/preload-microphone.ts), [`SHA256SUMS`](https://github.com/serebano/busymate-ai-sdk-electron/releases/download/1.0.4/SHA256SUMS); latest: [`microphone.ts`](https://github.com/serebano/busymate-ai-sdk-electron/releases/latest/download/microphone.ts), [`preload-microphone.ts`](https://github.com/serebano/busymate-ai-sdk-electron/releases/latest/download/preload-microphone.ts). Demo: `npm ci && npm run build`, then `cd example-app && npm ci && npm start`. Links: [source](https://github.com/serebano/busymate-ai-sdk-electron/tree/1.0.4), [release](https://github.com/serebano/busymate-ai-sdk-electron/releases/tag/1.0.4), [README](https://github.com/serebano/busymate-ai-sdk-electron/blob/1.0.4/README.md), [configuration](https://github.com/serebano/busymate-ai-sdk-electron/blob/1.0.4/docs/configuration.md), [microphone](https://github.com/serebano/busymate-ai-sdk-electron/blob/1.0.4/docs/microphone.md), [example app](https://github.com/serebano/busymate-ai-sdk-electron/blob/1.0.4/example-app/README.md), [release manifest](https://github.com/serebano/busymate-ai-sdk-electron/blob/1.0.4/release-manifest.json). ## Tauri The `tauri-plugin-busymate-ai` Rust crate and the optional `tauri-plugin-busymate-ai-api` JavaScript bindings, for Tauri 2.12 or later and Rust 1.77.2 or later. A Tauri window's own `__TAURI_INTERNALS__` never makes it a Busymate AI shell, so the chat keeps its normal layout. 1. Add `tauri-plugin-busymate-ai = { git = "https://github.com/serebano/busymate-ai-sdk-tauri", tag = "1.0.4" }` to `src-tauri/Cargo.toml`, or download the `.crate` file from the release and depend on it by path. Nothing is published to crates.io or npm; the optional frontend bindings install from the release's `.tgz` together with `@tauri-apps/api`. 2. Register the plugin's `Builder` with your `account`, `mint` and `on_close` callbacks, add `.on_permission_request(…)` with the plugin's `permission_handler`, and open the chat with `open_chat(ChatOptions { url, assistant, origins, .. })`. On macOS also forward `on_web_content_process_terminate` to `web_content_process_terminated`. The chat opens in its own webview window and the bridge is answered from your Rust side. 3. `ChatOptions` also takes `identity` and `microphone` (both default on), `title`, `width` and `height`. The builder adds `on_action`, `open_url` (default: the system browser) and `app_info`, whose id salts the account key; only the salted hash of `account` reaches the chat. Call `account_changed()` (or `accountChanged()` from JavaScript) after account changes. 4. Add the plugin's `default` permission only to your own local window's capability. Never add `allow-bridge` or `allow-microphone` to a capability: the plugin grants them at runtime to the chat window only, for its exact HTTPS origins. 5. The `on_permission_request` hook is required for the microphone. On macOS add `NSMicrophoneUsageDescription` to `src-tauri/Info.plist`; hardened-runtime and App Store builds also need `com.apple.security.device.audio-input`. On Windows the adapter reads the desktop-app microphone privacy settings, and on Linux unsandboxed apps need a working PipeWire or PulseAudio input. Adapter: [`microphone.rs`](https://github.com/serebano/busymate-ai-sdk-tauri/releases/download/1.0.4/microphone.rs), [`SHA256SUMS`](https://github.com/serebano/busymate-ai-sdk-tauri/releases/download/1.0.4/SHA256SUMS), [latest](https://github.com/serebano/busymate-ai-sdk-tauri/releases/latest/download/microphone.rs). Demo: `cd example-app && npm ci && npm run tauri dev`. Links: [source](https://github.com/serebano/busymate-ai-sdk-tauri/tree/1.0.4), [release](https://github.com/serebano/busymate-ai-sdk-tauri/releases/tag/1.0.4), [README](https://github.com/serebano/busymate-ai-sdk-tauri/blob/1.0.4/README.md), [configuration](https://github.com/serebano/busymate-ai-sdk-tauri/blob/1.0.4/docs/configuration.md), [microphone](https://github.com/serebano/busymate-ai-sdk-tauri/blob/1.0.4/docs/microphone.md), [example app](https://github.com/serebano/busymate-ai-sdk-tauri/blob/1.0.4/example-app/README.md), [release manifest](https://github.com/serebano/busymate-ai-sdk-tauri/blob/1.0.4/release-manifest.json). ## Next steps - **[Native SDKs](https://busymate.ai/docs/guides/sdks)** — the channel, identity, microphone and release rules every platform shares. - **[Recognize signed-in customers in a desktop app](https://busymate.ai/docs/guides/identity-desktop)** — pass your user's identity to the chat. - **[Fix a signed-in customer who shows as a guest](https://busymate.ai/docs/guides/identity-troubleshooting)** — match a symptom to its cause.