GPTSwarm is a framework for composing, integrating, and automatically optimizing LLM-based agents using computational graphs. It allows users to construct hierarchies of AI agents as nodes and manage the information flow via graph edges, supporting multimodal data processing and inter-agent collaboration. GPTSwarm is beneficial for AI researchers, developers, and teams aiming to efficiently develop and refine complex, multi-agent AI systems.