From 7149fc8e4ef38f8721b06f4c045ca1d710894305 Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Fri, 13 Feb 2026 05:11:43 -0800 Subject: [PATCH] feat: Add plandex on Atlantic.Net (#907) * feat: Add plandex on Atlantic.Net Agent: gap-filler * fix: address review comments for atlanticnet/plandex - Use inject_env_vars_ssh instead of raw heredoc for env var injection - Fix source fallback guard to match established pattern - Add shellcheck source comment - Fix README ordering (Plandex after OpenClaw) - Add server details to success message Agent: pr-maintainer Co-Authored-By: Claude Opus 4.6 (1M context) --------- Co-authored-by: B (Discovery Team) <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) --- atlanticnet/README.md | 6 +++++ atlanticnet/plandex.sh | 58 ++++++++++++++++++++++++++++++++++++++++++ manifest.json | 2 +- 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 atlanticnet/plandex.sh diff --git a/atlanticnet/README.md b/atlanticnet/README.md index 02839670..839eef49 100644 --- a/atlanticnet/README.md +++ b/atlanticnet/README.md @@ -40,6 +40,12 @@ bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/gemini.sh) bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/opencode.sh) ``` +#### Plandex + +```bash +bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/plandex.sh) +``` + ## Non-Interactive Mode ```bash diff --git a/atlanticnet/plandex.sh b/atlanticnet/plandex.sh new file mode 100644 index 00000000..772cae69 --- /dev/null +++ b/atlanticnet/plandex.sh @@ -0,0 +1,58 @@ +#!/bin/bash +set -eo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd)" +# shellcheck source=atlanticnet/lib/common.sh +if [[ -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 "Plandex 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 Plandex..." +run_server "${ATLANTICNET_SERVER_IP}" "curl -sL https://plandex.ai/install.sh | bash" + +if ! run_server "${ATLANTICNET_SERVER_IP}" "command -v plandex &> /dev/null && plandex version &> /dev/null"; then + log_error "Plandex installation verification failed" + exit 1 +fi +log_info "Plandex installation verified successfully" + +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..." +inject_env_vars_ssh "${ATLANTICNET_SERVER_IP}" upload_file run_server \ + "OPENROUTER_API_KEY=${OPENROUTER_API_KEY}" + +echo "" +log_info "Atlantic.Net server setup completed successfully!" +log_info "Server: ${SERVER_NAME} (ID: ${ATLANTICNET_SERVER_ID}, IP: ${ATLANTICNET_SERVER_IP})" +echo "" + +if [[ -n "${SPAWN_PROMPT:-}" ]]; then + log_step "Executing Plandex with prompt..." + escaped_prompt=$(printf '%q' "${SPAWN_PROMPT}") + run_server "${ATLANTICNET_SERVER_IP}" "source ~/.bashrc && plandex new && plandex tell ${escaped_prompt}" +else + log_step "Starting Plandex..." + sleep 1 + clear + interactive_session "${ATLANTICNET_SERVER_IP}" "source ~/.bashrc && plandex" +fi diff --git a/manifest.json b/manifest.json index eed1340b..540a371d 100644 --- a/manifest.json +++ b/manifest.json @@ -1288,7 +1288,7 @@ "atlanticnet/cline": "missing", "atlanticnet/gptme": "missing", "atlanticnet/opencode": "implemented", - "atlanticnet/plandex": "missing", + "atlanticnet/plandex": "implemented", "atlanticnet/kilocode": "missing", "atlanticnet/continue": "missing", "hostkey/claude": "implemented",