← knowledge.oriz.in

Headroom 0.27 via Docker — chain Hr ? hai ? Bedrock

decision headroomhaidockercompressionsapbedrockasr

Headroom 0.27 via Docker — Hr ? hai ? Bedrock chain

Decision

Run Hr 0.27 as a Docker container. Claude Code ? Hr :8787 ? hai :6655 ? Bedrock.

Why Docker, not pipx

Hr 0.27 source build needs Rust + MSVC + working linker. All three present after VS 2026 Community + "Desktop C++" workload + rustup. BUT Rust build-scripts execute compiled .exe binaries from %TEMP%\pip-install-* directories — corporate ASR (Defender) silently blocks the execution with Access is denied (os error 5). Build fails on portable-atomic, httparse, rustls, av-scenechange, rustversion. Cannot upgrade pipx Hr from 0.19 ? 0.27 on this machine.

Docker image ships pre-built binaries. Skip the build. Confirmed working.

Config

docker run -d \
  --name headroom-proxy \
  --restart unless-stopped \
  -p 8787:8787 \
  -e ANTHROPIC_TARGET_API_URL=http://host.docker.internal:6655/anthropic \
  ghcr.io/chopratejas/headroom:latest \
  --port 8787 --host 0.0.0.0 --backend anthropic

Key flags:

Claude Code wiring

~/.claude/settings.json:

"ANTHROPIC_BASE_URL": "http://localhost:8787",
"ANTHROPIC_AUTH_TOKEN": "<hai api key from Desktop App tray>",
"ANTHROPIC_MODEL": "claude-opus-latest"

E2E verified 2026-06-27

$ claude --print "reply only OK"
OK

Model resolved: claude-opus-4-7 via Bedrock. Hr container PID inside Docker. Health endpoint shows upstream: healthy, url: http://host.docker.internal:6655/anthropic.

What this supersedes

What stays

When to revisit

Cross-refs