Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

Fixing headroom wrap claude

Tejas Choprab49144111d66
diff --git a/headroom/cli/wrap.py b/headroom/cli/wrap.py
index 9928d7df2..4dcf9938e 100644
--- a/headroom/cli/wrap.py
+++ b/headroom/cli/wrap.py
@@ -190,13 +190,13 @@ def claude(port: int, no_rtk: bool, no_proxy: bool, verbose: bool, claude_args:
# Step 3: Launch claude
click.echo()
click.echo(" Launching Claude Code (API routed through Headroom)...")
- click.echo(f" ANTHROPIC_API_URL=http://127.0.0.1:{port}")
+ click.echo(f" ANTHROPIC_BASE_URL=http://127.0.0.1:{port}")
if claude_args:
click.echo(f" Extra args: {' '.join(claude_args)}")
click.echo()
env = os.environ.copy()
- env["ANTHROPIC_API_URL"] = f"http://127.0.0.1:{port}"
+ env["ANTHROPIC_BASE_URL"] = f"http://127.0.0.1:{port}"
# Run claude — this blocks until claude exits
result = subprocess.run(
diff --git a/headroom/rtk/installer.py b/headroom/rtk/installer.py
index 977f6438a..cf2905175 100644
--- a/headroom/rtk/installer.py
+++ b/headroom/rtk/installer.py
@@ -149,7 +149,7 @@ def register_claude_hooks(rtk_path: Path | None = None) -> bool:
try:
result = subprocess.run(
- [str(rtk_path), "init", "--global"],
+ [str(rtk_path), "init", "--global", "--auto-patch"],
capture_output=True,
text=True,
timeout=10,