{
  "manifest_version": "1.0.0",
  "template": {
    "id": "43515168-ad3b-43d9-9d51-69ab0c8133ad",
    "slug": "openclaw-private-agent",
    "name": "OpenClaw — Private AI Agent",
    "description": "Self-host OpenClaw: private AI agent for ~$1/month. No ChatGPT subscription",
    "url": "https://railway.com/deploy/openclaw-private-agent",
    "upstream": {
      "repo_url": "https://github.com/sahilrupani/openclaw-railway-template"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Openclaw",
      "source": {
        "repo": "https://github.com/sahilrupani/openclaw-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Openclaw",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ENABLE_WEB_TUI",
      "service": "Openclaw",
      "description": "Enable / Disable web based TUI",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "Openclaw",
      "description": "Password for the setup (no username required)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Openclaw",
      "description": "Run as root",
      "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": "INTERNAL_GATEWAY_HOST",
      "service": "Openclaw",
      "description": "Provide a value for INTERNAL_GATEWAY_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "INTERNAL_GATEWAY_PORT",
      "service": "Openclaw",
      "description": "Provide a value for INTERNAL_GATEWAY_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "Openclaw",
      "description": "Token for the gateway. Set it to something secure (you need to paste this on the UI on first run)",
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-private-agent"
      }
    },
    "cli": "railway deploy --template openclaw-private-agent",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "43515168-ad3b-43d9-9d51-69ab0c8133ad",
            "serializedConfig": {
              "services": {
                "89a9c06a-90d0-48e5-80f4-4c5778e0beaa": {
                  "icon": "https://d1dm0o5huagnd6.cloudfront.net/static/openclaw.jpeg",
                  "name": "Openclaw",
                  "source": {
                    "repo": "sahilrupani/openclaw-railway-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "ENABLE_WEB_TUI": {
                      "isOptional": false,
                      "description": "Enable / Disable web based TUI",
                      "defaultValue": "false"
                    },
                    "SETUP_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the setup (no username required)",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root",
                      "defaultValue": "0"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/data/.openclaw"
                    },
                    "INTERNAL_GATEWAY_HOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "127.0.0.1"
                    },
                    "INTERNAL_GATEWAY_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "18789"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Token for the gateway. Set it to something secure (you need to paste this on the UI on first run)",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/data/workspace"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "89a9c06a-90d0-48e5-80f4-4c5778e0beaa": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-07T17:54:24.783Z",
  "generator_version": "0.1.0"
}
