Run it in a container
For schedulers that run containers: GitLab CI, Airflow, a Kubernetes CronJob, an ECS scheduled task. On your own machine, the uv install is simpler.
The image
Section titled “The image”From v0.3.0 on, each release is published to GitHub’s registry, tagged with its version
without the v (v0.3.0 is 0.3.0):
docker pull ghcr.io/jlcoto/honest-agent:<version>Pin the version you tested, as with uv add. The image has Python, honest-agent and
uv, so MCP servers started with uvx work as they do on
your machine. It’s built for linux/amd64 and linux/arm64 (the 0.3.0 image is amd64
only: on Apple Silicon, add --platform linux/amd64 to docker run). Its entrypoint is honest-agent: anything after the image name is the
command, like run or report.
To build it yourself, from a clone of the repository:
docker build -t honest-agent cliMount the project
Section titled “Mount the project”honest-agent looks for honest_agent_config.yml and .env from the folder it runs in,
and in the image that’s /project. Mount your project there:
docker run --rm -v "$PWD:/project" ghcr.io/jlcoto/honest-agent:<version> runA few things about it:
.envis optional. In a scheduler, pass the API keys and tokens as environment variables from its secret store (-e ANTHROPIC_API_KEY, a Kubernetes Secret, …). Variables already set win over.env. Don’t use Docker’s--env-file .env: it keeps quotes as part of the value, where.envstrips them.- A local
mcp_commandruns inside the container, in the folder ofhonest_agent_config.yml, so every path in it must exist there. A project made withinit --exampleon your machine has your machine’s Python in it: runinit --examplein the container instead. - The results file is in the mounted folder (
honest_agent_results/by default). A scheduler throws the container away after each run, so keep the results somewhere that lasts: MotherDuck, or a file you copy in and out as in Store results in S3. The image has no AWS CLI: add it in your own image (below), or copy the file in a step before and after. - The container runs as a normal user (
honest, id 1000), not as root, so on Linux the files it writes belong to id 1000. If that isn’t your id (id -usays), add--user "$(id -u):$(id -g)" -e HOME=/tmpand the files are yours (uvxneeds a home folder it can write to).
Run it by hand with Compose
Section titled “Run it by hand with Compose”A scheduler has its own place for the image, the mount and the variables, so it needs
nothing from this section. If you run the container by hand often, a compose.yml next
to honest_agent_config.yml saves retyping them:
services: honest-agent: image: ghcr.io/jlcoto/honest-agent:<version> volumes: - .:/project env_file: .envThen the command is the same as on your machine, after docker compose run --rm honest-agent:
docker compose run --rm honest-agent rundocker compose run --rm honest-agent reportCompose reads .env the way honest-agent does (double quotes around a value are
stripped), so the --env-file caveat above doesn’t apply. The file is a convenience for
one machine: don’t commit it with anything but the image version in it.
Look at the report
Section titled “Look at the report”report writes the report into the mounted folder, like on your machine:
docker run --rm -v "$PWD:/project" ghcr.io/jlcoto/honest-agent:<version> reportserve only answers on 127.0.0.1, and inside a container that’s the container itself,
so publishing a port (-p 8000:8000) doesn’t reach it. On Linux, share the machine’s
network instead:
docker run --rm --network host -v "$PWD:/project" ghcr.io/jlcoto/honest-agent:<version> serve --no-open-browserThen open http://127.0.0.1:8000/. Elsewhere, run serve outside the container, from the
project folder:
uvx --from "git+https://github.com/jlcoto/the_honest_agent@<tag>#subdirectory=cli" honest-agent serveFor a team, host the report behind a sign-in instead: see Running it for a team.
Build on top of it
Section titled “Build on top of it”The image has what honest-agent and uvx need, nothing more. If your MCP server needs
Node.js, extra Python packages or another tool, build your own image from this one:
FROM ghcr.io/jlcoto/honest-agent:<version>
# The image runs as the user `honest`; installing needs root, so switch and switch back.USER root
# Node.js, for MCP servers started with npx (Debian's version: check it's new enough# for your server).RUN apt-get update \ && apt-get install -y --no-install-recommends nodejs npm \ && rm -rf /var/lib/apt/lists/*
# A server published as a Python package, installed once instead of on every run.# mcp_command is then just its name.ENV UV_TOOL_DIR=/opt/uv-tools UV_TOOL_BIN_DIR=/usr/local/binRUN uv tool install <server-package>
# A server script of your own, with its packages in a separate environment so they# can't clash with honest-agent's. mcp_command: "/opt/mcp/bin/python mcp_server/server.py"RUN uv venv /opt/mcp && uv pip install --python /opt/mcp/bin/python <packages>
USER honestThe local server gets only PATH, HOME and a few other basics, plus the variables in
the target’s mcp_env. An ENV you add for the server reaches it only once its name is
in mcp_env.
