AIReasoningCore

Open source · Built for Swift

AI infrastructure.
Native Swift.

Connect native apps to multi-provider AI with a familiar Swift interface. AIReasoningCore brings AnyLanguageModel and pi-ai-swift together for iOS and macOS.

Swift Package Manager · iOS 17+ · macOS 14+

THE NATIVE AI STACK
  1. 01 / EXPERIENCE Your Swift app

    Your interface, conversations, and app capabilities.

  2. 02 / INTEGRATION AIReasoningCore

    AnyLanguageModel sessions, tools, and structured generation.

  3. 03 / PROVIDER RUNTIME pi-ai-swift

    Model catalogs, authorization, and streaming provider events.

From provider protocols
to native app experiences.

AIReasoningCore

THE APP INTEGRATION LAYER

A Swift package that connects AnyLanguageModel’s LanguageModel and LanguageModelSession APIs to pi-ai-swift. It maps prompts, transcripts, tools, generation options, usage, and provider assets into a session interface for native apps.

View AIReasoningCore on GitHub

pi-ai-swift

THE PROVIDER RUNTIME

A native Swift semantic port of the provider runtime in pi’s AI package. Its small ProviderRuntime interface covers model discovery, authorization, and streaming responses, with provider-specific request encoding, event normalization, and usage reporting underneath.

Use it independently, or pair it with AIReasoningCore when your app needs the AnyLanguageModel session interface.

View pi-ai-swift on GitHub

Bring ChatGPT identity to native apps.

We’re seeking an official Sign in with ChatGPT integration for pi-ai-swift and apps built with AIReasoningCore, so users can sign in with their ChatGPT identity and, when eligible, use their ChatGPT plan for AI requests.