#237237th of 242 in Agent frameworks and SDKs

gptswarm

Python library that builds LLM agents as graphs and optimizes their connections

Stars
1.1k
License
MIT
Last commit
Feb 2026
Language
Python
Stars, last 29 weeks+94
8 May 2026: 980 stars15 May 2026: 986 stars22 May 2026: 991 stars29 May 2026: 996 stars5 Jun 2026: 998 stars12 Jun 2026: 1,003 stars19 Jun 2026: 1,004 stars26 Jun 2026: 1,008 stars3 Jul 2026: 1,012 stars10 Jul 2026: 1,016 stars17 Jul 2026: 1,021 stars24 Jul 2026: 1,024 stars31 Jul 2026: 1,029 stars7 Aug 2026: 1,030 stars14 Aug 2026: 1,032 stars21 Aug 2026: 1,033 stars28 Aug 2026: 1,036 stars4 Sept 2026: 1,038 stars11 Sept 2026: 1,041 stars18 Sept 2026: 1,043 stars25 Sept 2026: 1,046 stars2 Oct 2026: 1,048 stars9 Oct 2026: 1,048 stars16 Oct 2026: 1,049 stars23 Oct 2026: 1,058 stars30 Oct 2026: 1,060 stars6 Nov 2026: 1,065 stars13 Nov 2026: 1,068 stars20 Nov 2026: 1,072 stars27 Nov 2026: 1,074 stars

980 on 8 May 20261,074 on 27 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

GPTSwarm is a Python library from an ICML 2024 paper (Language Agents as Optimizable Graphs). Agents are graph nodes, and an optimizer updates inter-agent edge probabilities against a benchmark score, pruning or creating connections. It has modules for environments, graphs, LLM backends with cost tracking, index-based memory and optimizers, and installs via pip or poetry.

Who it is for: Researchers and developers experimenting with multi-agent graphs in Python

Strengths

  • Edge optimization prunes or creates inter-agent connections against a benchmark score
  • Backed by a peer-reviewed ICML 2024 paper, with an experiments directory
  • Colab notebooks cover a minimal swarm and a custom agent
  • Local inference through LM Studio via model_name='lmstudio'

Weaknesses

  • No tagged releases, although pip install gptswarm is documented
  • README names OpenAI as the only hosted LLM backend
  • Local models need the LM Studio desktop app (Mac or Windows)
  • Web search tools need a separate Bing, Google or SearchAPI key

What it needs

  • Needs OpenAI API key, Bing, Google or SearchAPI key (web search), LM Studio (optional, local models), Poetry, Python 3.10
  • Models: OpenAI, LM Studio (local models)

Also in Agent frameworks and SDKs

See all 242
Also in Agent frameworks and SDKs
RankProjectScore
#235autopromptPrompt optimizer that tunes prompts against synthetic edge-case benchmarks3k starsApache-2.012 out of 100
#236kg-genPython library that extracts knowledge graphs from text or chats using LLMs1.3k starsno license11 out of 100
#238webarenaSelf-hostable web environment and benchmark for evaluating browser-based agents1.6k starsApache-2.0no commits in a year6 out of 100
#239webthinkerDeep research agent where a reasoning model searches, browses and drafts reports1.5k starsMIT6 out of 100
#240fastagencyDeploys AG2 multi-agent workflows as Mesop web apps, FastAPI services or NATS workers546 starsApache-2.06 out of 100