whatisgithub

What is twomillionkit?

insidegui/twomillionkit — explained in plain English

Analysis updated 2026-05-18

75SwiftAudience · developerComplexity · 2/5Setup · easy

In one sentence

A Swift package that lets non-App-Store Mac apps use Apple's Private Cloud Compute AI models without a special entitlement.

Mindmap

mindmap
  root((TwoMillionKit))
    What it does
      Wraps fm CLI tool
      Enables Private Cloud Compute
      Skips entitlement requirement
    Tech stack
      Swift package
      macOS fm CLI
    Use cases
      Add AI to non App Store apps
      Bypass entitlement restriction
    Audience
      Mac developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add Apple's Private Cloud Compute AI model to a Mac app distributed outside the Mac App Store without an entitlement.

USE CASE 2

Wrap macOS 27's fm command-line tool as a LanguageModel your Swift code can call directly.

USE CASE 3

Ship AI features on macOS for developers excluded from Apple's entitlement program.

What is it built with?

Swift

How does it compare?

insidegui/twomillionkitnoppefoxwolf/mergeableviewashertrockman/touchscale
Stars756982
LanguageSwiftSwiftSwift
Last pushed2015-11-03
MaintenanceDormant
Setup difficultyeasyeasyeasy
Complexity2/52/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Only works in non-sandboxed Mac apps distributed outside the Mac App Store, requires macOS 27's fm command-line tool.

So what is it?

TwoMillionKit is a small Swift package created after its author ran into a specific restriction from Apple. Starting with macOS 27, Apple lets third-party apps use its Private Cloud Compute AI language models, but only if the developer is part of Apple's Small Business Program and none of their apps have passed two million downloads. The author's own app, an iOS app nearly ten years old, was flagged by Apple as having crossed that download threshold, even though the developer's own sales reports never showed anything close to that number, and Apple did not respond when asked for evidence. As a result, the author was blocked from using this AI feature that many smaller developers get to use. Rather than accept that, the author noticed that Apple's macOS 27 also ships a command-line tool called fm, which anyone can already use from the Terminal or in scripts to run these same AI models, including Private Cloud Compute, with no special permission needed. Since a Mac app can call command-line tools just like a person typing in Terminal can, the author built this package to quietly run fm behind the scenes and wrap its output to look like a normal AI model that a Swift app can talk to directly. The result is that any Mac app distributed outside the Mac App Store can use Private Cloud Compute without needing Apple's special entitlement. It will not work for apps distributed through the Mac App Store itself, since those run in a more restricted sandbox that blocks this kind of workaround. The author frames this clearly as an unofficial workaround, not a sanctioned method, and suggests using it carefully and at your own risk since Apple could change or block this behavior at any time.

Copy-paste prompts

Prompt 1
Help me add TwoMillionKit's LanguageModel to my Swift Mac app to call Private Cloud Compute.
Prompt 2
Explain how TwoMillionKit uses the fm command-line tool behind the scenes.
Prompt 3
Why won't TwoMillionKit work in a sandboxed Mac App Store app, and what are my options?
Prompt 4
Help me understand the risks of relying on this unofficial workaround in a shipping app.

Frequently asked questions

What is twomillionkit?

A Swift package that lets non-App-Store Mac apps use Apple's Private Cloud Compute AI models without a special entitlement.

What language is twomillionkit written in?

Mainly Swift. The stack also includes Swift.

How hard is twomillionkit to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is twomillionkit for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.