Getting Started
From install to your first AI-controlled session in under five minutes. Follow these steps in order.
Download Haptix for Mac
Download the Haptix macOS app. Drag it to your Applications folder and launch it — it runs in your menu bar. A free trial starts on first launch, no credit card required.
Requires macOS 15.0+ (Sequoia) and Apple Silicon.
Add HaptixKit to your project
Add the HaptixKit Swift Package to your project.
- Go to File → Add Package Dependencies
- Paste the package URL below
- Click Add Package
Package URL
https://github.com/haptix-dev/HaptixKitAdd Haptix to your app
Add Haptix.start(license:) to your app's init(), wrapped in #if DEBUG. Use the trial key from the Haptix app, or the license key from your purchase.
| 1 | #if DEBUG |
| 2 | import HaptixKit |
| 3 | #endif |
| 4 | |
| 5 | @main |
| 6 | struct MyApp: App { |
| 7 | init() { |
| 8 | #if DEBUG |
| 9 | Haptix.start(license: "HPTX-XXXX-XXXX-XXXX") |
| 10 | #endif |
| 11 | } |
| 12 | |
| 13 | var body: some Scene { |
| 14 | WindowGroup { |
| 15 | ContentView() |
| 16 | } |
| 17 | } |
| 18 | } |
Wrap in #if DEBUG to exclude from production builds. App Review may reject apps that include development tools, and it would expose a remote control surface to your users.
Prepare your device
On your physical iPhone or iPad, enable two settings:
- Developer Mode — Settings → Privacy & Security → Developer Mode → toggle on
- UI Automation — Settings → Developer → Enable UI Automation → toggle on
Start the Haptix server
Launch the Haptix app on your Mac if it isn't already running. It lives in your menu bar and starts the MCP server automatically on localhost:4278. Start a free trial or enter your license key in the Haptix onboarding if you haven't already.
Configure your AI agent
Add the Haptix MCP server to your AI agent's configuration. Pick your agent below and copy the config:
| 1 | { |
| 2 | "mcpServers": { |
| 3 | "haptix": { |
| 4 | "url": "http://localhost:4278/mcp" |
| 5 | } |
| 6 | } |
| 7 | } |
Build, run, and go
Connect your device via USB, then build and run your app from Xcode. The Haptix daemon discovers your device automatically — no configuration needed.