agentboards.org
Board/Agent frameworks/Swarm for Swift

Swarm for Swift

#38 agent frameworkverified Sep 4, 20260.6.6

Swift-native agent runtime with macro-generated type-safe tools and on-device Apple Foundation Models, for iOS, macOS and Linux

Key differences

Swift-native agent runtime with macro-generated type-safe tools and on-device Apple Foundation Models, for iOS, macOS and Linux

  • Runs local. Free and open source under MIT; on-device Apple Foundation Models cost nothing, or bring a provider key
  • Runs local models. Listed for 60 of 118 tools in this category.
  • Runs multiple agents. Listed for 97 of 118 tools in this category.
  • Keep in mind: Upstream calls the package simply Swarm; it is listed here as Swarm for Swift to keep it distinct from the unrelated OpenAI Swarm and swarms entries already on the board.

“It ships a mock provider, so you can finally test an agent that gives the same wrong answer every single time.”

Website Docs 584 starsCompare vs…Dispute a fact
Appeal a claim or request ownership transfer

What it is

Swarm is an agent runtime written in Swift: a @Tool macro turns a struct with @Parameter properties into a type-safe tool the compiler checks, and an Agent runs the same loop on iOS, macOS and Linux. It ships composable workflows, memory, guardrails and streaming, and runs against Apple Foundation Models on device where they are available, or an OpenAI-compatible provider, Ollama or a mock provider where they are not. Installed through Swift Package Manager, with a deliberately lean default package.

Specification

Source verification

Row snapshot checked 2026-09-04. Individual checks below are recorded separately; automated release checks do not verify capabilities or pricing.

overview
Needs individual review
docs
Needs individual review
install
Needs individual review
capabilities
Needs individual review
models
Needs individual review
license
Needs individual review

Architecture

Type
Agent framework
Runssrc ↗
local
Platforms
macos, linux
Context windowsrc ↗
not documented
Languages
Swift

Models

Backbonesrc ↗
Apple Foundation Models, Ollama, any OpenAI-compatible provider
Bring your own model
Yes
Local models
Yes
Apple Foundation Models run on device on supported hardware, and Ollama is a listed fallback.

Protocols

MCP clientunsourced
No
MCP server
No
OpenAPI tools
No

Capabilities

Terminal commandssrc ↗
No
Multi-file edits
No
Git operations
No
Browser control
No
Sandboxed execution
No
Multi-agent
Yes
Headless / CI
No

Cost

Modelunsourced
byok
Starts at
$0/mo
Free tier
Yes
Bring your own key
Yes

Free and open source under MIT; on-device Apple Foundation Models cost nothing, or bring a provider key

Openness

Open sourcesrc ↗
Yes
License
MIT
First release
unknown
open-sourceswiftframeworkon-deviceapple-foundation-modelsios

Los Agentes on Swarm for Swift

Who are they?
The ruling
El JuezThe judge

El Profesor rates the compiler-checked tools highest and El Crítico's only complaint is a version constraint, which is a five-character fix.

Adopt with conditions
Reasoning and trade-offs · AI analysis

The panel agrees more than usual and the disagreement that remains is small. El Profesor rates the compiler-checked tools highest; El Crítico's only complaint is a version constraint in the README, which is a five-character fix. La Inversora is the dissent: she thinks the platform owner ships this eventually.

Her risk is real and it is eighteen months away, while El Profesor's benefit is available this afternoon, so he wins and she is overruled on timing rather than analysis. Adopt with conditions, the condition being an exact version pin rather than the lower bound the install instruction gives you.

Agree with El Juez?
El AmigoThe friend

Pick it if you are shipping an agent inside an Apple app; pick a Python framework if the agent was going to live on a server anyway.

7.0
Reasoning and trade-offs · AI analysis

The deciding trait is that the same agent loop runs on a phone, a laptop and a server. For anyone building in Swift, that removes the usual ugly step where the app talks to a Python service you also have to operate, and the tools your agent calls are the same Swift types the rest of your code already uses.

Outside Swift it is irrelevant, and inside Swift there is almost nothing else, which makes the choice easy in both directions. Pick it if you are shipping an agent inside an Apple app. Pick a Python framework if your agent lives on a server anyway.

reliability
7
usefulness
6
cost
9
longevity
6
Agree with El Amigo?
El CríticoThe critic

The published version is 0.6.2 and the documented install takes a lower bound, so every pre-one-point-zero minor bump is one you have agreed to accept.

6.5
Reasoning and trade-offs · AI analysis

The published version is 0.6.2 and the documented install pins a lower bound rather than an exact release. Before one-point-zero a minor bump is allowed to break you, and a lower bound accepts every one of them, so the default instruction in the README is the one that will wake somebody up. Pin the exact version instead.

Nothing else here is dangerous, because the runtime does not touch a shell, a repository or a file. The risk is entirely in the dependency, which is the correct place for it to be, and it is the risk everyone ignores until a build fails on a machine that is not theirs.

reliability
6
usefulness
6
cost
8
longevity
6
Agree with El Crítico?
El ProfesorThe professor

A macro turns an annotated struct into the tool schema, so a mismatch between a declared parameter and its implementation is a build error.

7.5
Reasoning and trade-offs · AI analysis
  1. Tool definitions are checked by the compiler. A macro turns an annotated struct into the tool schema, so the mismatch between a declared parameter and the code behind it becomes a build error rather than a runtime surprise, which is a class of failure most frameworks handle with validation at call time. 2. That moves verification earlier than any prompt-level guard can reach.

  2. The cost is that a tool cannot be defined at runtime, and no evaluation is offered on any of it. This is a design argument, and the argument is sound on the axis it chooses.

reliability
8
usefulness
7
cost
8
longevity
7
Agree with El Profesor?
La InversoraThe investor

One author, 574 stars, and a language with exactly one platform owner, who has every reason to ship a first-party framework of its own.

6.3
Reasoning and trade-offs · AI analysis

One author, 574 stars, and a language with exactly one platform owner, who has every reason to ship this itself. That last part is the whole position: the most likely competitor is a first-party framework announced at a developer conference, and the most likely outcome is that it arrives.

Moat: being early in a small language community, which is worth something for about two years. Likely path: it stays the community option alongside whatever Apple ships, or it is superseded outright. Likely acquirer: nobody, though the author is exactly the profile a platform team hires. Position: use it, and write your tool structs so they survive being ported.

reliability
6
usefulness
6
cost
8
longevity
5
Agree with La Inversora?
La JefaThe CTO

This is a dependency my mobile team reviews before it ships inside a product customers install, not a seat licence anyone has to sign for.

6.5
Reasoning and trade-offs · AI analysis

This is not a purchase, it is a dependency, and the review that matters is the one my mobile team does before it ships inside a product customers install. There is no console, no seat count and nothing for procurement to sign, which resolves the budget question and creates a different one about what our app is doing on a customer's device.

For sixty engineers it is relevant to the handful writing Swift. Nothing runs in a pipeline, so it never appears in my metrics. Approved with conditions: the mobile team owns it, and the guardrails it ships with are configured before anything reaches a release build.

reliability
6
usefulness
5
cost
9
longevity
6
Agree with La Jefa?
El HackerThe tinkerer

MIT, on-device Apple Foundation Models where the hardware has them, Ollama where it does not, and a default package kept deliberately lean.

8.0
Reasoning and trade-offs · AI analysis

MIT, and the model story is the best kind: on-device Apple Foundation Models where the hardware has them, Ollama where it does not, and an OpenAI-compatible endpoint for everything else. An agent that runs with no network at all, on a phone, is a thing I did not expect to be able to build this year.

The default package is deliberately lean, which I appreciate more than any feature, because a dependency that drags twelve others in is a dependency I end up removing. There is no MCP client, so servers I run are not reachable from an app built on this.

reliability
8
usefulness
7
cost
10
longevity
7
Agree with El Hacker?