Prerequisites
- An API key for at least one AI provider (OpenAI, Anthropic, Google, etc.)
- Optional: Docker Desktop — for Docker MCP tools and Docker Model Runner
Install docker-agent
- Docker Desktop
- Homebrew
- Binary release
- Build from source
Starting with Docker Desktop 4.63+, docker-agent is pre-installed. No separate installation needed.Open a terminal and verify:
Set up API keys
docker-agent needs at least one API key for the AI provider you want to use. Set it as an environment variable before running any agents.You only need the key for the provider configured in your agent YAML. If you use Docker Model Runner for local models, no API key is required.
export line to your shell profile (~/.bashrc, ~/.zshrc, or equivalent).
Verify the installation
What’s next
Quickstart
Create and run your first agent in under 5 minutes.
Troubleshooting
Debug mode, common issues, and solutions.