Skip to content

Commit 8eb36b5

Browse files
Grace Bradleyclaude
authored andcommitted
fix(macos): remove OpenCode auth wall, bind to localhost only
Match Windows/Linux behavior: no OPENCODE_SERVER_PASSWORD, bind to 127.0.0.1 instead of 0.0.0.0. Local-only service needs no auth. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e21cb2a commit 8eb36b5

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

dream-server/installers/macos/install-macos.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -672,12 +672,6 @@ OPENCODE_EOF
672672
ai_ok "OpenCode config already exists"
673673
fi
674674

675-
# Read OPENCODE_SERVER_PASSWORD from .env
676-
OPENCODE_SERVER_PASSWORD=""
677-
if [[ -f "$INSTALL_DIR/.env" ]]; then
678-
OPENCODE_SERVER_PASSWORD=$(grep -m1 '^OPENCODE_SERVER_PASSWORD=' "$INSTALL_DIR/.env" | cut -d= -f2- || true)
679-
fi
680-
681675
# Install as macOS LaunchAgent (auto-start on login)
682676
mkdir -p "$HOME/Library/LaunchAgents"
683677
cat > "$OPENCODE_PLIST" <<PLIST_EOF
@@ -694,7 +688,7 @@ OPENCODE_EOF
694688
<string>--port</string>
695689
<string>3003</string>
696690
<string>--hostname</string>
697-
<string>0.0.0.0</string>
691+
<string>127.0.0.1</string>
698692
</array>
699693
<key>WorkingDirectory</key>
700694
<string>${HOME}</string>
@@ -704,8 +698,6 @@ OPENCODE_EOF
704698
<string>${HOME}</string>
705699
<key>PATH</key>
706700
<string>${HOME}/.opencode/bin:/usr/local/bin:/usr/bin:/bin</string>
707-
<key>OPENCODE_SERVER_PASSWORD</key>
708-
<string>${OPENCODE_SERVER_PASSWORD}</string>
709701
</dict>
710702
<key>RunAtLoad</key>
711703
<true/>

dream-server/installers/macos/lib/env-generator.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ generate_dream_env() {
5858
openclaw_token=$(new_secure_hex 24)
5959
local searxng_secret
6060
searxng_secret=$(new_secure_hex 32)
61-
local opencode_password
62-
opencode_password=$(new_secure_base64 16)
63-
6461
# macOS: llama-server runs natively, containers reach it via host.docker.internal
6562
local llm_api_url="http://host.docker.internal:8080"
6663

@@ -115,7 +112,7 @@ OPENCLAW_TOKEN=${openclaw_token}
115112
116113
#=== OpenCode Settings ===
117114
OPENCODE_PORT=3003
118-
OPENCODE_SERVER_PASSWORD=${opencode_password}
115+
OPENCODE_SERVER_PASSWORD=
119116
120117
#=== Voice Settings ===
121118
WHISPER_MODEL=base

0 commit comments

Comments
 (0)