Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 4 min read How-to mediumAdept

Build a Multi-Agent System in 5 Minutes with cagent

cagent is an open-source Docker tool that defines multi-agent AI systems declaratively in a single YAML file. Each agent's model (OpenAI, Anthropic, Gemini or local via Docker Model Runner), instructions, MCP toolsets and sub-agents are specified there, and the runtime handles delegation and context passing. A three-agent example (coordinator, researcher with DuckDuckGo MCP, writer) runs with `cagent run` and can be pushed to Docker Hub so teammates run the identical setup. Example use cases include PR triage, research summarization and knowledge routing with PII redaction.

Assumes: LLM APIsYAML

Related posts

  • Build and Distribute AI Agents and Workflows with cagent

    Docker mediumAdept

    cagent is Docker's open-source command-line runtime that defines AI agents (model, instructions, persona and MCP tools) in a single YAML file and distributes them through OCI registries such as Docker Hub. Two working agents illustrate it: a GitHub-issues to-do tracker, and an internal assistant that queries Docker Captains' contributions in Advocu through a custom MCP server running in a container. Practical tips include connecting through the Docker MCP gateway to reuse Docker Desktop's OAuth login, and limiting the verbose GitHub MCP server to the issue-related tools the agent needs.

  • Breaking Free From AI Vendor Lock-in: Integrating GitHub Models with Docker cagent

    Docker mediumAdept

    Docker cagent, an open-source multi-agent runtime driven by declarative YAML, can use GitHub Models as a custom OpenAI-compatible provider. You point base_url at https://models.github.ai/inference and pass a GitHub personal access token as the API key, so one credential reaches models from OpenAI, Meta, Microsoft, Anthropic and DeepSeek. The walkthrough builds a podcast-generator agent whose root agent delegates to researcher and scriptwriter sub-agents that use DuckDuckGo and filesystem MCP servers through the Docker MCP gateway. The agent is then shared through Docker Hub with cagent push, pull and run.

  • Using MCP Servers: From Quick Tools to Multi-Agent Systems

    Docker easyNovice

    Containerizing MCP servers addresses three practical problems: language runtime sprawl, secret injection, and N×N client-to-server wiring. Three integration paths are laid out in order of complexity: Docker's MCP Toolkit and Catalog for one-click containerized servers wired to clients like Claude Desktop or VS Code, cagent for declarative YAML-defined multi-agent systems with per-agent tool scoping, and code-first frameworks like LangGraph, CrewAI or ADK for full orchestration control. All three route through the open-source MCP Gateway, which centralizes routing, authentication and a single endpoint, and a comparison table maps each option to who it suits and what you manage.

  • Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World

    Docker mediumAdept

    Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting. The gateway can also hide added servers' tool definitions from tools/list so they stay discoverable without bloating the context window. A code-mode tool lets agents write JavaScript that composes tools from several MCP servers inside a Docker sandbox, keeping intermediate results out of the model and cutting per-turn token usage. The features ship in Docker Desktop 4.50 and are on by default, and cagent can expose such agents to ACP-enabled editors like Zed and Neovim.

  • Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup

    Docker mediumAdept

    A GitHub repository question-answering agent is built by running the GitHub MCP Gateway (docker/mcp-gateway) as a container under Docker Compose and connecting a Python agent to it over streamable-http via MCPTools. The gateway lists files, fetches content and searches code, and GPT-4o reasons over the results. Setup takes a few commands: store a GitHub token with `docker mcp secret set`, run `docker compose up`, then run app.py. The main argument is that containerized MCP connectors keep integration code out of the agent and give consistent environments, and new tools such as Jira or Slack can be added as extra Compose services.

The quest for software engineering knowledge.

Look:
Layout: