{
  "manifest_version": "1.0.0",
  "template": {
    "id": "403314d2-888b-43cc-808e-da38847ec6df",
    "slug": "openclaw-fmr-moltbot-clawdbot-railway-te",
    "name": "OpenClaw (Fmr. Moltbot, Clawdbot) - Railway Template",
    "description": "Deploy and Host OpenClaw on Railway",
    "url": "https://railway.com/deploy/openclaw-fmr-moltbot-clawdbot-railway-te",
    "upstream": {
      "repo_url": "https://github.com/clawzero/openclaw-railway-template"
    }
  },
  "services": [
    {
      "name": "openclaw-railway-template",
      "source": {
        "repo": "https://github.com/clawzero/openclaw-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "openclaw-railway-template",
      "description": "Internal port where the gateway listens (proxied by the wrapper)",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OPENCLAW_ENTRY",
      "service": "openclaw-railway-template",
      "description": "/openclaw/dist/entry.js",
      "secret": false,
      "strategy": "default",
      "default": "/openclaw/dist/entry.js"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "openclaw-railway-template",
      "description": "Password for the setup and wrapper",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "openclaw-railway-template",
      "description": "Provide a value for OPENCLAW_STATE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "INTERNAL_GATEWAY_HOST",
      "service": "openclaw-railway-template",
      "description": "Path to the clawdbot configuration file",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "INTERNAL_GATEWAY_PORT",
      "service": "openclaw-railway-template",
      "description": "Internal host for the gateway",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw-railway-template",
      "description": "Token for the gateway and passed by the wrapper",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "openclaw-railway-template",
      "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-fmr-moltbot-clawdbot-railway-te"
      }
    },
    "cli": "railway deploy --template openclaw-fmr-moltbot-clawdbot-railway-te",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "403314d2-888b-43cc-808e-da38847ec6df",
            "serializedConfig": {
              "services": {
                "a5e86adc-f407-46af-9bab-c7726c03256a": {
                  "name": "openclaw-railway-template",
                  "source": {
                    "repo": "clawzero/openclaw-railway-template",
                    "branch": null,
                    "rootDirectory": ""
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Internal port where the gateway listens (proxied by the wrapper)",
                      "defaultValue": "8080"
                    },
                    "OPENCLAW_ENTRY": {
                      "isOptional": true,
                      "description": "/openclaw/dist/entry.js",
                      "defaultValue": "/openclaw/dist/entry.js"
                    },
                    "SETUP_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the setup and wrapper",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "isOptional": true,
                      "description": "",
                      "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": true,
                      "description": "Token for the gateway and passed by the wrapper",
                      "defaultValue": "${{ secret () }}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "/data/workspace"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a5e86adc-f407-46af-9bab-c7726c03256a": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T21:05:40.841Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_3268031a17274ba49d83",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
