Urgent.News

What's breaking now, across hundreds of outlets.

AI

Build AI Agents Without Code: Run Docker Agent via YAML and Connect Local Models Without API Keys

Originally published on VGoods Lab . This article is compiled based on Docker's official repository, documentation, and example directories (verified on October 8, 2026). In a nutshell: Docker's official open-source agent runtime tool (Apache-2.0). Define your models, instructions, and tools in a single YAML file, spin it up with a simple docker agent run command, and seamlessly connect to either…

Docker's open-source agent runtime tool, available under the Apache-2.0 license, enables developers to define models, instructions, and tools within a single YAML file. By executing the command `docker agent run`, users can seamlessly connect to either cloud models or local models through Docker Model Runner, eliminating the need for API keys and ensuring no data leaves the user's local machine.

Traditionally, creating an LLM-driven agent involves extensive glue code, including JSON schema creation for tools, orchestration logic, chat loop implementation, and handling of streaming outputs. This process often requires rewriting when switching models and poses significant challenges when sharing agents with others. Docker Agent introduces a configuration-over-code approach, streamlining the process and making AI agent creation akin to spinning up a container with `docker run`.

The tool addresses several key challenges:

- **Multi-Agent Collaboration**: A coordinator agent can efficiently manage specialized worker agents, automating task delegation.

- **Ready-to-Use Toolsets**: Built-in toolsets for filesystem operations, shells, memory, task lists, and web scraping, with compatibility for any MCP (Model Context Protocol) server, including Docker's MCP catalog.

- **Model Swapping**: Users can easily switch between cloud providers (e.g., OpenAI, Anthropic, Gemini, AWS Bedrock, Mistral) and local runners (Docker Model Runner, Ollama) by simply adjusting a single model line in the YAML configuration.

- **Flexible Execution Modes**: Offers interactive Terminal User Interface (TUI), one-off CLI command execution, HTTP API service initiation, or MCP server mode operation—all achievable with the same YAML configuration by altering the entrypoint.

**Prerequisites**:

- A Docker environment is mandatory. Docker Desktop 4.63 or later includes the plugin by default, allowing immediate use via `docker agent`. Alternatively, standalone installation via Homebrew or official binaries is an option.

- For connecting to local models, enable the Docker Model Runner feature in Docker Desktop, which requires no API keys but depends on local hardware specifications.

**Recommended Hardware**:

- For local models, the suitable hardware depends on the model size. Smaller models require less RAM but may compromise response quality. Starting with the official default small model is recommended before scaling up based on system capabilities.

**Windows Considerations**:

- Docker Desktop on Windows utilizes the same container and GPU workflows as WSL containers. Performance and VRAM usage benchmarks for local models under this setup are not extensively covered, necessitating further validation.

**Getting Started in Four Simple Steps**:

1. **Verify Plugin Installation**: Run `docker agent --help` and `docker agent doctor` to ensure the plugin is correctly installed and check for any credential or service issues.

2. **Pull a Model**: If using local models, execute `docker model status --json` and `docker model pull ai/qwen3` to confirm the Model Runner's status and pull a local model. List available models with `docker model ls`.

3. **Create Your First YAML Configuration**: For cloud-based agents, define the model, description, instructions, and toolsets in YAML. For local agents, replace the model name while maintaining the same structure. Incorporate additional MCP toolsets if necessary.

4. **Execute the Agent**: Use `docker agent run` for interactive mode or `docker agent run --exec <yaml_file> "<command>"` for executing specific commands or fetching results (e.g., analyzing error logs).

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Building a small business website with Claude Code: what the agent needs from you

If you ask Claude Code or Codex for a website for a bakery, you get one. It has a hero section and a contact form, and it looks fine. Then the questions start. Where does it run?

  • Provide business name, services, and unique features
  • Include accurate existing website, Google Maps, social media
  • Check site across devices, no invented testimonials

Why Every AI-Generated Website Looks the Same | DeliverWebsite UI

The purple gradient, the pill badge and the three emoji cards are not an accident. Here is why AI coding agents keep shipping the same page, and how to stop it Ask any AI coding agent for a landing…

  • AI-generated websites use identical design templates
  • Common elements include gradient hero, emoji icons, and three feature cards
  • Human designers create unique layouts based on product and audience

More from Monday, 30 November 2026 →