{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d0880c01-2cc5-462c-8b76-d84c1a203348",
    "slug": "openclaw",
    "name": "OpenClaw",
    "description": "[Homebrew support] The AI that actually does things",
    "url": "https://railway.com/deploy/openclaw",
    "upstream": {
      "repo_url": "https://github.com/arjunkomath/openclaw-railway-template"
    }
  },
  "services": [
    {
      "name": "OpenClaw",
      "source": {
        "repo": "https://github.com/arjunkomath/openclaw-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "OpenClaw",
      "description": "Default port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ENABLE_WEB_TUI",
      "service": "OpenClaw",
      "description": "Enable / Disable web based TUI",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "OpenClaw",
      "description": "Auto generated password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "OpenClaw",
      "description": "Run as root",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "OpenClaw",
      "description": "State directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "INTERNAL_GATEWAY_HOST",
      "service": "OpenClaw",
      "description": "Gateway host",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "INTERNAL_GATEWAY_PORT",
      "service": "OpenClaw",
      "description": "Gateway port",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "OpenClaw",
      "description": "Auto generated gateway token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "OpenClaw",
      "description": "Workspace directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw"
      }
    },
    "cli": "railway deploy --template openclaw",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d0880c01-2cc5-462c-8b76-d84c1a203348",
            "serializedConfig": {
              "services": {
                "e36d6c23-a695-4758-a8c8-b941bfcaec3d": {
                  "icon": "https://openclaw.ai/favicon.svg",
                  "name": "OpenClaw",
                  "source": {
                    "repo": "arjunkomath/openclaw-railway-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Default port",
                      "defaultValue": "8080"
                    },
                    "ENABLE_WEB_TUI": {
                      "description": "Enable / Disable web based TUI",
                      "defaultValue": "false"
                    },
                    "SETUP_PASSWORD": {
                      "description": "Auto generated password",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root",
                      "defaultValue": "0"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "description": "State directory",
                      "defaultValue": "/data/.openclaw"
                    },
                    "INTERNAL_GATEWAY_HOST": {
                      "description": "Gateway host",
                      "defaultValue": "127.0.0.1"
                    },
                    "INTERNAL_GATEWAY_PORT": {
                      "description": "Gateway port",
                      "defaultValue": "18789"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "description": "Auto generated gateway token",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "description": "Workspace directory",
                      "defaultValue": "/data/workspace"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e36d6c23-a695-4758-a8c8-b941bfcaec3d": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T22:14:37.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T19:20:54.959Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_079276c44912493b8d60",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 181,
    "typical_build_seconds": 86,
    "typical_start_seconds": 10,
    "slowest_service": "OpenClaw"
  }
}
