Skip to content

Instantly share code, notes, and snippets.

@foxy82
foxy82 / headroom-proxy-with-claude-remote-control.md
Created August 20, 2026 19:27
A guide to route Claude Code traffic through [Headroom](https://github.com/headroomlabs-ai/headroom) for context compression **while keeping Remote Control fully working**, using mitmproxy instead of `headroom wrap` / `ANTHROPIC_BASE_URL` (which disables Remote Control).

Claude Code + Headroom via mitmproxy (Docker, RC-safe)

A guide to route Claude Code traffic through Headroom for context compression while keeping Remote Control fully working, using mitmproxy instead of headroom wrap / ANTHROPIC_BASE_URL (which disables Remote Control).

Only the request paths Headroom actually has real handlers for (/v1/messages and friends) get routed to it; everything else on api.anthropic.com — session/worker bookkeeping, telemetry, oauth, MCP registry, and Remote Control's SSE event stream — goes straight to the real upstream, unconditionally. That keeps Remote Control's long-lived

@foxy82
foxy82 / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system