HuggingGPT is a system that leverages large language models like ChatGPT to connect various AI models in machine learning communities like HuggingFace to solve complicated AI tasks. By leveraging the strong language capability of ChatGPT and abundant AI models in HuggingFace, HuggingGPT is able to cover numerous sophisticated AI tasks in different modalities and domains and achieve impressive results. Despite the great successes of current LLM technologies, they still confront some urgent challenges on the way to building an AGI system, specifically for complex tasks requiring scheduling and cooperation of multiple models that are beyond the capability of language models. HuggingGPT presents a new way towards AGI in solving AI tasks with different domains and modalities.