{"repo":"rudrankriyam/Foundation-Models-Framework-CLI","free":true,"listed":false,"github":"https://github.com/rudrankriyam/Foundation-Models-Framework-CLI","clone":"git clone https://github.com/rudrankriyam/Foundation-Models-Framework-CLI.git","description":"Command-line tool for Apple's Foundation Models framework.","language":"Swift","stars":61,"topics":["apple-intelligence","cli","developer-tools","foundation-models","llm","macos","swift","swift-package"],"license":"MIT","category":"cli-tools","readme_excerpt":"Foundation Models Framework CLI afm is a Swift command-line tool for working with Apple's Foundation Models framework from the terminal, scripts, local servers, and agent workflows. Use it to check runtime availability, try prompts, stream responses, count tokens, run structured-output flows, validate tools, export transcripts, serve local chat-compatible endpoints, and connect automation to a signed Foundation Lab host. The CLI is a standalone package. It depends on FoundationModelsKit for the core Foundation Models helpers, while the server runtime ( AFMServer ) now lives in this repo alongside the afm developer tool. Apple's native fm tool remains the system-owned interface. afm complements it with scriptable JSON output, request validation, local OpenAI-style chat endpoints, and the signed Foundation Lab bridge that lets agents use PCC without pretending PCC is a raw server API. Requirements - macOS 26+ - Swift 6.2+ - Xcode 26.6 or Xcode 27 - Apple Silicon with Apple Intelligence for live on-device model execution - OS 27 and the right entitlement state for Private Cloud Compute checks - A signed Foundation Lab host when a separate process needs to execute PCC File-based workflows, dry runs, schema inspection, token estimates, tool validation, and server request validation are useful even when live model execution is unavailable. Unsigned CLI processes can inspect the PCC boundary, but PCC execution belongs to the signed host that owns the entitlement. Build For local dev","default_branch":null,"files":null,"tree":[],"storefront":"/r/rudrankriyam","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rudrankriyam/Foundation-Models-Framework-CLI/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}