Latest / AI & agents

SwiftAI

github.com · Open source · Maintained

Swift library for LLM features that switches between on-device and cloud models

Visit github.com ↗Share

  • swift llm library
  • on device ai swift
  • apple foundation models swif
  • swiftui ai
  • swift llm client
Stars
366
Forks
23
Open issues
2
Last commit
Releases
8
Found
15 months ago

GitHub figures as of . They are context, not a ranking.

SwiftAI is an open-source Swift library that provides one API for Apple's on-device language models and cloud models. It falls back to the cloud when on-device models are unavailable and includes an agent loop, typed structured outputs and optional chat state. It suits iOS and macOS developers adding LLM features.

Repository description on GitHub: “Build beautiful and reliable LLM apps on iOS and MacOS”

What it does

  • One model-agnostic API for Apple on-device and cloud models
  • Agent tool loop with first-class tool use
  • Strongly typed structured outputs
  • Stateful chat sessions with optional context management

Good for

  • Use Apple's on-device models with a cloud fallback in one codebase
  • Get typed structured output from a Swift model call

Suits: iOS and macOS developers adding LLM features to apps.

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw SwiftAI on , when mi12-root posted it to Show HN. The oldest published release on GitHub is v0.1.0-alpha, dated . SwiftAI had been shipping tagged releases for 15 days before it was found. 8 releases have been published in total; the latest is v0.1.0-alpha.7 ().

Day-7 and day-30 updates

Day 7 1 release shipped

  • 1 release in the first 7 days: v0.1.0-alpha.4 (28 Aug 2025)
  • Show HN discussion at check time: 74 points, 24 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 2 releases shipped

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (8 in total, busiest month 5).
  1. Repository created on GitHub: mi12labs/SwiftAI
  2. Release v0.1.0-alpha (pre-release)
  3. Release v0.1.0-alpha.2 (pre-release)
  4. Release v0.1.0-alpha.3 (pre-release)
  5. Found: mi12-root posted it to Show HN. Show HN
  6. Release v0.1.0-alpha.4 (pre-release)
  7. Release v0.1.0-alpha.5 (pre-release)
  8. Release v0.1.0-alpha.6 (pre-release)
  9. Release v0.1.0-alpha.7 (pre-release)
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 8 releases. All releases on GitHub

Quick answers

When was SwiftAI released?
Its first tagged release on GitHub is dated 13 Aug 2025. Kip found it on Show HN on 28 Aug 2025.
Is SwiftAI open source?
Its source is public on GitHub at mi12labs/SwiftAI under the MIT licence.
What does SwiftAI run on?
iOS, macOS, Library.
Is SwiftAI free?
It is open source, so the code is free to read and run; check the licence for terms.
Is SwiftAI still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorymi12labs/SwiftAI
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-45052200. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in AI & agents

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.