feat: Add gemini on Atlantic.Net (#900)

Agent: gap-filler

Co-authored-by: B (Discovery Team) <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
A 2026-02-13 05:06:53 -08:00 committed by GitHub
parent 0d4bfdeb98
commit 3a86cecccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 55 additions and 1 deletions

View file

@ -18,6 +18,12 @@ bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/aider.sh)
#### OpenClaw
#### Gemini
```bash
bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/gemini.sh)
```
```bash
bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/openclaw.sh)
```

48
atlanticnet/gemini.sh Normal file
View file

@ -0,0 +1,48 @@
#!/bin/bash
set -eo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd)"
if [[ -n "$SCRIPT_DIR" && -f "$SCRIPT_DIR/lib/common.sh" ]]; then
source "$SCRIPT_DIR/lib/common.sh"
else
eval "$(curl -fsSL https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/atlanticnet/lib/common.sh)"
fi
log_info "Gemini CLI on Atlantic.Net Cloud"
echo ""
ensure_atlanticnet_credentials
ensure_ssh_key
SERVER_NAME=$(get_server_name)
create_server "${SERVER_NAME}"
log_step "Waiting for server to be ready..."
verify_server_connectivity "${ATLANTICNET_SERVER_IP}"
log_step "Installing Gemini CLI..."
run_server "${ATLANTICNET_SERVER_IP}" "npm install -g @google/gemini-cli"
echo ""
if [[ -n "${OPENROUTER_API_KEY:-}" ]]; then
log_info "Using OpenRouter API key from environment"
else
OPENROUTER_API_KEY=$(get_openrouter_api_key_oauth 5180)
fi
log_step "Setting up environment variables..."
run_server "${ATLANTICNET_SERVER_IP}" "cat >> ~/.bashrc << 'EOF'
export OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
export GEMINI_API_KEY=${OPENROUTER_API_KEY}
export OPENAI_API_KEY=${OPENROUTER_API_KEY}
export OPENAI_BASE_URL=https://openrouter.ai/api/v1
EOF"
echo ""
log_info "Server setup completed successfully!"
echo ""
log_step "Starting Gemini..."
sleep 1
clear
interactive_session "${ATLANTICNET_SERVER_IP}" "source ~/.bashrc && gemini"

View file

@ -1268,7 +1268,7 @@
"atlanticnet/goose": "missing",
"atlanticnet/codex": "missing",
"atlanticnet/interpreter": "missing",
"atlanticnet/gemini": "missing",
"atlanticnet/gemini": "implemented",
"atlanticnet/amazonq": "missing",
"atlanticnet/cline": "missing",
"atlanticnet/gptme": "missing",