{
  "manifest_version": "1.0.0",
  "template": {
    "id": "433ec925-ca78-46a1-acf3-80351ed89bfe",
    "slug": "core-gateway",
    "name": "core-gateway",
    "description": "Deploy and host core-gateway ",
    "url": "https://railway.com/deploy/core-gateway",
    "upstream": {
      "image": "redplanethq/core-gateway:0.6.14"
    }
  },
  "services": [
    {
      "name": "core-gateway",
      "source": {
        "image": "redplanethq/core-gateway:0.6.14"
      },
      "needs_volume": true,
      "volume_mount_path": "/mnt/volume",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "GITHUB_TOKEN",
      "service": "core-gateway",
      "description": "Provide a value for GITHUB_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RESTART_POLICY",
      "service": "core-gateway",
      "description": "Provide a value for RESTART_POLICY.",
      "secret": false,
      "strategy": "default",
      "default": "unless"
    },
    {
      "key": "COREBRAIN_API_KEY",
      "service": "core-gateway",
      "description": "Provide a value for COREBRAIN_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COREBRAIN_API_URL",
      "service": "core-gateway",
      "description": "Provide a value for COREBRAIN_API_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://app.getcore.me"
    },
    {
      "key": "COREBRAIN_DEPLOY_MODE",
      "service": "core-gateway",
      "description": "Provide a value for COREBRAIN_DEPLOY_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "COREBRAIN_GATEWAY_NAME",
      "service": "core-gateway",
      "description": "Provide a value for COREBRAIN_GATEWAY_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "cloud-gateway"
    },
    {
      "key": "COREBRAIN_GATEWAY_HTTP_PORT",
      "service": "core-gateway",
      "description": "Provide a value for COREBRAIN_GATEWAY_HTTP_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "7787"
    },
    {
      "key": "COREBRAIN_GATEWAY_DESCRIPTION",
      "service": "core-gateway",
      "description": "Provide a value for COREBRAIN_GATEWAY_DESCRIPTION.",
      "secret": false,
      "strategy": "default",
      "default": "Cloud-hosted CoreBrain gateway"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "core-gateway"
      }
    },
    "cli": "railway deploy --template core-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "433ec925-ca78-46a1-acf3-80351ed89bfe",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5ae802bc-8631-4d69-a273-9412e543df67": {
                  "icon": null,
                  "name": "core-gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redplanethq/core-gateway:0.6.14"
                  },
                  "variables": {
                    "GITHUB_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{GITHUB_TOKEN}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "RESTART_POLICY": {
                      "isOptional": false,
                      "defaultValue": "unless"
                    },
                    "COREBRAIN_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{COREBRAIN_API_KEY}}"
                    },
                    "COREBRAIN_API_URL": {
                      "isOptional": false,
                      "defaultValue": "https://app.getcore.me"
                    },
                    "COREBRAIN_DEPLOY_MODE": {
                      "isOptional": false,
                      "defaultValue": "railway"
                    },
                    "COREBRAIN_GATEWAY_NAME": {
                      "isOptional": false,
                      "defaultValue": "cloud-gateway"
                    },
                    "CLAUDE_CODE_OAUTH_TOKEN": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "COREBRAIN_GATEWAY_HTTP_PORT": {
                      "isOptional": false,
                      "defaultValue": "7787"
                    },
                    "COREBRAIN_GATEWAY_DESCRIPTION": {
                      "isOptional": false,
                      "defaultValue": "Cloud-hosted CoreBrain gateway"
                    },
                    "COREBRAIN_GATEWAY_SECURITY_KEY": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    }
                  },
                  "volumeMounts": {
                    "5ae802bc-8631-4d69-a273-9412e543df67": {
                      "mountPath": "/mnt/volume"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T10:14:32.962Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-13T14:37:29.819Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_bcdf055d71494fcbb043",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 71,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "core-gateway"
  }
}
