Agent interface with no extra setup.
Installation
Environment Setup
.env file:
Quick Start
The minimum needed to run a Claude agent:Model Names
Swarms passes model names straight through to LiteLLM. Use the canonical Anthropic identifier:Fable 5 — Frontier Reasoning
Fable 5 is Anthropic’s state-of-the-art model. It excels at long, complex tasks but does not support tools ortemperature. temperature and top_p default to None on Agent, and Swarms leaves unset values out of the request, so you only need to avoid setting them.
Sonnet 4.6 — The Workhorse
Sonnet is the right default for most production agents. It supports tools, vision, streaming, and runs cheaper than Opus or Fable 5.Haiku 4.5 — Fast & Cheap
Haiku is the right pick for triage, routing, and high-volume work where latency and cost matter.Extended Thinking
All recent Claude models support extended thinking. Swarms exposes it two ways:reasoning_enabled=Truewiththinking_tokenssends an explicit thinking budget.thinking_tokens(default1024) has no effect unlessreasoning_enabled=True.reasoning_effort("low","medium","high") is forwarded on its own, and LiteLLM maps it to a thinking budget for Claude.
temperature=1, drops top_p, and raises max_tokens above the thinking budget, as Anthropic requires.
The autonomous loop’s
think tool is off by default (think_tool=False), so a model that already reasons natively doesn’t spend an extra round-trip on it. Set think_tool=True only for models that don’t reason natively.