{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6dbf0952-b004-4685-91af-13b10e20398c",
    "slug": "openclaw-or-just-updated-personal-ai-age",
    "name": "OpenClaw | (Just Updated) Personal AI Agent Gateway, Token Set, Data Survives Redeploys",
    "description": "Personal AI agent gateway. Token preset, proxy-ready, data on a volume.",
    "url": "https://railway.com/deploy/openclaw-or-just-updated-personal-ai-age",
    "upstream": {
      "image": "ghcr.io/openclaw/openclaw:2026.10.1@sha256:9001e8a880d6ca028b590932b83b9335a26225e86c2a8a7aa9af7c59d6842953"
    }
  },
  "services": [
    {
      "name": "openclaw",
      "source": {
        "image": "ghcr.io/openclaw/openclaw:2026.10.1@sha256:9001e8a880d6ca028b590932b83b9335a26225e86c2a8a7aa9af7c59d6842953"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_RUN_UID",
      "service": "openclaw",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_GATEWAY_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-or-just-updated-personal-ai-age"
      }
    },
    "cli": "railway deploy --template openclaw-or-just-updated-personal-ai-age",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6dbf0952-b004-4685-91af-13b10e20398c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c611b304-3888-41ef-8e21-8503d47923ce": {
                  "icon": null,
                  "name": "openclaw",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export HOME=/data OPENCLAW_STATE_DIR=/data/.openclaw OPENCLAW_DISABLE_BONJOUR=1 NODE_OPTIONS=--max-old-space-size=1536; mkdir -p \"$OPENCLAW_STATE_DIR\"; if [ ! -f \"$OPENCLAW_STATE_DIR/openclaw.json\" ]; then (cd /app; node openclaw.mjs config set gateway.trustedProxies \"[\\\"100.64.0.0/10\\\"]\" --strict-json; node openclaw.mjs config set gateway.controlUi.allowedOrigins \"[\\\"https://$RAILWAY_PUBLIC_DOMAIN\\\"]\" --strict-json) || echo \"[railway] config seed failed\"; fi; echo \"[railway] uid=$(id -u) owner=$(stat -c %u:%g /data) writable=$(test -w /data && echo yes || echo NO) port=${PORT:-8080}\"; exec tini -s -- node /app/docker-entrypoint.mjs node openclaw.mjs gateway --allow-unconfigured --bind lan --port ${PORT:-8080}'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/openclaw/openclaw:2026.10.1@sha256:9001e8a880d6ca028b590932b83b9335a26225e86c2a8a7aa9af7c59d6842953"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "{{RAILWAY_RUN_UID}}"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "c611b304-3888-41ef-8e21-8503d47923ce": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "openclaw",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-12T04:14:37.344Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-12T01:38:55.873Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4a7eab1bb7f74efd9b3f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 0,
    "typical_start_seconds": 81,
    "slowest_service": "openclaw"
  }
}
