Skip to main content

tri cloud — Cloud Orchestration

Native Railway integration and Cloud Dev agent orchestration. Manages services, deployments, SSH sessions, and agent containers.

Subcommands

Infrastructure

CommandArgumentsDescription
tri cloud statusShow Railway services + SSH server status
tri cloud logs [service][service-name]Get deployment logs via GraphQL
tri cloud vars [service][service-name] or set K=V [id]List or set environment variables
tri cloud deploy [service][service-id]Trigger redeployment
tri cloud redeployManual redeploy
tri cloud restart [service][service-id]Restart service
tri cloud delete-service <id><service-id>Delete Railway service (DESTRUCTIVE)

SSH & Remote

CommandArgumentsDescription
tri cloud exec <command><command string>Run command via SSH
tri cloud pullPull latest code on Railway server
tri cloud ssh-statusQuick SSH server status (tmux, git, oracle)
tri cloud tmuxTmux session control

Agent Containers

CommandArgumentsDescription
tri cloud spawn <N><issue-number> [--account N]Spawn agent container for GitHub issue
tri cloud spawn-allSpawn agents for all agent:spawn labeled issues
tri cloud kill <N><issue-number>Kill agent container
tri cloud agentsList active agents (max 10)
tri cloud cleanupRemove finished containers
tri cloud syncReconcile Railway state with local
tri cloud history <N><issue-number>Event timeline for issue

Diagnostics & Metrics

CommandArgumentsDescription
tri cloud api-checkTest API key + model routing
tri cloud diagnoseDiagnose Railway issues
tri cloud metricsAggregate fitness metrics
tri cloud monitorLive monitoring dashboard
tri cloud metalMetal infrastructure status

Delegation

CommandArgumentsDescription
tri cloud farmDelegates to tri farm
tri cloud trainTraining-specific commands
tri cloud train-batchBatch training operations
tri cloud bridgeBridge protocol commands
tri cloud issue-createCreate GitHub issue

Examples

tri cloud status                   # Full service dashboard
tri cloud spawn 42 # Spawn agent for issue #42
tri cloud agents # List active agent containers
tri cloud logs hslm-train # Get training logs
tri cloud vars set LR=1e-4 abc123 # Set env var on service
tri cloud api-check # Verify API connectivity
tri cloud cleanup # Remove finished containers

Environment Variables

VariableRequiredDescription
RAILWAY_TOKENYesRailway API token
AGENT_GH_TOKENFor agentsGitHub PAT for agent operations

Handler

File: src/tri/tri_cloud.zig