一个Swift包,通过macOS 27自带的命令行工具fm,让任意Mac应用都能使用Apple的Private Cloud Compute模型,绕开了Apple设置的200万下载量限制。

Stars

78

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

BSD-2-Clause

最近更新

2026-07-10

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它为因应用下载量超过200万而被排除在Private Cloud Compute计划之外的开发者提供了一个巧妙、无需授权的解决方案,无需特殊批准即可启用AI功能。

适合谁使用

  • 在Mac App Store之外分发应用的Mac开发者
  • 应用下载量超过200万的独立开发者
  • 希望使用Private Cloud Compute但缺少授权的小型开发者

典型使用场景

  • 无需Apple许可即可将AI功能集成到Mac应用中
  • 绕过Apple基于下载量的Private Cloud Compute限制
  • 在非沙盒化Mac应用中试验Apple的本地和云端语言模型

项目优势

  • 利用内置fm工具提供简单的LanguageModel实现,即插即用
  • 无需Apple的任何特殊授权
  • 使非Mac App Store分发的应用也能使用Private Cloud Compute
  • 基于macOS 27已有的标准命令行工具

使用前须知

  • 不适用于沙盒化应用(例如通过Mac App Store分发)
  • 依赖于未公开或内部工具,可能随时更改或移除
  • 使用风险自负,可能违反Apple的预期政策

README 快速开始

TwoMillionKit

Apple added the ability for third-party apps to use Private Cloud Compute language models in macOS 27 and aligned releases, but with a significant caveat: only developers who are a part of the Small Business Program can participate, and only those who haven’t had any of their apps surpass 2 million downloads.

According to Apple, one of my apps has surpassed 2 million downloads. That’s an iOS app that’s been in the App Store for nearly 10 years, and has had most of its 2 million downloads within the first few years of existence. Because of that, none of my apps can use Private Cloud Compute, putting me in a significant disadvantage because I can’t ship cool AI features like many other small developers will be doing this Fall.

It’s worth noting that even though Apple claims that my app has had more than 2 million downloads, none of their reports in App Store connect come close to that number. I asked them to provide me the report that says that my app has had more than 2 million downloads, but my email must have ended up in /dev/null because I never got any response.

The “Solution”

Apple ships the fm command-line tool in macOS 27, which can be used to run inference with the local system model or Private Cloud Compute from Terminal or scripts. You know what else can run command-line tools? Mac apps! 😃

I decided to spend some of my Codex tokens and take GPT 5.6 Sol for a spin. I asked it to create this Swift package. All it does is provide a LanguageModel implementation that uses the fm command-line tool under the hood, meaning that any Mac app can use the Private Cloud Compute model without requiring a special entitlement from Apple.

The main limitation is that this will not work for sandboxed Mac apps, so any Mac app distributed via the Mac App Store won’t be able to use it.

But for developers of Mac apps distributed outside the Mac App Store, this provides a simple and entitlement-free way to use Private Cloud Compute in their apps.

Use sparingly and at your own risk.

Enjoy!

项目描述

Use Private Cloud Compute in FoundationModels without an entitlement

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

Blaizzy
精选
Blaizzy GitHub avatar

nativ

Nativ is a native macOS app that lets you run AI models locally on Apple silicon, offering chat, model management, performance analytics, and an OpenAI/Anthropic-compatible API server.

AI 与机器学习AI 视觉与语音
985
uzairansaruzi
精选
uzairansaruzi GitHub avatar

hermex

Hermex is a native SwiftUI iPhone app that lets you control a self-hosted Hermes AI agent directly from your phone, with no subscriptions, tracking, or third-party relay.

AI 与机器学习大语言模型
941
simonw
精选
simonw GitHub avatar

speech-analyzer-cli

A macOS command-line tool that uses Apple's on-device speech APIs to transcribe prerecorded audio into plain text, JSON, JSONL, SRT, or WebVTT.

开发者工具CLI 与终端
20