diff --git a/installations/opencode-cli/opencode.exe b/installations/opencode-cli/opencode.exe index 74dd869..3c6f2c7 100644 Binary files a/installations/opencode-cli/opencode.exe and b/installations/opencode-cli/opencode.exe differ diff --git a/setup-opencode-config.bat b/setup-opencode-config.bat index ebef2a6..7192eef 100644 --- a/setup-opencode-config.bat +++ b/setup-opencode-config.bat @@ -17,6 +17,8 @@ if not exist "%OPENCODE_DIR%" ( if exist "%SOURCE_CONFIG%" ( echo [2/2] Copying opencode.json to %OPENCODE_DIR%... + echo Source: %SOURCE_CONFIG% + echo Target: %OPENCODE_DIR%\opencode.json copy /Y "%SOURCE_CONFIG%" "%OPENCODE_DIR%\opencode.json" echo. echo ======================================== @@ -24,9 +26,12 @@ if exist "%SOURCE_CONFIG%" ( echo ======================================== echo. echo Configuration copied successfully! +echo Note: Existing config file has been overwritten. echo. echo [Additional Setup] Setting environment for offline mode... +setx OPENCODE_OFFLINE 1 >nul setx OPENCODE_DISABLE_MODELS_FETCH 1 >nul +set OPENCODE_OFFLINE=1 set OPENCODE_DISABLE_MODELS_FETCH=1 echo. echo [Additional Setup] Adding opencode to PATH... @@ -37,8 +42,8 @@ echo ======================================== echo Offline Mode Enabled! echo ======================================== echo. -echo Environment variable set: OPENCODE_DISABLE_MODELS_FETCH=1 -echo This disables automatic model fetching for offline use. +echo Environment variable set: OPENCODE_OFFLINE=1 +echo This hides OpenCode Zen models and uses local model only. echo. echo Your local model will be used automatically. echo. diff --git a/setup-opencode-config.sh b/setup-opencode-config.sh index 21321d9..271b09b 100644 --- a/setup-opencode-config.sh +++ b/setup-opencode-config.sh @@ -22,7 +22,16 @@ else fi echo "" +echo "Setting environment for offline mode..." +export OPENCODE_OFFLINE=1 +echo "export OPENCODE_OFFLINE=1" >> ~/.bashrc +echo "Environment variable set: OPENCODE_OFFLINE=1" +echo "" +echo "========================================" +echo " Offline Mode Enabled!" +echo "========================================" +echo "" +echo "This hides OpenCode Zen models and uses local model only." echo "OpenCode is ready to use with local model!" echo "" -echo "Note: Make sure your local model service (e.g., Ollama/vLLM) is running." -echo "" \ No newline at end of file +echo "Note: Make sure your local model service (e.g., vLLM) is running." \ No newline at end of file