{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1680af3e-be9a-4ffa-bd61-3dfba71d7b68",
    "slug": "openclaw-secure-on-1",
    "name": "OpenClaw — Secure One-Click Setup",
    "description": "Secure OpenClaw with browser setup, persistent data, and one-click deploy.",
    "url": "https://railway.com/deploy/openclaw-secure-on-1",
    "upstream": {
      "repo_url": "https://github.com/Timboslice212/openclaw-railway-template"
    }
  },
  "services": [
    {
      "name": "OpenClaw",
      "source": {
        "repo": "https://github.com/Timboslice212/openclaw-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SETUP_PASSWORD",
      "service": "OpenClaw",
      "description": "Choose a strong password with at least 12 characters to unlock the secure setup dashboard. No username required.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "XDG_CACHE_HOME",
      "service": "OpenClaw",
      "description": "Persistent cache directory used by OpenClaw.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.cache"
    },
    {
      "key": "XDG_CONFIG_HOME",
      "service": "OpenClaw",
      "description": "Persistent configuration directory used by OpenClaw.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.config"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "OpenClaw",
      "description": "Persistent OpenClaw state and credentials directory.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENCLAW_VOLUME_ROOT",
      "service": "OpenClaw",
      "description": "Railway persistent volume mount root.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "OpenClaw",
      "description": "Persistent workspace for agents and user files.",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    },
    {
      "key": "OPENCLAW_INTERNAL_GATEWAY_HOST",
      "service": "OpenClaw",
      "description": "Private loopback host for the internal OpenClaw Gateway.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "OPENCLAW_INTERNAL_GATEWAY_PORT",
      "service": "OpenClaw",
      "description": "Private port for the internal OpenClaw Gateway.",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-secure-on-1"
      }
    },
    "cli": "railway deploy --template openclaw-secure-on-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1680af3e-be9a-4ffa-bd61-3dfba71d7b68",
            "serializedConfig": {
              "services": {
                "cc1324dc-2d71-421c-90b5-5179dfa2bf81": {
                  "name": "OpenClaw",
                  "deploy": {
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "repo": "Timboslice212/openclaw-railway-template"
                  },
                  "variables": {
                    "SETUP_PASSWORD": {
                      "description": "Choose a strong password with at least 12 characters to unlock the secure setup dashboard. No username required.",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "XDG_CACHE_HOME": {
                      "description": "Persistent cache directory used by OpenClaw.",
                      "defaultValue": "/data/.cache"
                    },
                    "XDG_CONFIG_HOME": {
                      "description": "Persistent configuration directory used by OpenClaw.",
                      "defaultValue": "/data/.config"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "description": "Persistent OpenClaw state and credentials directory.",
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENCLAW_VOLUME_ROOT": {
                      "description": "Railway persistent volume mount root.",
                      "defaultValue": "/data"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "description": "Persistent workspace for agents and user files.",
                      "defaultValue": "/data/workspace"
                    },
                    "OPENCLAW_INTERNAL_GATEWAY_HOST": {
                      "description": "Private loopback host for the internal OpenClaw Gateway.",
                      "defaultValue": "127.0.0.1"
                    },
                    "OPENCLAW_INTERNAL_GATEWAY_PORT": {
                      "description": "Private port for the internal OpenClaw Gateway.",
                      "defaultValue": "18789"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "cc1324dc-2d71-421c-90b5-5179dfa2bf81": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "OpenClaw",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T18:46:46.960Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T18:02:45.428Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f3696ad039a1478ea1f2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 222,
    "typical_build_seconds": 153,
    "typical_start_seconds": 51,
    "slowest_service": "OpenClaw"
  }
}
