{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dd5ecd0d-2ec2-4a44-b45a-068c5051cb1e",
    "slug": "openclaw-ai-assistant",
    "name": "OpenClaw — Personal AI Assistant",
    "description": "Let your AI assistant handle the work, ready in just 1 click.",
    "url": "https://railway.com/deploy/openclaw-ai-assistant",
    "upstream": {
      "image": "ghcr.io/openclaw/openclaw:latest"
    }
  },
  "services": [
    {
      "name": "openclaw",
      "source": {
        "image": "ghcr.io/openclaw/openclaw:latest"
      },
      "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": "default",
      "default": "0"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_STATE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENCLAW_GATEWAY_PORT",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_GATEWAY_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_GATEWAY_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_WORKSPACE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    },
    {
      "key": "OPENCLAW_DISABLE_BONJOUR",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_DISABLE_BONJOUR.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-ai-assistant"
      }
    },
    "cli": "railway deploy --template openclaw-ai-assistant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dd5ecd0d-2ec2-4a44-b45a-068c5051cb1e",
            "serializedConfig": {
              "services": {
                "213d6902-2583-4c1a-9f6d-a06cc0b55739": {
                  "icon": "https://openclaw.ai/favicon.svg",
                  "name": "openclaw",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'openclaw config set gateway.mode local && openclaw config set gateway.controlUi.allowedOrigins \"[\\\"https://${RAILWAY_PUBLIC_DOMAIN}\\\"]\" && exec node dist/index.js gateway --bind lan --port 8080'"
                  },
                  "source": {
                    "image": "ghcr.io/openclaw/openclaw:latest"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENCLAW_GATEWAY_PORT": {
                      "defaultValue": "8080"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "defaultValue": "/data/workspace"
                    },
                    "OPENCLAW_DISABLE_BONJOUR": {
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "213d6902-2583-4c1a-9f6d-a06cc0b55739": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T18:44:41.888Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8564bfff3750441c821b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 107,
    "typical_build_seconds": 0,
    "typical_start_seconds": 42,
    "slowest_service": "openclaw"
  }
}
