spawn/gcore
A 5eeb4068c9
refactor: extract helper functions in discovery.sh and gcore/lib/common.sh (#1100)
- Extract watchdog monitoring logic from run_single_cycle() into _monitor_process() helper
- Extract gcore project loading, detection, and config saving into separate functions:
  - _load_gcore_project_from_config()
  - _auto_detect_gcore_project()
  - _save_gcore_project_to_config()
- Simplify ensure_gcore_project() by delegating to helper functions
- Reduces cyclomatic complexity and improves testability

Agent: complexity-hunter

Co-authored-by: Spawn Refactor Service <refactor@spawn.service>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 09:23:30 -05:00
..
lib refactor: extract helper functions in discovery.sh and gcore/lib/common.sh (#1100) 2026-02-14 09:23:30 -05:00
aider.sh feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00
claude.sh feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00
goose.sh feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00
README.md feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00

Gcore

Gcore Cloud instances via REST API. Gcore

Agents

Claude Code

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/claude.sh)

Aider

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/aider.sh)

Goose

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/goose.sh)

Non-Interactive Mode

GCORE_SERVER_NAME=dev-mk1 \
GCORE_API_TOKEN=your-token \
GCORE_PROJECT_ID=12345 \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/claude.sh)

Environment Variables

Variable Description Default
GCORE_API_TOKEN Gcore API token (prompted)
GCORE_PROJECT_ID Gcore project ID (auto-detected)
GCORE_SERVER_NAME Instance hostname (prompted)
GCORE_REGION Gcore region ed-1
GCORE_FLAVOR Instance flavor g1-standard-1-2
OPENROUTER_API_KEY OpenRouter API key (prompted/OAuth)