# Use Hanzo AI with AutoGen — Hanzo AI > Build multi-agent systems with Microsoft AutoGen. Set base_url to api.hanzo.ai/v1 in the AutoGen config, name a Hanzo model, and the agents run on it. [Integrations](https://hanzo.ai/integrations)/AutoGen 🤝Frameworks # Use Hanzo AI with AutoGen Build multi-agent systems with Microsoft AutoGen. Set base_url to api.hanzo.ai/v1 in the AutoGen config, name a Hanzo model, and the agents run on it. Base URL: `https://api.hanzo.ai/v1` API Key: Get yours at [hanzo.ai/signup](https://hanzo.ai/signup) · Fully OpenAI-compatible · 500+ models available 🤝 Created by [Microsoft Research](https://microsoft.com/en-us/research) License: MIT · [View source on GitHub →](https://github.com/microsoft/autogen) Hanzo AI is OpenAI-compatible, so existing AutoGen code works with zero refactoring. We deeply appreciate the Microsoft Research team for building and maintaining this open-source project. ## AutoGen setup python ``` pip install pyautogen import autogen config_list = [{ "model": "zen4-pro", "api_key": "your-hanzo-api-key", "base_url": "https://api.hanzo.ai/v1", }] assistant = autogen.AssistantAgent( name="assistant", llm_config={"config_list": config_list}, ) user_proxy = autogen.UserProxyAgent( name="user_proxy", human_input_mode="NEVER", ) user_proxy.initiate_chat(assistant, message="Write a Python script to sort a list.") ``` ## Multi-agent conversation python ``` coder = autogen.AssistantAgent( name="coder", llm_config={"config_list": config_list}, system_message="You write clean Python code.", ) reviewer = autogen.AssistantAgent( name="reviewer", llm_config={"config_list": config_list}, system_message="You review code for bugs.", ) groupchat = autogen.GroupChat(agents=[user_proxy, coder, reviewer], messages=[]) manager = autogen.GroupChatManager(groupchat=groupchat, llm_config={"config_list": config_list}) ``` ## Code execution agent python ``` user_proxy = autogen.UserProxyAgent( name="user_proxy", human_input_mode="NEVER", code_execution_config={"work_dir": "coding", "use_docker": False}, ) ``` ## Environment setup bash ``` export HANZO_API_KEY="your-hanzo-api-key" # AutoGen picks up OAI_CONFIG_LIST or inline config # No extra env vars needed — just point base_url to Hanzo ``` ## Ready to get started? Create a free account and get your API key. 100K API calls/month free forever. [Get API Key — Free](https://hanzo.ai/signup)[Browse Models](https://hanzo.ai/models) ## More integrations [OpenAI Python SDK](https://hanzo.ai/integrations/openai-sdk)[Anthropic SDK](https://hanzo.ai/integrations/anthropic-sdk)[LangChain](https://hanzo.ai/integrations/langchain)[LlamaIndex](https://hanzo.ai/integrations/llamaindex)[Vercel AI SDK](https://hanzo.ai/integrations/vercel-ai-sdk)[Hugging Face](https://hanzo.ai/integrations/huggingface)[CrewAI](https://hanzo.ai/integrations/crewai)[DSPy](https://hanzo.ai/integrations/dspy)[Haystack](https://hanzo.ai/integrations/haystack)[Cursor](https://hanzo.ai/integrations/cursor)[Continue.dev](https://hanzo.ai/integrations/continue-dev)[GitHub Copilot](https://hanzo.ai/integrations/github-copilot)[Docker](https://hanzo.ai/integrations/docker)[Kubernetes](https://hanzo.ai/integrations/kubernetes)[Python](https://hanzo.ai/integrations/python)[TypeScript](https://hanzo.ai/integrations/typescript)[Go](https://hanzo.ai/integrations/go)[Rust](https://hanzo.ai/integrations/rust)