Back to projects
Go
Project / fmgo
Open source

fmgo

Go, meet Apple’s Foundation Models CLI.

A Go interface for Apple’s Foundation Models CLI (`fm`) that exposes native responses, streaming, structured output, and more.

The idea

Built to be used.

fmgo wraps Apple’s native `fm` executable so Go programs can work with Foundation Models through a focused, idiomatic API. It supports regular and streaming responses, structured output, image inputs, token counting, availability checks, conversation transcripts, and an HTTP server.

Highlights

What it brings together.

01

Native response and streaming APIs for Go

02

Structured output with typed response helpers

03

Image inputs, resumable conversations, and transcripts

04

Token counting, availability checks, and server support