#110110th of 144 in Agent frameworks and SDKs

openai

Swift client library for the OpenAI API and compatible providers

Stars
2.9k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Swift

Missed the latest GitHub check; these facts may be older.

Overview

A community-maintained Swift package that wraps the OpenAI REST API: Responses, Chat Completions, images, audio, embeddings, moderations, Assistants, files and models. It supports async/await, closures and Combine, plus streaming and request cancellation. A configurable host, base path and a relaxed parsing mode let it talk to other OpenAI-compatible providers such as Gemini, DeepSeek, Perplexity and OpenRouter.

Who it is for: Swift and iOS/macOS developers calling OpenAI or compatible APIs

Strengths

  • Covers Responses, Chat Completions, audio, images, embeddings, Assistants and MCP tools in one package
  • Offers async/await, closure and Combine APIs, with request cancellation for each
  • Configurable host, port, base path and headers, with a relaxed parsing mode for other providers
  • Installs through Swift Package Manager with Xcode or Package.swift

Weaknesses

  • Swift and Apple-platform oriented; no support for other languages
  • Needs a hosted API key; the README warns against embedding it in client apps
  • Compatibility with non-OpenAI providers depends on their API matching OpenAI's
  • Some documented image limits (256x256 to 1024x1024, DALL-E era) look dated

What it needs

  • no GPU
  • Needs OpenAI API key or OpenAI-compatible provider, Swift Package Manager
  • Models: OpenAI Responses API, OpenAI Chat Completions API, OpenAI-compatible providers (Gemini, DeepSeek, Perplexity, OpenRouter)

Also in Agent frameworks and SDKs

See all 144
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)76.2k stars+15,031 (+25%) in 30 daysMIT96 out of 100
2openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing30.6k stars+692 (+2.3%) in 30 daysMIT92 out of 100
3mastraTypeScript framework for building AI agents, workflows and MCP servers29.5k stars+778 (+2.7%) in 30 dayscustom license92 out of 100
#4browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)120.8k stars+3,334 (+2.8%) in 30 daysMIT90 out of 100
#5copilotkitReact and Angular SDK for adding agent chat and generative UI to apps38.7k stars+757 (+2.0%) in 30 daysMIT90 out of 100