{
  "manifest_version": "1.0.0",
  "template": {
    "id": "87987e32-3ee7-4212-b009-66abbe515a00",
    "slug": "openclaw-on-nixos-or-just-updated-ai-age",
    "name": "OpenClaw on NixOS | (Just Updated) AI Agent That Installs Its Own Tools",
    "description": "Self-hosted AI agent on nix. Installs any tool at runtime. 1 GB RAM min.",
    "url": "https://railway.com/deploy/openclaw-on-nixos-or-just-updated-ai-age",
    "upstream": {
      "image": "ghcr.io/bon5co/openclaw-nixos-railway:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "openclaw",
      "source": {
        "image": "ghcr.io/bon5co/openclaw-nixos-railway:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "openclaw",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "openclaw",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OPENCLAW_GATEWAY_BIND",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_GATEWAY_BIND.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "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-on-nixos-or-just-updated-ai-age"
      }
    },
    "cli": "railway deploy --template openclaw-on-nixos-or-just-updated-ai-age",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "87987e32-3ee7-4212-b009-66abbe515a00",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9c804a84-1a29-4279-8ac7-dbe4da5cd117": {
                  "icon": null,
                  "name": "openclaw",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/openclaw-nixos-railway:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "{{PORT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "{{RAILWAY_RUN_UID}}"
                    },
                    "OPENCLAW_GATEWAY_BIND": {
                      "isOptional": false,
                      "defaultValue": "{{OPENCLAW_GATEWAY_BIND}}"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "9c804a84-1a29-4279-8ac7-dbe4da5cd117": {
                      "mountPath": "/home/node"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "openclaw",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T13:32:45.587Z",
  "generator_version": "0.1.0"
}
