diff --git a/setup.mjs b/setup.mjs
index ba9e27a..b446ac0 100755
--- a/setup.mjs
+++ b/setup.mjs
@@ -36,6 +36,8 @@ const DEFAULT_MODEL = opt("default-model", "opus"); // opus | sonnet | haiku
const DRY_RUN = flag("dry-run");
const SKIP_START = flag("no-start");
const PROVIDER_NAME = opt("provider-name", "claude-local");
+const BIND_ADDRESS = opt("bind", "127.0.0.1");
+const AUTH_MODE_CONFIG = opt("auth-mode", "none");
const MODEL_ID_MAP = {
opus: "claude-opus-4-6",
@@ -363,6 +365,10 @@ if (!DRY_RUN) {
CLAUDE_PROXY_PORT
${PORT}
+ CLAUDE_BIND
+ ${BIND_ADDRESS}
+ CLAUDE_AUTH_MODE
+ ${AUTH_MODE_CONFIG}
RunAtLoad
@@ -399,6 +405,8 @@ After=network.target
[Service]
ExecStart=${nodeBin} ${serverPath}
Environment=CLAUDE_PROXY_PORT=${PORT}
+Environment=CLAUDE_BIND=${BIND_ADDRESS}
+Environment=CLAUDE_AUTH_MODE=${AUTH_MODE_CONFIG}
Restart=always
RestartSec=5
StandardOutput=append:${logPath}