Skip to main content

Agent Add-On

Objective: start the agent container so searches can use agent configs.

Done when: the Agent Configs page no longer shows a warning.

What It Is​

The agent runs in its own small container, about 30 MB of memory. It answers a question by running searches through Yew's MCP server and writing an answer from what it finds. It isn't part of the basic install, so you add it with a second Compose file, agent.yaml.

Before You Start​

You need a working Docker install.

1. Download the Agent File​

From your Yew folder, next to docker-compose.yaml:

curl -fsSLO https://gitlab.com/alanjames1987/yew-monorepo/-/raw/main/infra/homelab/agent.yaml

2. Start the Agent​

Add a second -f:

docker compose -f docker-compose.yaml -f agent.yaml up -d

This starts the agent container and restarts the backend with AGENT_SERVICE_URL set, which is what tells the backend the agent is installed.

Keep both files on every command

From now on, pass both -f flags to every command, including pull, logs and down. Without agent.yaml, Compose treats the agent as an unknown container, and up -d restarts the backend without the agent setting. If you also use the web crawler, include all three: -f docker-compose.yaml -f agent.yaml -f crawler.yaml.

Check it started:

docker compose -f docker-compose.yaml -f agent.yaml ps agent

The status should be Up.

If you pinned the backend and frontend to a release, set the same release as YEW_VERSION in a .env file next to docker-compose.yaml, such as YEW_VERSION=2026.11.26.0. agent.yaml reads the agent's image version from it, and uses latest without it. See Updating.

3. Create an Agent Config​

Open Agent Configs in Yew and create one. See Agent Configs.

Troubleshooting​

Agent Configs shows "The agent isn't installed". The backend doesn't have AGENT_SERVICE_URL set, which usually means Yew was started without agent.yaml. Run up -d again with both files:

docker compose -f docker-compose.yaml -f agent.yaml up -d

Agent Configs shows "The agent isn't responding". The backend is set up for the agent, but the agent container isn't answering its health check. Check that it's running, then read its log:

docker compose -f docker-compose.yaml -f agent.yaml ps agent
docker compose -f docker-compose.yaml -f agent.yaml logs agent --tail 50

The page checks again at most every 30 seconds, so reload it after the agent is back.

The Agent tab shows an error. Read the agent's log as above. If the agent can't reach the backend, the log shows connection errors to yew-backend:8443/mcp.

Still stuck? Ask at answers.yewsearch.com. It searches these docs with Yew Search and writes an answer with links to the pages it used.

Removing the Agent​

Start Yew without agent.yaml, and remove the agent container:

docker compose -f docker-compose.yaml up -d --remove-orphans

Your agent configs stay saved, so adding the agent back later picks up where you left off.