{
  "manifest_version": "1.0.0",
  "template": {
    "id": "464f9494-6345-411d-9ceb-2941a46a22d5",
    "slug": "openclaw-ai",
    "name": "OpenClaw",
    "description": "The personal AI assistant that really does things.",
    "url": "https://railway.com/deploy/openclaw-ai",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/openclaw-railway"
    }
  },
  "services": [
    {
      "name": "openclaw",
      "source": {
        "repo": "https://github.com/gridalpha/openclaw-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HOME",
      "service": "openclaw",
      "description": "Home directory for the runtime user",
      "secret": false,
      "strategy": "default",
      "default": "/home/node"
    },
    {
      "key": "PORT",
      "service": "openclaw",
      "description": "Public port Caddy listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OPENCLAW_HOME",
      "service": "openclaw",
      "description": "OpenClaw home directory",
      "secret": false,
      "strategy": "default",
      "default": "/home/node"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "openclaw",
      "description": "Persisted config, auth, sessions",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENCLAW_GATEWAY_PORT",
      "service": "openclaw",
      "description": "Internal gateway port behind Caddy",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw",
      "description": "Admin secret protecting the gateway",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "openclaw",
      "description": "Persisted assistant workspace",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "openclaw",
      "description": "Path to the build Dockerfile",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "OPENCLAW_DISABLE_BONJOUR",
      "service": "openclaw",
      "description": "Disable mDNS, unused on Railway",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "OPENCLAW_AUTH_PROFILE_SECRET_DIR",
      "service": "openclaw",
      "description": "Persisted channel auth keys",
      "secret": true,
      "strategy": "default",
      "default": "/data/.openclaw-auth-secrets"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "openclaw",
      "description": "Graceful shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "10"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-ai"
      }
    },
    "cli": "railway deploy --template openclaw-ai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "464f9494-6345-411d-9ceb-2941a46a22d5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "79ca4821-b729-4eec-8d11-108f7637d92f": {
                  "icon": "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@latest/icons/openclaw-color.svg",
                  "name": "openclaw",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/startupz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/openclaw-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "HOME": {
                      "isOptional": false,
                      "description": "Home directory for the runtime user",
                      "defaultValue": "/home/node"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Public port Caddy listens on",
                      "defaultValue": "8080"
                    },
                    "OPENCLAW_HOME": {
                      "isOptional": false,
                      "description": "OpenClaw home directory",
                      "defaultValue": "/home/node"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "isOptional": false,
                      "description": "Persisted config, auth, sessions",
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENCLAW_GATEWAY_PORT": {
                      "isOptional": false,
                      "description": "Internal gateway port behind Caddy",
                      "defaultValue": "8081"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Admin secret protecting the gateway",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "isOptional": false,
                      "description": "Persisted assistant workspace",
                      "defaultValue": "/data/workspace"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to the build Dockerfile",
                      "defaultValue": "Dockerfile"
                    },
                    "OPENCLAW_DISABLE_BONJOUR": {
                      "isOptional": false,
                      "description": "Disable mDNS, unused on Railway",
                      "defaultValue": "1"
                    },
                    "OPENCLAW_AUTH_PROFILE_SECRET_DIR": {
                      "isOptional": false,
                      "description": "Persisted channel auth keys",
                      "defaultValue": "/data/.openclaw-auth-secrets"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown window",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "79ca4821-b729-4eec-8d11-108f7637d92f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "openclaw",
      "method": "GET",
      "path": "/startupz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T16:49:42.469Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_b86e830a0512428ab331",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
