9to5Mac and The Apple Post report that Apple is preparing Harbor, a Claris app that turns Apple silicon Macs into private AI servers for open-weight models. Apple has not confirmed it. You can get the benefit today: run MLX LM, llama.cpp's llama-server or Ollama on your Mac, read the model endpoint from build settings instead of Swift code, call it with one OpenAI-format client, and add a build check so no local address reaches a Release archive.
On November 10, leaker Aaron Perris posted screenshots and a description of a Mac app called Harbor. According to 9to5Mac and The Apple Post, it is in private preview under Claris, the Apple subsidiary behind FileMaker, and it would turn an Apple silicon Mac into a private AI server: browse open-weight models, download them, run them, and link two or more Thunderbolt 5 Macs so their unified memory works as one pool. A Hacker News thread on the report passed 500 points.
Apple has not confirmed any of this. There is no release date and no price. So treat Harbor as a report for now.
The interesting part for iOS developers is what the story says about direction. Running a model on your own Mac is moving from a weekend hobby to something a company like Apple wants to package. You do not have to wait for Harbor to get the benefit. The tools to run an open-weight model on a Mac and call it from your app already exist, and they speak the same OpenAI-style API that most AI-built iOS apps use today. This guide shows how to put a local model into your development loop, so you can build and test the AI parts of your app without paying per token, without sending test data to a cloud provider, and without breaking the app you actually ship.
What the Harbor reports actually say
Here is everything the reports agree on, with nothing added:
- Harbor is a Mac app shown in screenshots shared by Aaron Perris on November 10, 2026.
- It is described as turning a Mac into a private AI inference server for open-weight models, with no Terminal setup.
- Models are browsed, downloaded and loaded inside the app.
- Two or more Thunderbolt 5 Macs can be clustered to pool memory, for bigger models or more requests at once, and compatible Macs are reportedly detected automatically.
- It is in private preview under the Claris brand. The Apple Post notes a sign-up form asks for a company name, which hints at a business audience, but that is the writer's inference.
The reports also leave a lot out. Nobody has published which API Harbor exposes, whether it is OpenAI compatible, whether it will be free, or which Macs it supports beyond Apple silicon. Any article that tells you how to call Harbor from Swift today is guessing. What you can do is build your app so the model behind it is a setting you can change. Then Harbor, or any other local server, becomes one more value for that setting.
Why a local model helps an iOS app you are building
Most AI features in AI-built iOS apps follow the same shape. The app sends a list of chat messages to a server, the server answers with text, and the app shows it. During development that loop runs hundreds of times a day: while you tune the prompt, fix the parser that reads the reply, test error states, and record screenshots. Every one of those calls costs money with a hosted model, and every one sends whatever test data you typed to a third party.
A model running on your Mac changes three things.
First, cost. A local model runs on electricity and memory, and nobody charges per token. You can run a test suite that fires two hundred prompts at it and nobody sends you a bill.
Second, privacy during testing. If your app handles journals, health notes, chat logs or anything a user would not want leaked, you can develop against realistic sample data without it leaving the machine. Production traffic is unaffected; only your test data stays home.
Third, failure testing. A local server is easy to stop, slow down or point at a tiny model that gives bad answers. That is exactly what you need to check that your app shows a sensible error, retries correctly and does not freeze the UI when the model misbehaves. Those are also the situations App Review hits when it tests your app on a slow network.
A local model has limits. A small model on a laptop will not match a frontier hosted model on hard reasoning, and its answers will differ in style. Use the local model to build and test the plumbing, then run your final prompt checks against the model you will actually ship with.
Pick a local server
Three tools cover nearly every case on a Mac. All three accept requests on a /v1/chat/completions endpoint in the OpenAI format, which is what lets you swap them freely. 8 GitHub Repos for Running Big AI Models on Your Own Hardware covers more tools in this space.
| Server | Install | Start command | Endpoint |
|---|---|---|---|
| MLX LM (Apple's MLX team) | pip install mlx-lm | mlx_lm.server --model <hf-repo> | 127.0.0.1:8080 by default |
llama.cpp llama-server | Release build or package manager | llama-server -hf <repo>:<quant> --port 8081 | whatever --host/--port you pass |
| Ollama | App from ollama.com | ollama run <model> | localhost:11434/v1 |
MLX LM is built on Apple's MLX framework for Apple silicon. Its server listens on 127.0.0.1 port 8080 unless you pass --host and --port, downloads the model from Hugging Face the first time if it is not cached, and its own documentation warns that it is not meant for production because it only implements basic security checks. That warning is fine for a dev loop and a good reason never to expose it to the internet.
llama.cpp's llama-server runs GGUF models, can pull a model straight from Hugging Face with -hf, and supports an --api-key flag (or the LLAMA_API_KEY environment variable) so the server refuses requests without a key. That makes it the best choice when you need to test on a real iPhone over Wi-Fi, because the server then has to listen on your network.
Ollama is the easiest to start. Its OpenAI-compatible base URL is http://localhost:11434/v1/, and its docs say the client must send an API key value but Ollama ignores it, so any placeholder string works locally.
If you have never done this before, start with Ollama or MLX LM. Move to llama-server when you need the API key.
Step 1: Start a model and prove it answers
With MLX LM installed, pick a small instruction-tuned model from the mlx-community organization on Hugging Face. A 4-bit model in the 3B to 8B parameter range is a reasonable starting point on a Mac with 16 GB of memory. The MLX LM docs use this example:
pip install mlx-lm
mlx_lm.server --model mlx-community/Mistral-7B-Instruct-v0.3-4bit
The first start downloads several gigabytes, so let it finish. Then, in another Terminal tab, send one request:
curl localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [{"role": "user", "content": "Reply with the word ready."}],
"max_tokens": 20
}'
You should get back JSON with a choices array, and the text inside choices[0].message.content. Note that MLX LM's default max_tokens is 512 and its default temperature is 0.0, which is different from many hosted APIs. Always send the values your app expects instead of relying on defaults, otherwise your local tests and production answers will drift apart for reasons that have nothing to do with the model.
Run curl localhost:8080/v1/models as well. It lists the models the server can serve, and it is a quick health check you can reuse later.
Step 2: Make the model a setting in your app
Open the file where your app talks to its AI provider. In many AI-built apps this is a single service class with a URL string, an API key and a model name written straight into the code. Fix that first, whether or not you ever use a local model.
Move those three values into a small configuration type:
import Foundation
struct ModelEndpoint {
let baseURL: URL
let apiKey: String
let model: String
static var current: ModelEndpoint {
let info = Bundle.main.infoDictionary ?? [:]
let base = info["AI_BASE_URL"] as? String ?? ""
let key = info["AI_API_KEY"] as? String ?? ""
let model = info["AI_MODEL"] as? String ?? ""
guard let url = URL(string: base), !base.isEmpty else {
fatalError("AI_BASE_URL is missing for this build configuration")
}
return ModelEndpoint(baseURL: url, apiKey: key, model: model)
}
}
Then feed those Info.plist values from build settings. In Xcode, create two configuration files, for example Local.xcconfig and Release.xcconfig, and assign them under the project's Info tab, in the Configurations section. Add three user-defined settings to each file:
// Local.xcconfig
AI_BASE_URL = http:/$()/localhost:8080/v1
AI_API_KEY = local-placeholder
AI_MODEL = mlx-community/Mistral-7B-Instruct-v0.3-4bit
The odd /$()/ is there because xcconfig files treat // as the start of a comment. The empty variable splits the slashes so the URL survives. In your Info.plist, add keys named AI_BASE_URL, AI_API_KEY and AI_MODEL with the values $(AI_BASE_URL), $(AI_API_KEY) and $(AI_MODEL).
One caution. Anything in Info.plist ships inside the app bundle and anyone can read it. That is fine for a localhost placeholder. It is not fine for a real provider key. If your release build still calls a hosted model directly with a secret key, move that call behind your own backend before launch. A local model setup is a good moment to notice the problem, because you are already touching this file.
Step 3: Write one client that works with any of these servers
Because all three servers accept the OpenAI chat format, one small client covers them, and the same client will talk to your hosted provider if it uses the same format:
import Foundation
struct ChatMessage: Codable {
let role: String
let content: String
}
private struct ChatRequest: Encodable {
let model: String
let messages: [ChatMessage]
let max_tokens: Int
let temperature: Double
}
private struct ChatResponse: Decodable {
struct Reply: Decodable { let content: String? } // null when the model sends a tool call or refusal
struct Choice: Decodable { let message: Reply }
let choices: [Choice]
}
enum ChatError: Error {
case badStatus(Int, String)
case emptyReply
}
final class ChatClient {
private let endpoint: ModelEndpoint
private let session: URLSession
init(endpoint: ModelEndpoint = .current) {
self.endpoint = endpoint
let config = URLSessionConfiguration.default
config.timeoutIntervalForRequest = 60
self.session = URLSession(configuration: config)
}
func reply(to messages: [ChatMessage],
maxTokens: Int = 400,
temperature: Double = 0.7) async throws -> String {
var request = URLRequest(url: endpoint.baseURL.appendingPathComponent("chat/completions"))
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("Bearer \(endpoint.apiKey)", forHTTPHeaderField: "Authorization")
request.httpBody = try JSONEncoder().encode(
ChatRequest(model: endpoint.model, messages: messages,
max_tokens: maxTokens, temperature: temperature))
let (data, response) = try await session.data(for: request)
let status = (response as? HTTPURLResponse)?.statusCode ?? 0
guard (200..<300).contains(status) else {
throw ChatError.badStatus(status, String(decoding: data, as: UTF8.self))
}
let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
guard let text = decoded.choices.first?.message.content,
!text.isEmpty else { throw ChatError.emptyReply }
return text
}
}
A few details are deliberate. The timeout is 60 seconds because a local model loading for the first time can be slow, and you want a clear timeout error rather than a spinner forever. The client sends max_tokens and temperature every time, for the drift reason above. And it treats an empty reply as an error, because small local models sometimes return nothing, which is exactly the case your UI must handle.
Call it from a view model on the main actor and show errors in the interface, not only in the console. If the app looks fine when the model works and blank when it fails, App Review will eventually find the blank version.
Testing the client and the xcconfig trick
No model was downloaded for this test. The configuration type and the client were compiled with the Swift compiler in Xcode 26.2, in both the Swift 5 and Swift 6 language modes, with no warnings, and run as a Mac command-line tool against a small fake server that answers in the OpenAI chat format. The model name in each request told the fake server which reply to send:
| Case | What the client did |
|---|---|
Normal reply, base URL ending in /v1 | Returned "ready" |
Same, base URL ending in /v1/, as Ollama writes it | Returned "ready", same path on the server |
| Reply with empty content | Threw emptyReply |
Reply with "content": null | Threw a DecodingError (valueNotFound) on the first run |
| HTTP 500 with a JSON error body | Threw badStatus(500) with the body text |
| Nothing listening on the port | Threw NSURLErrorDomain -1004, "Could not connect to the server." |
The server logged each request on /v1/chat/completions with Bearer local-placeholder and a body holding the model, the messages, max_tokens 400 and temperature 0.7, as intended. The null row is the one that needed a change. OpenAI-format APIs send null content when the model answers with a tool call or a refusal instead of text, and a String field cannot decode that, so the app would show a decoding error instead of the empty-reply message. The client above now decodes the reply's content as optional. After that change, the null case threw emptyReply like the empty one.
The xcconfig trick was tested on a sample app. New Xcode projects generate their Info.plist, so the three keys went into a small Info.plist file set in the Info.plist File build setting, which Xcode merges with the generated one. Three configurations were built:
- With
Local.xcconfigexactly as shown in Step 2, the build setting and the built app's Info.plist both readhttp://localhost:8080/v1. - With the same line written without the
/$()/split, the value becamehttp:. The build succeeded with no warning, and becauseURL(string: "http:")returns a valid URL, the guard inModelEndpointlets it through. The failure only shows up when the app sends its first request. - With no xcconfig assigned, the value was empty, and
ModelEndpointstops the app withfatalErrorthe first time it is used. In a Release build, that is a crash in a user's hands.
The last two cases are exactly what a build check should catch, which is what Step 5 is for. The test below shows that the check needs to be stricter than it looks.
Step 4: Simulator versus a real iPhone
In the iOS Simulator, localhost points at your Mac, so the base URL from Step 2 works as it is. A physical iPhone is a separate device on your network, and three things change.
The server must listen on your network, not only on the loopback address. With MLX LM that means starting it with --host 0.0.0.0. With llama-server, pass --host 0.0.0.0 --port 8081 --api-key plus a long random key. Remember that this exposes the model to every device on the same Wi-Fi, so do it on your own network, use the key where the server supports one, and stop the server when you are done.
The app needs your Mac's address. Use the Mac's .local name (shown in System Settings under General, Sharing, as the Local hostname) or its IP address, in a separate configuration such as LocalDevice.xcconfig.
Plain HTTP to your Mac must be allowed by App Transport Security. Apple's documentation for NSAllowsLocalNetworking says this key controls whether ATS lets your app connect to unqualified domains, .local domains and IP addresses. It also notes that since iOS 17, ATS no longer allows connections to IP addresses by default. So add this inside NSAppTransportSecurity, only in the Info.plist used by your local build configurations:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<key>NSLocalNetworkUsageDescription</key>
<string>Connects to a test AI server on this network during development.</string>
The second key matters too. Apple says any app that uses the local network, directly or indirectly, including direct unicast connections to local hosts, should include NSLocalNetworkUsageDescription. On the device, iOS will ask for permission the first time; if you tap Don't Allow by mistake, turn it back on in Settings under Privacy & Security, Local Network.
Keep these keys out of your release build. The cleanest way is a separate Info.plist file for local configurations, selected with the Info.plist File build setting per configuration. A local-network permission prompt in a shipped app that has no local feature is the kind of thing a reviewer asks about, and a wording like the one above would make no sense to a real user.
Step 5: Make sure nothing local reaches the App Store
This is where AI-built apps most often slip. Add a check that fails the build if a release configuration still points at a local address. A Run Script build phase works:
if [ "${CONFIGURATION}" = "Release" ]; then
case "${AI_BASE_URL}" in
*localhost*|*127.0.0.1*|*.local*|*192.168.*|*10.0.*)
echo "error: Release build points AI_BASE_URL at a local server: ${AI_BASE_URL}"
exit 1 ;;
esac
fi
Xcode shows any line starting with error: as a build error, so an archive with the wrong setting stops before it ever reaches App Store Connect. Adjust the patterns to the addresses you use. If your Release configuration has a different name, change that too.
Also search the project once by hand for localhost, 127.0.0.1, 11434 and 8080. Coding agents like to leave a fallback URL in a catch block or a preview provider, and that string can end up in the shipped binary even when your configuration is correct.
Testing the Release check with real addresses
The Run Script check from Step 5 was run with bash, with CONFIGURATION=Release and a range of values for AI_BASE_URL. It stopped the build for localhost, 127.0.0.1, a .local name, a 192.168. address and a 10.0. address. It let these through:
http://10.1.2.3:8080/v1, because the pattern only covers10.0., while home and office networks use all of10.x.http://172.16.0.4:8080/v1, another private range.http://[::1]:8080/v1andhttp://0.0.0.0:8080/v1.http:, the cut-off value from the xcconfig comment problem.- An empty value, which makes the app crash on first use, as shown above.
It also blocked https://api.localize.io/v1, a made-up public host, because the name contains .local. A stricter version starts from what a Release URL should look like instead of listing what it should not. App Transport Security blocks plain HTTP by default anyway, so a shipped AI endpoint should be HTTPS:
if [ "${CONFIGURATION}" = "Release" ]; then
case "${AI_BASE_URL}" in
https://localhost*|https://127.*|https://0.0.0.0*|https://10.*|https://192.168.*|https://172.*|https://\[*|https://*.local|https://*.local[:/]*)
echo "error: Release build points AI_BASE_URL at a local address: ${AI_BASE_URL}"
exit 1 ;;
https://?*) ;;
*)
echo "error: Release build needs an https AI_BASE_URL, got '${AI_BASE_URL}'"
exit 1 ;;
esac
fi
Run against the same list, it stopped every local address, the cut-off value and the empty value, plus HTTPS versions of a .local name, a 10.x address and [::1]. It let https://api.example.com/v1 and https://api.localize.io/v1 through, and it did nothing in a Debug build. The https://172.* pattern also blocks public 172 addresses, which is fine, since a shipped app should call a host name, not a raw IP address.
Step 6: Use the local model to test the boring parts properly
Once the app can talk to a local model, put it to work on the tests that are too expensive to run against a paid API.
Error states. Stop the server while the app is waiting for a reply. Start it again. Point the app at a wrong port. Each time, the app should show a message the user understands and a way to retry, and it should never leave a button stuck in a disabled state.
Slow replies. Load a larger model than your Mac handles comfortably and watch what the app does when the first token takes twenty seconds. Is there a progress indicator? Can the user cancel? Does navigating away cancel the task, or does the reply land on a screen that no longer exists?
Odd output. Small models produce unexpected formats: missing JSON fields, Markdown where you expected plain text, an answer cut off at the token limit. If your app parses structured replies, a local model is the cheapest way to find out how fragile that parser is. Make the parser forgiving, and show the raw text as a fallback rather than crashing.
Prompt regression. Keep a short list of test inputs in a JSON file and a tiny script or unit test that runs them against whatever endpoint is configured. Run it on the local model as often as you like while you change the prompt, then once against the production model before you ship. The script will not prove the answers are good, but it will catch a prompt change that breaks the format your app depends on.
What about Apple's own on-device models?
This setup is not the same thing as Apple's Foundation Models framework, which lets an app use the on-device model that ships with Apple Intelligence on supported devices. That model runs on the user's iPhone, in production. The local server in this guide runs on your Mac, for development. They solve different problems, and a well-structured app can use both: the configurable endpoint for a hosted or local server, and Foundation Models where it fits and the device supports it. Apple Now Sells $49.99 AI Usage Packs covers the Private Cloud Compute side of Apple's own models.
If Harbor ships the way the reports describe, it would sit on the Mac side of that line. It might replace the Terminal commands in Step 1 with an app window, and the multi-Mac clustering could make larger models practical for a small team. Until Apple publishes its API, assume nothing about compatibility. If your app already reads its endpoint from configuration, trying Harbor would take one new xcconfig file.
A short checklist
- Start MLX LM, llama-server or Ollama and prove one curl request answers.
- Move base URL, key and model name out of your Swift code and into build configurations.
- Use one OpenAI-format client, and always send
max_tokensandtemperature. - For a real iPhone, bind the server to your network, protect it with a key where possible, and add
NSAllowsLocalNetworkingandNSLocalNetworkUsageDescriptiononly to local builds. - Add a Run Script phase that fails Release builds pointing at a local address.
- Use the local model to test errors, slow replies and odd output, then re-check prompts on the production model.
- Watch for an official Harbor announcement before planning around it.
If you use a coding agent such as Claude Code or Cursor for this kind of refactor, a set of clear agent briefs helps it stay on task. The Coding Agent Lab is a free pack of 25 coding agent briefs, including iOS, SwiftUI, security and testing agents, each with a mission, rules, an output format and quality gates, delivered as a PDF guide and a TXT file you can paste into Claude Code, Cursor, ChatGPT or your own agent files.
FAQ
Is Apple's Harbor app real?
Screenshots and a description were shared by Aaron Perris on November 10, 2026, and reported by 9to5Mac and The Apple Post as a Claris app in private preview. Apple has not confirmed it, and there is no public release date or price.
Can my iOS app call a model running on my Mac?
Yes, during development. In the Simulator, localhost reaches your Mac. On a physical iPhone, the server must listen on your network, and your local build needs the NSAllowsLocalNetworking ATS key and a NSLocalNetworkUsageDescription string.
Which local server should I start with?
Ollama or MLX LM are the quickest to start. llama.cpp's llama-server is the better choice when the server has to be reachable from a phone, because it supports an API key.
Can I ship an app that uses a local server?
Not one that points at your Mac. A shipped app needs a hosted endpoint, your own backend, or an on-device option such as Apple's Foundation Models where supported. Use the Run Script check above so a local URL cannot slip into an archive.
Will a local model give the same answers as my production model?
No. Use it to build and test the plumbing and failure handling, then check your prompts against the production model before release.
Keep reading on JR Devhub
Sources
- 9to5Mac: Apple has new Mac app coming to make running local AI models easy (Nov 10, 2026)
- The Apple Post: Apple's Harbor app could make running local AI on Mac easier (Nov 12, 2026)
- Hacker News AI Digest, Nov 12, 2026 (agents-radar)
- MLX LM on GitHub and its server documentation
- llama.cpp server README
- Ollama OpenAI compatibility
- Apple: NSAllowsLocalNetworking
- Apple: NSLocalNetworkUsageDescription

Comments