Run This Ai
EN DE

Deploying AgentField with Docker: Build a Multi-Agent Research Pipeline

Step-by-step tutorial for running AgentField with Docker, creating agents with identities, and building a multi-agent research pipeline.

AgentField Logo

🐳 Deploying AgentField with Docker: Your First Multi-Agent System

Let's get AgentField running and build a real multi-agent system. Not a toy example β€” a research pipeline where one agent searches, another analyzes, and a third summarizes. Each agent runs as an independent service with its own identity.

πŸš€ Want to deploy AgentField yourself?

Docker configs, system requirements, installation guides β€” all on one page.

View AgentField Tool Page β†’

πŸ“¦ Step 1: Start the Control Plane

AgentField uses a control plane + agent architecture. First, run the control plane (it handles identity, orchestration, and storage):

docker pull agentfield/control-plane:latest
docker run -d --name agentfield-cp \
  -p 8080:8080 \
  -e AGENTFIELD_STORAGE_MODE=sqlite \
  agentfield/control-plane:latest

⏱️ Time: ~30 seconds to pull (image is ~200MB).

⚠️ I forgot the storage env: Started it without STORAGE_MODE and it fell back to a temporary in-memory db. Lost all my agents on restart. Use sqlite for testing, postgres for production.

πŸ”§ Step 2: Create Your First Agent

With the control plane running at http://localhost:8080, use the AgentField CLI or API to create an agent. I'll use the API β€” it's cleaner:

# Create a research agent with its own identity
curl -X POST http://localhost:8080/api/v1/agents \
  -H "Content-Type: application/json" \
  -d '{
    "name": "research-agent",
    "description": "Searches the web and returns relevant content",
    "provider": "openai",
    "model": "gpt-5",
    "tools": ["web_search", "web_scrape"],
    "system_prompt": "You are a research agent. Search the web for information and return structured results."
  }'

The response includes an agent ID and API token. Save both β€” the token is how other agents authenticate when calling this one.

πŸ”„ Step 3: Build a Multi-Agent Pipeline

Now create two more agents and connect them:

  1. Analyzer Agent β€” takes raw research content and extracts key insights
  2. Summarizer Agent β€” takes insights and generates a structured report

Each agent gets its own identity, its own API token, and its own scope of work. Here's the cool part: the analyzer agent can call the researcher agent using its API token, and the summarizer can call the analyzer. AgentField handles all the inter-agent auth.

AgentField Features Strip

πŸ“Š Step 4: Monitor Everything

Open the AgentField dashboard at http://localhost:8080/ui and you'll see:

  • Each agent's status (running, idle, error)
  • Full trace logs for every agent invocation
  • Audit trail showing which agent called which
  • Performance metrics (response time, token usage, error rate)

When my research agent failed on a complex query, I opened the trace log and saw it hit a rate limit on the search API. Fixed it by adding a retry delay in the system prompt. Total debugging time: 3 minutes.

⚑ Performance

MetricValue
Control plane cold start~2 seconds
RAM (control plane idle)~80 MB
Agent creation timeInstant (config only)
3-agent pipeline execution20-45 seconds (LLM latency)

🎯 Who Is This For?

If you're running one agent for personal use, AgentField is probably overkill. But if you're building a system where multiple agents need to collaborate, each with different roles, permissions, and observability requirements β€” this is exactly what you're looking for. It's the difference between "my script works on my machine" and "my services run in production."

πŸš€ Explore AgentField on Run This Ai

Docker Compose configs, system requirements, installation guides, and more β€” all in one place.

View AgentField Tool Page β†’
#agentfield #tutorial #docker #multi-agent #quickstart