diff --git a/packages/cli/package.json b/packages/cli/package.json index 0052dd59..066c5a8a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn", - "version": "0.25.28", + "version": "0.25.29", "type": "module", "bin": { "spawn": "cli.js" diff --git a/packages/cli/src/shared/agent-setup.ts b/packages/cli/src/shared/agent-setup.ts index e85710b8..8930b913 100644 --- a/packages/cli/src/shared/agent-setup.ts +++ b/packages/cli/src/shared/agent-setup.ts @@ -1030,7 +1030,11 @@ function createAgents(runner: CloudRunner): Record { installAgent( runner, "Hermes Agent", - "curl --proto '=https' -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --skip-setup", + // Force git to use HTTPS instead of SSH for GitHub URLs — pip dependencies + // using git+ssh:// timeout on cloud VMs where outbound SSH is blocked/slow. + 'git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" && ' + + 'git config --global url."https://github.com/".insteadOf "git@github.com:" && ' + + "curl --proto '=https' -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --skip-setup", 600, ), envVars: (apiKey) => [ @@ -1050,6 +1054,9 @@ function createAgents(runner: CloudRunner): Record { launchCmd: () => "source ~/.spawnrc 2>/dev/null; export PATH=$HOME/.local/bin:$HOME/.hermes/hermes-agent/venv/bin:$PATH; hermes", updateCmd: + // Same SSH→HTTPS rewrite for auto-update runs + 'git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" && ' + + 'git config --global url."https://github.com/".insteadOf "git@github.com:" && ' + "curl --proto '=https' -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --skip-setup", },