From ecafc2c6c1470b03059703e9c8d48ad3ddbbd3ae Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 10 Jul 2026 11:20:27 +0200 Subject: [PATCH] Add Headroom Claude Code launcher --- .../rootfs/usr/local/bin/claude-headroom | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 claude_desktop/rootfs/usr/local/bin/claude-headroom diff --git a/claude_desktop/rootfs/usr/local/bin/claude-headroom b/claude_desktop/rootfs/usr/local/bin/claude-headroom new file mode 100644 index 0000000000..90a3c905ea --- /dev/null +++ b/claude_desktop/rootfs/usr/local/bin/claude-headroom @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -euo pipefail + +if ! command -v claude >/dev/null 2>&1; then + echo "Claude Code is not installed or is not on PATH." >&2 + exit 127 +fi + +if ! command -v headroom >/dev/null 2>&1; then + echo "Headroom is unavailable; starting Claude Code directly." >&2 + exec claude "$@" +fi + +# Headroom's supported Claude Code integration starts or reuses its local proxy, configures the +# required routing/MCP environment, and then launches Claude Code. RTK remains active through +# the persistent Claude Code PreToolUse hook configured at add-on startup. +exec headroom wrap claude -- "$@"