{
  "manifest_version": "1.0.0",
  "template": {
    "id": "acbd6bf8-37cb-4156-899a-153f3027d01a",
    "slug": "openclaw-railway-template",
    "name": "OpenClaw - Railway Template",
    "description": "Graphical Setup + TUI Support + Pairing support (Aug 2026)",
    "url": "https://railway.com/deploy/openclaw-railway-template",
    "upstream": {
      "repo_url": "https://github.com/codetitlan/openclaw-railway-template"
    }
  },
  "services": [
    {
      "name": "OpenClaw Main",
      "source": {
        "repo": "https://github.com/codetitlan/openclaw-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "OpenClaw Main",
      "description": "Internal port where the gateway listens (proxied by the wrapper)",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "OpenClaw Main",
      "description": "Password for the setup (no username required)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "OpenClaw Main",
      "description": "Directory where clawdbot stores workspace files",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "INTERNAL_GATEWAY_HOST",
      "service": "OpenClaw Main",
      "description": "Path to the clawdbot configuration file",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "INTERNAL_GATEWAY_PORT",
      "service": "OpenClaw Main",
      "description": "Internal host for the gateway",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "OpenClaw Main",
      "description": "Token for the gateway. Set it to something secure (you need to paste this on the UI on first run)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "OpenClaw Main",
      "description": "Provide a value for OPENCLAW_WORKSPACE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-railway-template"
      }
    },
    "cli": "railway deploy --template openclaw-railway-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "acbd6bf8-37cb-4156-899a-153f3027d01a",
            "serializedConfig": {
              "services": {
                "7542e77f-2c6f-427c-b008-a58869489337": {
                  "icon": "https://devicons-sandbox.up.railway.app/i/moltbot.svg",
                  "name": "OpenClaw Main",
                  "source": {
                    "repo": "codetitlan/openclaw-railway-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Internal port where the gateway listens (proxied by the wrapper)",
                      "defaultValue": "8080"
                    },
                    "SETUP_PASSWORD": {
                      "description": "Password for the setup (no username required)",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "OPENCLAW_VERSION": {
                      "isOptional": true,
                      "description": "Tag of the openclaw release to install",
                      "defaultValue": ""
                    },
                    "OPENCLAW_STATE_DIR": {
                      "isOptional": true,
                      "description": "Directory where clawdbot stores workspace files",
                      "defaultValue": "/data/.openclaw"
                    },
                    "INTERNAL_GATEWAY_HOST": {
                      "isOptional": true,
                      "description": "Path to the clawdbot configuration file",
                      "defaultValue": "127.0.0.1"
                    },
                    "INTERNAL_GATEWAY_PORT": {
                      "isOptional": true,
                      "description": "Internal host for the gateway",
                      "defaultValue": "18789"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Token for the gateway. Set it to something secure (you need to paste this on the UI on first run)",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "/data/workspace"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "7542e77f-2c6f-427c-b008-a58869489337": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-14T22:14:43.073Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-13T22:03:24.228Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_26229630be25457bae61",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 110,
    "typical_build_seconds": 83,
    "typical_start_seconds": 10,
    "slowest_service": "OpenClaw Main"
  }
}
