Packages for keyword “llm”
These packages are available as a package collection, usable in Xcode or SwiftPM.
swift-argument-parser-mcp
A Swift library that turns any ArgumentParser CLI into an MCP server, letting AI agents call your commands as tools.
swift-bylaws
Architectural linting for Swift developers and coding agents
swift-litert-lm
Gemma 4 on iPhone as a Swift package: one dependency line, five lines of code, ~50 tok/s on iPhone 17 Pro. Metal GPU, text + image + audio, in-app download. Also an Apple Foundation Models backend (iOS 27).
LLMPrices
LLM API prices for Swift: dated, source-cited prices for Claude, GPT, Gemini, DeepSeek, Mistral, Grok and more, per-request cost and a spending cap. No network calls.
swift-embeddings
Text embeddings and reranking for Swift — one protocol, providers for Voyage, Jina, Cohere, OpenAI and on-device NaturalLanguage. Back-deploys to iOS 15.
AskKit
Open-source AI chat interface for SwiftUI apps: a complete Ask screen that answers from your app's data, with Apple's Foundation Models on Private Cloud Compute or on the device.
CouncilKit
Multi-model deliberation as a Swift primitive — ask several LLMs one question, blind peer review, a divergence score, and the dissenting view.
NobodyWho
On-device AI inference for Swift apps. Run LLMs locally on iOS, macOS, visionOS and watchOS.
NRouter
nRouter SDK — one API key for models across six provider clouds (Alibaba US, OpenAI, AWS Bedrock, Azure Foundry, Google Vertex AI, Anthropic). Speaks the OpenAI and Anthropic wire formats natively, plus embeddings, audio, images and video.
OpenJevSwift
Native Swift implementation of OpenJev, the Jev-compatible typed-decision server: yes/no, choice and score answers read from model probabilities, on Apple silicon Macs and in iPhone apps. Serves Verdict, Laya, DiffusionGemma and JevK5. Apache-2.0.
PortableMemory
An open, vendor-neutral AI memory format and protocol
PrivateFoundationModels
Apple FoundationModels API on iOS 18+. Same call site, native passthrough on iOS 26 (Apple Intelligence), CoreML / MLX backends on older OSes. Drop-in source compatible.
Sophon
Gemini AI client kit for Swift (iOS, macOS, Mac Catalyst): structured output, retry policies, model catalog with automatic fallback, lenient LLM JSON decoding. Ships in three App Store apps.
swift-ai
A provider-agnostic Swift SDK for building AI-powered applications. Write once, swap providers with a single line change.
swift-artifact
Swift/SwiftUI library for rendering LLM-generated <artifact> blocks in chat interfaces. Supports Markdown, JSON, CSV, Code, SVG, GeoJSON, HTML, React, Mermaid, LaTeX, Vega-Lite, GLTF, USDZ.
AIGitNarrator
Command-line tool for generating Git commit messages and PR descriptions with AI. Supports staged/unstaged changes and customizable AI parameters.
GLiNER2Swift
Swift port of Gliner2 framework
langchain-swift
🚀 LangChain for Swift. Optimized for iOS, macOS, watchOS (part) and visionOS.(beta)
LLMKit
Unified LLM client library for Swift - one API, 36 providers (Anthropic, OpenAI, Google Gemini, AWS Bedrock, Mistral, Groq, DeepSeek, +29 more), zero external dependencies (Foundation + CryptoKit).
Adapt
On-device LoRA personalization for iOS and macOS. Trains, evaluates and rolls back adapters locally — no server, no Python.