GitHub - insidegui/TwoMillionKit: Use Private Cloud Compute in FoundationModels without an entitlement · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
insidegui
TwoMillionKit
Public
Uh oh!
There was an error while loading. Please reload this page.
Notifications<br>You must be signed in to change notification settings
Fork
Star<br>44
main
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>6 Commits<br>6 Commits
.github
.github
.swiftpm/xcode/xcshareddata/xcschemes
.swiftpm/xcode/xcshareddata/xcschemes
Examples/TwoMillionChat
Examples/TwoMillionChat
Sources/TwoMillionKit
Sources/TwoMillionKit
Tests/TwoMillionKitTests
Tests/TwoMillionKitTests
.gitignore
.gitignore
LICENSE
LICENSE
Package.swift
Package.swift
README.md
README.md
View all files
Repository files navigation
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!
About
Use Private Cloud Compute in FoundationModels without an entitlement
Resources
Readme
License
BSD-2-Clause license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
44<br>stars
Watchers
watching
Forks
forks
Report repository
Releases
No releases published
Sponsor this project
Sponsor
Uh oh!
There was an error while loading. Please reload this page.
Learn more about GitHub Sponsors
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
Swift<br>100.0%
You can’t perform that action at this time.