{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fbc7b072-c7e0-460c-8174-14d2375755fe",
    "slug": "railclaw-1",
    "name": "RailClaw",
    "description": "One-click OpenClaw deployment — persistent, containerized, just add keys.",
    "url": "https://railway.com/deploy/railclaw-1",
    "upstream": {
      "repo_url": "https://github.com/looselyorganized/railclaw"
    }
  },
  "services": [
    {
      "name": "railclaw",
      "source": {
        "repo": "https://github.com/looselyorganized/railclaw"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.openclaw",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "railclaw",
      "description": "Port the gateway listens on — must match OpenClaw's default (18789) ",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    },
    {
      "key": "ANTHROPIC_API_KEY ",
      "service": "railclaw",
      "description": "Powers the agent's conversational model (Claude). Get one at console.anthropic.com",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "railclaw",
      "description": "Random string to secure gateway API access.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "railclaw-1"
      }
    },
    "cli": "railway deploy --template railclaw-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fbc7b072-c7e0-460c-8174-14d2375755fe",
            "serializedConfig": {
              "services": {
                "e6446ecb-d9c6-4894-8c5c-76eb281d6c02": {
                  "icon": "https://raw.githubusercontent.com/looselyorganized/railclaw/main/assets/lorf-bot-walking.png",
                  "name": "railclaw",
                  "deploy": {
                    "healthcheckPath": "/health",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "looselyorganized/railclaw",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the gateway listens on — must match OpenClaw's default (18789) ",
                      "defaultValue": "18789"
                    },
                    "BRAVE_API_KEY": {
                      "isOptional": true,
                      "description": "Enables the web_search tool for live web results",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Alternative LLM provider for GPT models",
                      "defaultValue": ""
                    },
                    "OPENCLAW_MODEL ": {
                      "isOptional": true,
                      "description": "Default agent model (default: anthropic/claude-sonnet-4-6)",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY ": {
                      "isOptional": false,
                      "description": "Powers the agent's conversational model (Claude). Get one at console.anthropic.com",
                      "defaultValue": "{{ANTHROPIC_API_KEY }}"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Random string to secure gateway API access.",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:18789": {
                        "port": 18789
                      }
                    }
                  },
                  "volumeMounts": {
                    "e6446ecb-d9c6-4894-8c5c-76eb281d6c02": {
                      "mountPath": "/root/.openclaw"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "railclaw",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T15:31:26.369Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_511b28647966465f83b2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 217,
    "typical_build_seconds": 116,
    "typical_start_seconds": 51,
    "slowest_service": "railclaw"
  }
}
