---
title: "Breaking Free From AI Vendor Lock-in: Integrating GitHub Models with Docker cagent"
description: "Docker cagent, an open-source multi-agent runtime driven by declarative YAML, can use GitHub Models as a custom OpenAI-compatible provider."
url: "https://swe.quest/articles/breaking-free-from-ai-vendor-lock-in-integrating-github-models-with-docker-8fc971be1201fa24"
canonical: "https://www.docker.com/blog/configure-cagent-github-models/"
source: "Docker"
published: "2025-12-11"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["ai-agents","llms","containers"]
---

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

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-12-11, 7 min read, How-to. Original: [https://www.docker.com/blog/configure-cagent-github-models/](https://www.docker.com/blog/configure-cagent-github-models/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)

## Prerequisites

- Docker Desktop ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- LLM API basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Model Context Protocol basics

## Keywords

Docker cagent, GitHub Models, MCP, Docker MCP Gateway, Docker Hub, DuckDuckGo

## Related posts

- [Build and Distribute AI Agents and Workflows with cagent](https://swe.quest/articles/build-and-distribute-ai-agents-and-workflows-with-cagent-f30c9f0bbad13e54.md): Docker · 2025-09-18 · Medium · 7 min read · AI agents, Developer tools, Containers, Open source
  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.
- [Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup](https://swe.quest/articles/building-ai-agents-with-docker-mcp-toolkit-a-developer-s-real-world-setup-988aee07496da75c.md): Docker · 2025-08-19 · Medium · 6 min read · AI agents, Containers, LLMs
  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.
- [Build a Multi-Agent System in 5 Minutes with cagent](https://swe.quest/articles/build-a-multi-agent-system-in-5-minutes-with-cagent-b6fd900693f4f3cc.md): Docker · 2025-10-14 · Medium · 4 min read · AI agents, LLMs, Developer tools
  cagent is an open-source Docker tool that defines multi-agent AI systems declaratively in a single YAML file.
- [Beyond the Chatbot: Event-Driven Agents in Action](https://swe.quest/articles/beyond-the-chatbot-event-driven-agents-in-action-fe3eb0d5f18a275b.md): Docker · 2025-07-28 · Medium · 9 min read · AI agents, Event-driven architecture, TypeScript, LLMs, Containers
  A GitHub webhook-triggered agent workflow automatically detects "I finished the tutorial" pull requests on Docker's sample repos, generates an encouraging comment, and closes them without any chat interface.
- [Build a Recipe AI Agent with Koog and Docker](https://swe.quest/articles/build-a-recipe-ai-agent-with-koog-and-docker-5af82c75d41ec7f4.md): Docker · 2025-08-08 · Medium · 12 min read · AI agents, Java & JVM, Containers, LLMs
  A small Kotlin AI agent built with JetBrains' Koog framework can run entirely on a local model served by Docker Model Runner, wired up through Docker Compose's agentic models feature.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
