# agent0 (host)

The host process: an MCP client + LLM agent loop. It connects to `gateway_mcps`,
exposes the aggregated tools to the LLM, and runs the interactive session with the
user.

## Run

```bash
./run.sh
```

`run.sh` creates a local `.venv`, installs `requirements.txt` (`openhands-sdk`), and
starts `client.py`.

## Configuration

Config is read from `conf/agent0.json` (two levels above this folder,
`../../conf/agent0.json`):

```json
{
  "gateway_url": "http://127.0.0.1:8000/mcp/",
  "providers": {
    "anthropic": {
      "api_key": "sk-...",
      "model": "claude-opus-4-7"
    }
  }
}
```

The gateway (`gateway_mcps`) must be running at `gateway_url` first.
