---
name: "Ship AG2 multi-agent workflows behind APIs with FastAgency"
slug: "ship-ag2-multi-agent-workflows-behind-apis-with-fastagency"
description: "Turn an AG2 multi-agent prototype into a reusable console, web, REST API, or broker-backed service with FastAgency."
github_stars: 540
verification: "security_reviewed"
source: "https://github.com/ag2ai/fastagency"
author: "AG2"
publisher_type: "Organization"
category: "Templates & Workflows"
framework: "Custom Agents"
tool_ecosystem:
  github_repo: "ag2ai/fastagency"
  github_stars: 540
---

# Ship AG2 multi-agent workflows behind APIs with FastAgency

Turn an AG2 multi-agent prototype into a reusable console, web, REST API, or broker-backed service with FastAgency.

## Prerequisites

Python 3.10+; FastAgency; AG2/AutoGen workflow; optional Cookiecutter, FastAPI, Mesop, NATS/FastStream, and pytest depending on deployment target

## Installation

Use the upstream install or setup path that matches your environment:
- pip install cookiecutter

Requirements and caveats from upstream:
- platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
- python
- If you created the project using Cookiecutter, then building the Docker image is as simple as running the provided script, as shown below:

Basic usage or getting-started notes:
- [**Seamless External API Integration**](user-guide/api/index.md): One of FastAgency's standout features is its ability to easily integrate external APIs into your agent workflows. With just a **few lines of code**, yo...
- [**Command-Line Interface (CLI) for Orchestration**](user-guide/cli/index.md): FastAgency includes a powerful **command-line interface (CLI)** for orchestrating and managing multi-agent applications directly from the...
- We **strongly recommend** using [**Cookiecutter**](../cookiecutter/index.md) for setting up a FastAgency project. It creates the project folder structure, default workflow, automatically installs all the necessary req...

- Source: https://github.com/ag2ai/fastagency
- Extracted from upstream docs: https://raw.githubusercontent.com/ag2ai/fastagency/HEAD/README.md

## Documentation

- https://fastagency.ai/latest/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/ship-ag2-multi-agent-workflows-behind-apis-with-fastagency/)
