{
  "manifest_version": "1.0.0",
  "template": {
    "id": "721e2b59-15e1-42fd-bd0f-7e6258bbe62d",
    "slug": "orca-ade-w-relay",
    "name": "Orca ADE (w/ Relay)",
    "description": "Orca agent server + your own relay: Claude Code, Codex, Pi from any device",
    "url": "https://railway.com/deploy/orca-ade-w-relay",
    "upstream": {
      "image": "ghcr.io/hmseeb/orca-railway-relay:1.4.210"
    }
  },
  "services": [
    {
      "name": "relay",
      "source": {
        "image": "ghcr.io/hmseeb/orca-railway-relay:1.4.210"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "orca",
      "source": {
        "image": "ghcr.io/hmseeb/orca-railway:1.4.210"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "relay",
      "description": "Port the relay, sign-in and admin page listen on. Matches the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ORCA_URL",
      "service": "relay",
      "description": "Link from the relay admin to the Orca control page.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ORCA_PASSWORD",
      "service": "relay",
      "description": "Choose a password. It protects the Orca control page, the relay admin page, and signing computers in to the relay.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "orca",
      "description": "Port the control page and Orca proxy listen on. Matches the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "RELAY_URL",
      "service": "orca",
      "description": "Link from the control page to the relay admin.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ORCA_PASSWORD",
      "service": "orca",
      "description": "Shared with the relay service. Change it there.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "orca-ade-w-relay"
      }
    },
    "cli": "railway deploy --template orca-ade-w-relay",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "721e2b59-15e1-42fd-bd0f-7e6258bbe62d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "36e37aca-5666-4601-b334-879c5d07b95c": {
                  "icon": null,
                  "name": "relay",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/orca-railway-relay:1.4.210"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the relay, sign-in and admin page listen on. Matches the domain's target port.",
                      "defaultValue": "8080"
                    },
                    "ORCA_URL": {
                      "isOptional": false,
                      "description": "Link from the relay admin to the Orca control page.",
                      "defaultValue": "https://${{orca.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ORCA_PASSWORD": {
                      "isOptional": false,
                      "description": "Choose a password. It protects the Orca control page, the relay admin page, and signing computers in to the relay.",
                      "defaultValue": "{{ORCA_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "36e37aca-5666-4601-b334-879c5d07b95c": {
                      "mountPath": "/data"
                    }
                  }
                },
                "884f3630-bb88-450b-a5d4-fbdcdcb6829b": {
                  "icon": "https://raw.githubusercontent.com/stablyai/orca/98584332a31acc0c0d60115edf03486068a35987/resources/icon.png",
                  "name": "orca",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/control/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/orca-railway:1.4.210"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the control page and Orca proxy listen on. Matches the domain's target port.",
                      "defaultValue": "8080"
                    },
                    "GH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. GitHub token so gh and git push work right away. Leave empty to run gh auth login in an Orca terminal instead.",
                      "defaultValue": ""
                    },
                    "RELAY_URL": {
                      "isOptional": false,
                      "description": "Link from the control page to the relay admin.",
                      "defaultValue": "https://${{relay.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GIT_USER_NAME": {
                      "isOptional": true,
                      "description": "Optional. Name on commits made on this server, e.g. Ada Lovelace.",
                      "defaultValue": ""
                    },
                    "ORCA_PASSWORD": {
                      "isOptional": false,
                      "description": "Shared with the relay service. Change it there.",
                      "defaultValue": "${{relay.ORCA_PASSWORD}}"
                    },
                    "GIT_USER_EMAIL": {
                      "isOptional": true,
                      "description": "Optional. Email on commits made on this server.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "884f3630-bb88-450b-a5d4-fbdcdcb6829b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "relay",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T16:14:54.488Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-25T13:26:51.193Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_490ed47f18644b9ebb23",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "orca"
  }
}
