mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-08 18:39:50 +00:00
- 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> |
||
|---|---|---|
| .. | ||
| lib | ||
| aider.sh | ||
| claude.sh | ||
| goose.sh | ||
| README.md | ||
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) |