ezi harness
The ezi harness is a local MCP gateway. An agent connects to it and does its work (shell commands, file edits, search, Git and GitHub, skills, sub-agents) inside sandboxed Docker containers instead of on your machine. Each container runs as a non-root user with a read-only root file system, no Docker socket and no access to your home folder. Network access goes through an egress proxy that allows only listed hosts.
Requirements
- macOS or Linux. The harness does not run on Windows.
- Node.js 24 or later.
- Docker, running.
- A license (every license covers the harness) to download it.
Install
ezi harness install
Installed ezi harness 1.0.0 in /Users/you/.ezi/products/harness/1.0.0
Your kit
The harness mounts kit skills read-only into its containers. It uses the kits
you installed with ezi kit install (in a project or with --global), so
install your kit first if you have not:
ezi kit install development --global --yes
At start the harness unpacks the verified kit package that install recorded
into ~/.ezi/cache/installed-kits/, once per kit version. After a kit update,
restart the harness to use the new version. To mount other kits instead, pass
--kits-dir <folder> with one sub-folder per kit, each with a skills/ folder.
Start
ezi harness start --port 8820
ezi harness: running at http://127.0.0.1:8820/mcp (pid 24861, instance 4036ab, healthy)
token: /Users/you/.ezi/harness/token (send it as a bearer token)
dashboard: http://127.0.0.1:8820/dashboard/ (open it with `ezi harness dashboard`)
kit: /Users/you/.ezi/cache/installed-kits/<id>/development -> /opt/ezi/kits/development
egress allow-list: files.pythonhosted.org, github.com, githubusercontent.com, proxy.golang.org, pypi.org, registry.npmjs.org, sum.golang.org
The first start builds two Docker images when they are missing, and so does
the first start after an update that changed what goes into them; their tags
end in a digest of those files. Older harness images carry the label
io.ezi.harness=1 and can be removed with
docker image prune --all --filter label=io.ezi.harness=1. Without
--port the harness listens on port 47224. If the port is taken the start
fails; ezi never moves to another port on its own.
Point your agent runtime's MCP configuration at the URL, with the content of the token file as a bearer token.
Options you will want
| Need | Flag |
|---|---|
| Let containers reach another host | --allow-host api.example.com (repeatable) |
| Give agents a model key | --model-key-ref <secret> with --model-base-url, --model-header, --model-scheme, --model |
| Let the GitHub broker clone and push | --github-token-ref <secret> --github-repo owner/name (repeatable) |
| Change container limits | --memory 2048m, --pids 512 |
Keys and tokens are read from ezi secret by reference, handed to the
harness on standard input and never written to disk. ezi harness start --help
shows a complete example.
ezi secret approvals on macOS use the ezi-presence helper, which the
installer puts next to ezi.
Check, open and stop
ezi harness status # running or not, URL, kits and allow-list
ezi harness dashboard # open the harness web page
ezi harness stop
ezi harness: stopped
ezi harness stop also removes its containers and networks. Every Docker
resource it creates is named ezi-c-harness-<instance>-.... Its log is in
~/.ezi/harness/harness.log.
Updating
After ezi update cli, run ezi harness install again, then restart the
harness.