{"slug": "macos-27-fm-tool-output", "title": "macOS 27 fm tool output", "summary": "Apple has released a command-line tool called 'fm' for macOS that provides access to Apple Foundation Models. The tool supports commands for generating responses, interactive chat, token counting, JSON schema generation, serving a Chat Completions API, and checking model availability and quota usage. It offers both on-device and Private Cloud Compute model options.", "body_md": "| ❯ fm [02:34:03] | |\n| Apple Foundation Models CLI | |\n| USAGE | |\n| % fm <command> [options] | |\n| COMMANDS | |\n| respond Generate a response to a prompt ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⠛⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |\n| chat Start an interactive chat session ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣿⡀⠀⢀⣽⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |\n| token-count Count tokens in a prompt or instructions ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⠴⠚⠋⢁⡼⠛⠛⠛⢧⡈⠙⠓⠦⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |\n| schema Generate a JSON generation schema ⢠⡶⠒⠲⣦⣠⡴⠞⠋⠉⠀⠀⠀⣴⠟⠀⠀⠀⠀⠀⠹⣆⠀⠀⠀⠈⠙⠲⠦⣄⣠⠖⠒⢦⡀ | |\n| serve Start a Chat Completions API server ⢿⡀⠀⠀⣸⣇⠀⠀⠀⠀⠀⣠⡾⠁⠀⠀⠀⠀⠀⠀⠀⠈⢳⡄⠀⠀⠀⠀⠀⣨⣇⠀⠀⢀⡿ | |\n| available Check model availability ⠈⠛⠲⠚⢿⡍⠙⠳⢦⣤⣴⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣦⣠⠴⠖⠋⢁⡽⠓⠒⠋⠁ | |\n| quota-usage Check model quota usage ⠀⠀⠀⠀⠀⠹⣦⡀⣠⠟⠉⠛⠲⢦⣄⣠⡴⠶⢦⣄⣠⡤⠖⠛⠉⠳⣄⠀⣴⠋⠀⠀⠀⠀⠀ | |\n| ⠀⠀⠀⠀⠀⠀⢈⣿⣏⠀⠀⠀⠀⠀⢈⣿⠀⠀⠀⣿⡁⠀⠀⠀⠀⠀⣸⣿⡁⠀⠀⠀⠀⠀⠀ | |\n| MODELS ⠀⠀⠀⠀⠀⣴⠟⠀⠙⣧⣀⣤⠶⠚⠋⠙⠳⠶⠞⠋⠙⠓⠦⣤⣀⡴⠋⠀⠹⣄⠀⠀⠀⠀⠀ | |\n| system On-device Apple Foundation Model (default) ⢀⣤⠶⢦⣾⣃⣤⡴⠞⠋⠻⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠙⠒⠦⣄⡈⣳⡤⠤⢤⡀ | |\n| pcc Apple Foundation Model on Private Cloud Compute ⣿⠁⠀⠀⢹⡏⠀⠀⠀⠀⠀⠙⢷⡀⠀⠀⠀⠀⠀⠀⠀⢀⡾⠃⠀⠀⠀⠀⠀⢉⡏⠀⠀⠀⡷ | |\n| ⠘⠷⠦⠶⠟⠙⠳⢦⣤⣀⠀⠀⠀⠻⣦⠀⠀⠀⠀⠀⣴⠏⠀⠀⠀⣀⣠⠴⠒⠋⠙⠦⠤⠞⠁ | |\n| EXAMPLES ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠲⢦⣄⡈⢳⣤⠤⣤⡞⢁⣠⡤⠖⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |\n| % fm respond 'What is Swift?' ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⣿⠁⠀⠈⣻⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |\n| % fm respond --model pcc --stream 'Summarize this article' ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢦⣤⠴⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |\n| % fm chat --instructions 'You are a coding assistant' | |\n| % fm token-count 'Hello world' | |\n| % fm schema object --name Person --string name --int age | |\n| Run 'fm <command> --help' for more information on a command. |", "url": "https://wpnews.pro/news/macos-27-fm-tool-output", "canonical_source": "https://gist.github.com/robgough/7893602895e75801174750761988ffca", "published_at": "2026-06-09 01:39:29+00:00", "updated_at": "2026-06-12 22:13:49.326623+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "ai-products"], "entities": ["Apple", "Apple Foundation Models", "Private Cloud Compute"], "alternates": {"html": "https://wpnews.pro/news/macos-27-fm-tool-output", "markdown": "https://wpnews.pro/news/macos-27-fm-tool-output.md", "text": "https://wpnews.pro/news/macos-27-fm-tool-output.txt", "jsonld": "https://wpnews.pro/news/macos-27-fm-tool-output.jsonld"}}