Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

patch: default installer prompts to No (#2017)

Ali Khokhara2e9c47480ca
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index 2608e927..2526ed49 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -91,7 +91,7 @@ function Test-InteractiveInstaller {
function Read-YesNo {
param(
[string] $Prompt,
- [bool] $DefaultYes = $true
+ [bool] $DefaultYes = $false
)
while ($true) {
@@ -168,15 +168,14 @@ function Read-CodingAgentSelection {
param(
[string] $CommandName,
[string] $DisplayName,
- [string] $FccCommand,
- [bool] $DefaultYes = $true
+ [string] $FccCommand
)
if (Find-InstalledCodingAgent $CommandName) {
Write-Host "$DisplayName already installed; will verify."
return $true
}
- return Read-YesNo -Prompt "Install $DisplayName for ${FccCommand}?" -DefaultYes $DefaultYes
+ return Read-YesNo -Prompt "Install $DisplayName for ${FccCommand}?"
}
function Select-CodingAgents {
@@ -185,18 +184,12 @@ function Select-CodingAgents {
$script:InstallCodex = Read-CodingAgentSelection codex Codex fcc-codex
$script:InstallPi = Read-CodingAgentSelection pi Pi fcc-pi
$script:InstallOpenCode = Read-CodingAgentSelection opencode OpenCode fcc-opencode
- $script:InstallCline = Read-CodingAgentSelection cline "Cline CLI" fcc-cline `
- -DefaultYes $script:InstallCline
- $script:InstallHermes = Read-CodingAgentSelection hermes "Hermes Agent" fcc-hermes `
- -DefaultYes $script:InstallHermes
- $script:InstallDsh = Read-CodingAgentSelection dsh "DeepSeek Harness" fcc-dsh `
- -DefaultYes $script:InstallDsh
- $script:InstallGrok = Read-CodingAgentSelection grok "Grok Build" fcc-grok `
- -DefaultYes $script:InstallGrok
- $script:InstallMuse = Read-CodingAgentSelection muse "Muse Code" fcc-muse `
- -DefaultYes $script:InstallMuse
- $script:InstallAider = Read-CodingAgentSelection aider Aider fcc-aider `
- -DefaultYes $script:InstallAider
+ $script:InstallCline = Read-CodingAgentSelection cline "Cline CLI" fcc-cline
+ $script:InstallHermes = Read-CodingAgentSelection hermes "Hermes Agent" fcc-hermes
+ $script:InstallDsh = Read-CodingAgentSelection dsh "DeepSeek Harness" fcc-dsh
+ $script:InstallGrok = Read-CodingAgentSelection grok "Grok Build" fcc-grok
+ $script:InstallMuse = Read-CodingAgentSelection muse "Muse Code" fcc-muse
+ $script:InstallAider = Read-CodingAgentSelection aider Aider fcc-aider
if ($script:InstallClaudeCode -or $script:InstallCodex -or $script:InstallPi -or $script:InstallOpenCode -or $script:InstallCline -or $script:InstallHermes -or $script:InstallDsh -or $script:InstallGrok -or $script:InstallMuse -or $script:InstallAider) {
break
diff --git a/scripts/install.sh b/scripts/install.sh
index 0ffcec5c..1b8044b8 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -66,7 +66,7 @@ installer_is_interactive() {
prompt_yes_no() {
question=$1
- default_answer=${2:-yes}
+ default_answer=${2:-no}
case "$default_answer" in
yes) prompt='[Y/n]' ;;
no) prompt='[y/N]' ;;
@@ -129,7 +129,7 @@ select_coding_agent() {
printf '%s already installed; will verify.\n' "$2" >&4
return 0
fi
- prompt_yes_no "Install $2 for $3?" "${4:-yes}"
+ prompt_yes_no "Install $2 for $3?"
}
choose_coding_agents() {
@@ -160,67 +160,37 @@ choose_coding_agents() {
install_opencode=0
fi
- if [ "$install_cline" -eq 1 ]; then
- cline_default=yes
- else
- cline_default=no
- fi
- if select_coding_agent cline "Cline CLI" fcc-cline "$cline_default"; then
+ if select_coding_agent cline "Cline CLI" fcc-cline; then
install_cline=1
else
install_cline=0
fi
- if [ "$install_hermes" -eq 1 ]; then
- hermes_default=yes
- else
- hermes_default=no
- fi
- if select_coding_agent hermes "Hermes Agent" fcc-hermes "$hermes_default"; then
+ if select_coding_agent hermes "Hermes Agent" fcc-hermes; then
install_hermes=1
else
install_hermes=0
fi
- if [ "$install_dsh" -eq 1 ]; then
- dsh_default=yes
- else
- dsh_default=no
- fi
- if select_coding_agent dsh "DeepSeek Harness" fcc-dsh "$dsh_default"; then
+ if select_coding_agent dsh "DeepSeek Harness" fcc-dsh; then
install_dsh=1
else
install_dsh=0
fi
- if [ "$install_grok" -eq 1 ]; then
- grok_default=yes
- else
- grok_default=no
- fi
- if select_coding_agent grok "Grok Build" fcc-grok "$grok_default"; then
+ if select_coding_agent grok "Grok Build" fcc-grok; then
install_grok=1
else
install_grok=0
fi
- if [ "$install_muse" -eq 1 ]; then
- muse_default=yes
- else
- muse_default=no
- fi
- if select_coding_agent muse "Muse Code" fcc-muse "$muse_default"; then
+ if select_coding_agent muse "Muse Code" fcc-muse; then
install_muse=1
else
install_muse=0
fi
- if [ "$install_aider" -eq 1 ]; then
- aider_default=yes
- else
- aider_default=no
- fi
- if select_coding_agent aider Aider fcc-aider "$aider_default"; then
+ if select_coding_agent aider Aider fcc-aider; then
install_aider=1
else
install_aider=0
diff --git a/smoke/installers/test_installers.py b/smoke/installers/test_installers.py
index 98190b86..86f6a19c 100644
--- a/smoke/installers/test_installers.py
+++ b/smoke/installers/test_installers.py
@@ -681,7 +681,7 @@ def test_install_sh_asks_only_about_missing_harnesses(
posix_harness.add_rtk()
result = posix_harness.run_interactive(
- ("y\n" if install_codex else "n\n") + "n\n" * (7 if rtk else 8)
+ ("y\n" if install_codex else "\n") + "\n" * (7 if rtk else 8)
)
assert result.returncode == 0, result.stdout
@@ -1303,11 +1303,11 @@ def test_install_sh_stops_when_rtk_setup_fails(
_assert_uv_ready_without_fcc_install(posix_harness.calls())
-def test_install_sh_reprompts_then_installs_only_selected_agent(
+def test_install_sh_installs_then_updates_only_selected_agent(
posix_harness: PosixHarness,
) -> None:
(posix_harness.bin_dir / "opencode").unlink()
- result = posix_harness.run_interactive("n\n" * 11 + "y\n" + "n\n" * 9)
+ result = posix_harness.run_interactive("\n" * 11 + "y\n" + "\n" * 9)
assert result.returncode == 0, result.stdout
assert "Select at least one coding agent." in result.stdout
@@ -1318,9 +1318,22 @@ def test_install_sh_reprompts_then_installs_only_selected_agent(
assert "Run Cline with: fcc-cline" not in result.stdout
calls = posix_harness.calls()
assert "codex-install:1" in calls
- assert not any("claude.ai" in call for call in calls)
- assert not any("pi.dev" in call for call in calls)
+ assert not any(
+ f"{command}:--version" in calls
+ for command in CODING_AGENTS
+ if command != "codex"
+ )
assert not any("rtk-ai/rtk" in call for call in calls)
+ assert "[Y/n]" not in result.stdout
+
+ update = posix_harness.run_interactive("\n" * 10)
+
+ assert update.returncode == 0, update.stdout
+ assert "for fcc-codex?" not in update.stdout
+ update_calls = posix_harness.calls()[len(calls) :]
+ assert "codex:--version" in update_calls
+ assert not any(call.startswith("download:") for call in update_calls)
+ assert any("--refresh-package free-claude-code" in call for call in update_calls)
def test_install_sh_rejects_uninstalled_only_selection(
@@ -2699,7 +2712,7 @@ def test_install_ps1_asks_only_about_missing_harnesses(
powershell_harness.add_rtk()
result = powershell_harness.run_interactive(
- ["y" if install_codex else "n"] + ["n"] * (7 if rtk else 8)
+ ["y" if install_codex else ""] + [""] * (7 if rtk else 8)
)
assert result.returncode == 0, result.stderr
@@ -4295,14 +4308,44 @@ Invoke-DownloadedPowerShellInstaller `
assert "invalid installer reached execution" not in result.stderr
+def test_install_ps1_installs_then_updates_only_selected_agent(
+ powershell_harness: PowerShellHarness,
+) -> None:
+ (powershell_harness.bin_dir / "opencode.cmd").unlink()
+
+ result = powershell_harness.run_interactive([""] * 11 + ["y"] + [""] * 9)
+
+ assert result.returncode == 0, result.stderr
+ assert "Select at least one coding agent." in result.stdout
+ assert "Run Codex with: fcc-codex" in result.stdout
+ calls = powershell_harness.calls()
+ assert "codex-install:1" in calls
+ assert not any(
+ f"{command}:--version" in calls
+ for command in CODING_AGENTS
+ if command != "codex"
+ )
+ assert not any("rtk-ai/rtk" in call for call in calls)
+ assert "[Y/n]" not in result.stdout
+
+ update = powershell_harness.run_interactive([""] * 10)
+
+ assert update.returncode == 0, update.stderr
+ assert "for fcc-codex?" not in update.stdout
+ update_calls = powershell_harness.calls()[len(calls) :]
+ assert "codex:--version" in update_calls
+ assert not any(call.startswith("download:") for call in update_calls)
+ assert any("--refresh-package free-claude-code" in call for call in update_calls)
+
+
@pytest.mark.parametrize("powershell", _powershells())
@pytest.mark.parametrize(
("answers", "expected", "expected_messages"),
[
(
- ("", "", "", "", "", "", "", "", "", "", ""),
- "True,True,True,True,False,True,True,True,True,True,False",
- (),
+ ("",) * 11 + ("y",) + ("",) * 9,
+ "False,True,False,False,False,False,False,False,False,False,False",
+ ("Select at least one coding agent.",),
),
(
(