AI / 자동화 2026년 6월 4일

OpenClaw를 Headroom 프록시로 라우팅해 API 비용 절감

VpsGona 팀 2026년 6월 4일 ~14분
OpenClaw Headroom

Headroom로 OpenClaw 도구 출력을 압축(프록시 8787, 서울 노드). onboard, OTEL, launchd.

고지: 선택적 Mac 렌탈.

구조

OpenClaw → Headroom http://127.0.0.1:8787 → API
ModeWhenOpenClaw hook
headroom proxy --port 8787Zero code changeSet ANTHROPIC_BASE_URL in ~/.openclaw/.env
ContextEngine pluginNative OpenClaw pathHeadroom providers/openclaw slice
MCP headroom_compressMCP-heavy flowsheadroom mcp install
headroom wrapOne-shot devLess ideal for 24/7 gateway

매트릭스

PatternHookSavings bandOps
Nightly launchd auditProxy + plist env70–92% on tool-heavy turnsKeep proxy alive with LaunchAgent
Interactive gateway chatProxy or plugin40–70%Low gain on tiny prompts
MCP-only micro toolsMCP compress tool30–60%When proxy blocked
Already on Ollama localSkip HeadroomN/ASee Ollama OpenClaw guide
Need token accountingProxy + OTELMeasure, don’t guessheadroom perf + spans

전제

  • 게이트웨이 정상 · Python 3.10+

8단계

  1. pip install "headroom-ai[proxy]"
  2. headroom proxy --port 8787
  3. headroom perf
  4. ANTHROPIC_BASE_URL=http://127.0.0.1:8787
  5. smoke agent
  6. 선택 플러그인
  7. launchd
  8. OTEL

야간 감사

로그·diff 많을 때 60–92% 가능.

MCP

프록시 + MCP, OTEL로 측정.

문제해결

연결 거부: 프록시 먼저. 청구 동일: base URL 확인.

도구 많으면 프록시 필수.

FAQ

Does Headroom send my code to a third-party API?

No for the default local proxy—compression runs on your host; see limitations.

Will OpenClaw break if compression is too aggressive?

Headroom publishes benchmark accuracy tables; use CCR retrieve when the model needs full files. Smoke-test one real audit before automating.

What port should I standardize on?

8787 is the documented default for headroom proxy --port 8787.

How does this relate to Claude Code MCP Headroom?

Same project: headroom mcp install for MCP clients; OpenClaw users usually set provider base URL to the proxy.

Can I save ~80% on every request?

No—published ranges are 47–92% by workload. Log-heavy OpenClaw audits trend high; short chat trends low. Use headroom perf and OTEL.

프록시 배포

8787·base URL·perf 측정.