Skip to main content
This page is the master catalog of every runnable example in the Swarms documentation, organized by feature. Each entry links to a full walkthrough with copy-paste code. If you’re looking for the broader index of community and repository examples, see the Examples Index.

Browse by Category

CategoryWhat it covers
BasicsYour first agent, tools, vision, and streaming
Single-Agent CapabilitiesMemory, autonomy, context management, research
Multi-Agent ArchitecturesSequential, concurrent, hierarchical, group chat, routing
Model ProvidersRun agents on any LLM provider
Voice AgentsSpeech-enabled agents with TTS and STT
Tools & IntegrationsBrowser use, computer use, web search, MCP, payments
ApplicationsFull end-to-end swarms for real-world domains
Use CasesReusable multi-stage workflow patterns
FinanceTrading, prediction markets, and financial research
Research & PapersSwarms implementations of research papers
DeploymentShip agents to production
CLIDrive agents from the command line

Basics

Start here. These cover the essentials of building and running a single agent.
ExampleDescriptionLink
Basic AgentCreate your first autonomous agent with SwarmsView Example
Agent with ToolsEnhance agents with external tools and function callingView Example
Vision AgentCreate agents that process images and multimodal contentView Example
Streaming ResponsesStream agent outputs in real-time for better UXView Example
Agent Streaming ExampleReal-time token streaming with run_stream and arun_streamView Example

Single-Agent Capabilities

Advanced patterns for a single agent — persistence, autonomy, and large-context handling.
ExampleDescriptionLink
Agent StreamingStream agent responses token by token for an interactive UXView Example
Advanced ResearchOrchestrator-worker research system with parallel execution and LLM-as-judgeView Example
Autonomous Looper with BashAn autonomous loop that runs bash commands for long-horizon tasksView Example
Autonomous Looper with ToolsAn autonomous looping agent that uses tools to iteratively reach a goalView Example
Persistent MemoryPersist interaction history to disk and resume across restartsView Example
Context CompressionSummarize memory near the context limit while archiving the full transcriptView Example

Multi-Agent Architectures

Coordinate many agents. These map directly to the core Swarms multi-agent structures.
ExampleDescriptionLink
Sequential WorkflowAgents execute tasks in a linear chainView Example
Sequential Workflow StreamingReal-time token streaming across a pipeline of agentsView Example
Concurrent WorkflowRun multiple agents simultaneously for maximum efficiencyView Example
Mixture of Agents (MoA)Run expert agents in parallel and synthesize their outputsView Example
Hierarchical SwarmDirector-worker pattern for complex project coordinationView Example
Group ChatAsynchronous, self-selecting agent group chat for debate and reasoningView Example
Swarm RouterSwitch between any multi-agent architecture by changing one parameterView Example
Social Swarm PatternsBroadcast, circular, mesh, grid, star, pyramid, and aggregate patternsView Example
Advisor SwarmPair a cheap executor model with a powerful advisor consulted on-demandView Example
Debate Swarm QuickstartSpecialized agents argue and converge on conclusionsView Example
AOP Medical SwarmMedical-grade multi-agent system using the Agent Orchestration ProtocolView Example
GroupChat InternalsDeep technical analysis of the async self-selecting GroupChat moduleView Example

Model Providers

Run Swarms agents on any LLM provider. See the Model Providers guide for the full reference.
ProviderDescriptionLink
AnthropicClaude models — Fable 5, Opus, Sonnet, and HaikuView Example
Claude Fable 5Anthropic Claude Fable 5 and Mythos 5 in SwarmsView Example
OpenAIGPT and o-series models — GPT-5.4, GPT-4.1, o3, o3-miniView Example
GeminiGoogle Gemini — 2.5 Pro, 2.5 Flash, and Flash-LiteView Example
GroqUltra-fast inference — Llama, GPT-OSS, DeepSeek R1, Kimi K2View Example
CerebrasThe fastest open-model inference — 1000+ tokens/secView Example
DeepSeekDeepSeek models, including the DeepSeek Reasoner (R1)View Example
xAI (Grok)xAI Grok models — Grok 4 and earlierView Example
OllamaLocal models with no API key and no per-token costView Example
vLLMSelf-host open-source models for high-throughput production inferenceView Example
OpenRouterOne API key, hundreds of models across providersView Example
OpenRouter TutorialSingle agents, group chat, and concurrent workflows via OpenRouterView Example
Azure OpenAIEnterprise-grade GPT models through Microsoft AzureView Example

Voice Agents

Speech-enabled agents using streaming TTS, STT input, and per-agent voices. See the Voice Agents Overview.
ExampleDescriptionLink
Basic Speech AgentRun an agent, then narrate its final response with text-to-speechView Example
Streaming Voice AgentSpeak each sentence the moment the LLM produces itView Example
Autonomous Voice AgentAn autonomous agent that narrates its plan, tool use, and summaryView Example
Voice DebateTwo agents debate turn-by-turn, each with a distinct voiceView Example
Hierarchical Speech SwarmDirector and workers each speak with a distinct voiceView Example

Tools & Integrations

Connect agents to the outside world — browsers, computers, search, MCP servers, and payments.
ExampleDescriptionLink
Computer UseGive an agent safe, sandboxed read/search/edit/shell accessView Example
Browser UseDrive a real browser to automate web workflows end to endView Example
Web Scraper AgentsNavigate sites and extract structured data in parallelView Example
Web Search with ExaGive agents real-time web search via the Exa APIView Example
Firecrawl ToolCrawl entire websites and extract structured contentView Example
MCP with DataStaxConnect agents to Astra DB through the Model Context ProtocolView Example
x402 Discovery QueryDiscover and query x402-enabled servicesView Example
x402 Payment IntegrationLet agents transact natively for paid servicesView Example

Applications

Complete, end-to-end swarms built for a specific domain.
ExampleDescriptionLink
Marketing Team SwarmStrategy, copy, design, and analytics handled by agentsView Example
Hiring SwarmSource candidates, screen resumes, run technical evaluationsView Example
Job Finding SwarmDiscover, filter, and apply to jobs matching a profileView Example
M&A SwarmDeal sourcing, diligence, and valuation for mergers & acquisitionsView Example
Real Estate SwarmResearch, valuation, and deal analysis for propertiesView Example
Smart Database SwarmAn agent-powered database that queries and reasons over dataView Example

Use Cases

Reusable multi-stage workflow patterns you can adapt to your own domain.
ExampleDescriptionLink
Research TeamAn autonomous team that collaborates on comprehensive reportsView Example
Content Creation PipelineIdeation, writing, editing, and review stagesView Example
Data Analysis SwarmCollect, analyze, visualize, and report on datasetsView Example
Financial Analysis SystemMarket analysis, risk assessment, and investment recommendationsView Example

Finance

Trading, prediction markets, and financial research.
ExampleDescriptionLink
Gold ETF ResearchResearch and analyze gold ETFs with a financial-analysis swarmView Example
Agentic Trading with GeminiAn autonomous crypto trading system using the Gemini exchange APIView Example
Prediction Markets: PolymarketAgents that discover events, reason, and bet on PolymarketView Example
Prediction Markets: KalshiAgents that discover events, reason, and bet on KalshiView Example

Research & Paper Implementations

Swarms implementations of influential AI research papers.
ExampleDescriptionLink
Can AI Agents Agree?The Byzantine consensus game from Berdoz, Rugli & WattenhoferView Example
Open Agent BazaarMeasuring economic alignment in multi-agent marketplacesView Example
Paper Implementations IndexThe full list of paper implementationsView Index

Deployment

Ship your agents to production.
ExampleDescriptionLink
Deployment OverviewChoose the right deployment strategy for your agentsView Guide
FastAPI Agent APIDeploy agents as REST endpoints with FastAPI and UvicornView Example
Google Cloud RunDeploy a containerized agent REST API with automatic scalingView Example
Cloudflare WorkersDeploy cron-driven agents on Cloudflare’s global edge networkView Example
Phala TEE DeploymentDeploy inside a Trusted Execution Environment with on-chain attestationView Example

CLI

Drive agents entirely from the command line.
ExampleDescriptionLink
CLI Quickstart TutorialBuild a multi-agent research-and-writing workflow using only the CLIView Example
Chat CommandLaunch an interactive chat session with an agentView Example
Multi-Agent CLI QuickstartSpin up a multi-agent system from the CLI in under a minuteView Example

More Overviews

Prefer a narrower starting point? These curated overviews go deeper on a single theme: