From 068ea2fb06f1f987366ea128f06939b666d95abe Mon Sep 17 00:00:00 2001 From: Colin L Date: Wed, 29 Apr 2026 19:33:13 -0700 Subject: [PATCH] feat: add macOS launchd agent sample for autostart Off-by-default sample launchd plist for users who want the proxy to start at login and stay up automatically. Placeholder REPO_ROOT must be substituted with the user's clone path before loading. Install instructions are in the plist's leading XML comment. User-level LaunchAgent (~/Library/LaunchAgents) rather than a LaunchDaemon, so it doesn't require sudo and dies cleanly at logout. Co-Authored-By: Claude Opus 4.7 (1M context) --- contrib/claude-code-proxy.plist.example | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 contrib/claude-code-proxy.plist.example diff --git a/contrib/claude-code-proxy.plist.example b/contrib/claude-code-proxy.plist.example new file mode 100644 index 00000000..908309ae --- /dev/null +++ b/contrib/claude-code-proxy.plist.example @@ -0,0 +1,49 @@ + + + + + + Label + com.user.claude-code-proxy + + ProgramArguments + + REPO_ROOT/.venv/bin/python + REPO_ROOT/start_proxy.py + + + WorkingDirectory + REPO_ROOT + + RunAtLoad + + + KeepAlive + + + StandardOutPath + /tmp/claude-code-proxy.log + + StandardErrorPath + /tmp/claude-code-proxy.log + +