βœ“
Cagent Download

Docker's multi-agent runtime for building and orchestrating specialized AI agents defined in YAML, with MCP tool integration, smart delegation, RAG retrieval, and support for multiple LLM providers including OpenAI, Anthropic, and Gemini.

⭐ 1,732 stars on GitHub
Latest Release: v1.13.0

About Software

Cagent is Docker's multi-agent runtime for creating and orchestrating AI agents with specialized capabilities, tools, and knowledge. Each agent is defined in simple YAML files with model selection (OpenAI, Anthropic, Gemini, xAI, Mistral, Nebius, Docker Model Runner), instructions, and toolsets including MCP servers for containerized or standard tools via stdio, HTTP, or SSE transport.

The platform supports smart task delegation between agents, built-in reasoning tools (think, todo, memory), and pluggable RAG strategies with result reranking. Agents can be exposed as MCP tools for external clients, and Docker MCP Gateway enables secure access to containerized tools. Cross-platform installation via Homebrew or binary releases for Windows, macOS, and Linux.

Use Cases:

  • Build multi-agent AI teams with specialized roles using YAML configuration files
  • Orchestrate agent collaboration with automatic task delegation to domain specialists
  • Equip agents with MCP tools from Docker catalog or custom servers for enhanced capabilities
  • Expose custom agents as MCP tools for use in Claude Desktop and other MCP clients
  • Implement RAG retrieval with BM25, chunked-embeddings, and semantic search with hybrid fusion

Categories

Downloads

v1.13.0 December 09, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.12.0 December 09, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.11.0 December 08, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.10.6 December 05, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.10.5 December 05, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.10.4 December 04, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.10.3 December 02, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.10.2 December 01, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.30 November 28, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.29 November 28, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.27 November 27, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.26 November 26, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.25 November 26, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.24 November 24, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.23 November 24, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.22 November 24, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.21 November 21, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.20 November 21, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.19 November 21, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.18 November 20, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.16 November 19, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.15 November 18, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.14 November 18, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.13 November 14, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.12 November 13, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.11 November 12, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.10 November 05, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.9 November 04, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.8 November 04, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe
v1.9.7 November 02, 2025
cagent-windows-amd64.exeexe
cagent-windows-arm64.exeexe

Package Info

Last Updated
Dec 09, 2025
Latest Version
v1.13.0
License
Apache-2.0
Total Versions
30

README

πŸ€– cagent πŸ€–

A powerful, easy-to-use, customizable multi-agent runtime that orchestrates AI agents with specialized capabilities and tools, and the interactions between agents.

!cagent in action

✨ What is cagent? ✨

cagent lets you create and run intelligent AI agents, where each agent has specialized knowledge, tools and capabilities.

Think of it as allowing you to quickly build, share and run a team of virtual experts that collaborate to solve complex problems for you.

And it's dead easy to use!

⚠️ Note: cagent is in active development, breaking changes are to be expected ⚠️

Your First Agent

Example basic_agent.yaml:

Creating agents with cagent is straightforward. They are described in a short .yaml file, like this one:

agents:
  root:
    model: openai/gpt-5-mini
    description: A helpful AI assistant
    instruction: |
      You are a knowledgeable assistant that helps users with various tasks.
      Be helpful, accurate, and concise in your responses.

Run it in a terminal with cagent run basic_agent.yaml.

Many more examples can be found here!

Improving an agent with MCP tools

cagent supports MCP servers, enabling agents to use a wide variety of external tools and services.

It supports three transport types: stdio, http and sse.

Giving an agent access to tools via MCP is a quick way to greatly improve its capabilities, the quality of its results and its general usefulness.

Get started quickly with the Docker MCP Toolkit (https://docs.docker.com/ai/mcp-catalog-and-toolkit/toolkit/) and catalog (https://docs.docker.com/ai/mcp-catalog-and-toolkit/catalog/)

Here, we're giving the same basic agent from the example above access to a containerized duckduckgo mcp server and its tools by using Docker's MCP Gateway:

agents:
  root:
    model: openai/gpt-5-mini
    description: A helpful AI assistant
    instruction: |
      You are a knowledgeable assistant that helps users with various tasks.
      Be helpful, accurate, and concise in your responses.
    toolsets:
      - type: mcp
        ref: docker:duckduckgo # stdio transport

When using a containerized server via the Docker MCP gateway, you can configure any required settings/secrets/authentication using the Docker MCP Toolkit (https://docs.docker.com/ai/mcp-catalog-and-toolkit/toolkit/#example-use-the-github-official-mcp-server) in Docker Desktop.

Aside from the containerized MCP servers the Docker MCP Gateway provides, any standard MCP server can be used with cagent!

Here's an example similar to the above but adding read_file and write_file tools from the rust-mcp-filesystem MCP server:

agents:
  root:
    model: openai/gpt-5-mini
    description: A helpful AI assistant
    instruction: |
      You are a knowledgeable assistant that helps users with various tasks.
      Be helpful, accurate, and concise in your responses. Write your search results to disk.
    toolsets:
      - type: mcp
        ref: docker:duckduckgo
      - type: mcp
        command: rust-mcp-filesystem # installed with `cargo install rust-mcp-filesystem`
        args: ["--allow-write", "."]
        tools: ["read_file", "write_file"] # Optional: specific tools only
        env:
          - "RUST_LOG=debug"

See the USAGE docs for more detailed information and examples

Exposing agents as MCP tools

cagent can expose agents as MCP tools via the cagent mcp command, allowing other MCP clients to use your agents.

Each agent in your configuration becomes an MCP tool with its description.

# Start MCP server with local file
cagent mcp ./examples/dev-team.yaml

# Or use an OCI artifact
cagent mcp agentcatalog/pirate

This exposes each agent as a tool (e.g., root, designer, awesome_engineer) that MCP clients can call:

{
  "method": "tools/call",
  "params": {
    "name": "designer",
    "arguments": {
      "message": "Design a login page"
    }
  }
}

See MCP Mode documentation for detailed instructions on exposing your agents through MCP with Claude Desktop, Claude Code, and other MCP clients.

🎯 Key Features

  • πŸ—οΈ Multi-agent architecture - Create specialized agents for different domains.
  • πŸ”§ Rich tool ecosystem - Agents can use external tools and APIs via the MCP protocol.
  • πŸ”„ Smart delegation - Agents can automatically route tasks to the most suitable specialist.
  • πŸ“ YAML configuration - Declarative model and agent configuration.
  • πŸ’­ Advanced reasoning - Built-in "think", "todo" and "memory" tools for complex problem-solving.
  • πŸ” RAG (Retrieval-Augmented Generation) - Pluggable retrieval strategies (BM25, chunked-embeddings, semantic-embeddings) with hybrid retrieval, result fusion and reranking support.
  • 🌐 Multiple AI providers - Support for OpenAI, Anthropic, Gemini, xAI, Mistral, Nebius and Docker Model Runner (https://docs.docker.com/ai/model-runner/).

πŸš€ Quick Start πŸš€

Installation

Using Homebrew

Install cagent with a single command using homebrew (https://brew.sh/)!

$ brew install cagent

Using binary releases

Prebuilt binaries (https://github.com/docker/cagent/releases) for Windows, macOS and Linux can be found on the release page of the project's GitHub repository (https://github.com/docker/cagent/releases)

Once you've downloaded the appropriate binary for your platform, you may need to give it executable permissions. On macOS and Linux, this is done with the following command:

# linux amd64 build example
chmod +x /path/to/downloads/cagent-linux-amd64

You can then rename the binary to cagent and configure your PATH to be able to find it (configuration varies by platform).

Set your API keys

Based on the models you configure your agents to use, you will need to set the corresponding provider API key accordingly, all these keys are optional, you will likely need at least one of these, though:

# For OpenAI models
export OPENAI_API_KEY=your_api_key_here

# For Anthropic models
export ANTHROPIC_API_KEY=your_api_key_here

# For Gemini models
export GOOGLE_API_KEY=your_api_key_here

# For xAI models
export XAI_API_KEY=your_api_key_here

# For Nebius models
export NEBIUS_API_KEY=your_api_key_here

# For Mistral models
export MISTRAL_API_KEY=your_api_key_here

Run Agents!

# Run an agent!
cagent run ./examples/pirate.yaml

# or specify a different starting agent from the config, useful for agent teams
cagent run ./examples/pirate.yaml -a root

# or run directly from an image reference here I'm pulling the pirate agent from the creek repository
cagent run creek/pirate