{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b3e0baf7-5845-4fd8-87e3-c15c5099adef",
    "slug": "openclaw-ai-agent-private-search",
    "name": "OpenClaw (AI Agent + Private Search)",
    "description": "OpenClaw AI agent + private SearXNG search. Token-protected, persistent.",
    "url": "https://railway.com/deploy/openclaw-ai-agent-private-search",
    "upstream": {
      "image": "ghcr.io/openclaw/openclaw:2026.7.1"
    }
  },
  "services": [
    {
      "name": "searxng",
      "source": {
        "repo": "https://github.com/niteshkumargupta/openclaw-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "openclaw",
      "source": {
        "image": "ghcr.io/openclaw/openclaw:2026.7.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SEARXNG_PORT",
      "service": "searxng",
      "description": "Listen port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SEARXNG_SECRET",
      "service": "searxng",
      "description": "Auto-generated SearXNG secret key (cookies/signatures).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SEARXNG_BASE_URL",
      "service": "searxng",
      "description": "SearXNG's own base URL on the private network. This service must never be public.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SEARXNG_BIND_ADDRESS",
      "service": "searxng",
      "description": "Bind on IPv6 so OpenClaw can reach it over Railway private networking.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "openclaw",
      "description": "Run as root so the non-root upstream image can write to the Railway volume at /data.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SEARXNG_BASE_URL",
      "service": "openclaw",
      "description": "Points the web-search plugin at the bundled private SearXNG service. Remove if you delete searxng.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENCLAW_LOG_LEVEL",
      "service": "openclaw",
      "description": "Log verbosity.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "openclaw",
      "description": "State directory on the persistent volume: config, keys, memory, channel sessions.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENCLAW_GATEWAY_PORT",
      "service": "openclaw",
      "description": "Port the gateway listens on (matches the service target port).",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw",
      "description": "Auto-generated admin token for the gateway + Control UI. Copy it from this Variables tab and paste it into the Control UI when prompted. Never remove it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "openclaw",
      "description": "Agent workspace directory on the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-ai-agent-private-search"
      }
    },
    "cli": "railway deploy --template openclaw-ai-agent-private-search",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b3e0baf7-5845-4fd8-87e3-c15c5099adef",
            "serializedConfig": {
              "services": {
                "be1a303d-68ec-4db0-b697-affcaaf0e4ab": {
                  "icon": "https://devicons.railway.com/i/searxng.svg",
                  "name": "searxng",
                  "source": {
                    "repo": "niteshkumargupta/openclaw-railway-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "SEARXNG_PORT": {
                      "description": "Listen port.",
                      "defaultValue": "8080"
                    },
                    "SEARXNG_SECRET": {
                      "description": "Auto-generated SearXNG secret key (cookies/signatures).",
                      "defaultValue": "{{SEARXNG_SECRET}}"
                    },
                    "SEARXNG_BASE_URL": {
                      "description": "SearXNG's own base URL on the private network. This service must never be public.",
                      "defaultValue": "http://${{ RAILWAY_PRIVATE_DOMAIN }}:8080/"
                    },
                    "SEARXNG_BIND_ADDRESS": {
                      "description": "Bind on IPv6 so OpenClaw can reach it over Railway private networking.",
                      "defaultValue": "::"
                    }
                  }
                },
                "d52f78c1-992a-4bd2-82fc-8d00cedb6c76": {
                  "icon": "https://devicons.railway.com/i/openclaw.svg",
                  "name": "openclaw",
                  "deploy": {
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/openclaw/openclaw:2026.7.1"
                  },
                  "variables": {
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: Google Gemini API key.",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: OpenAI API key.",
                      "defaultValue": ""
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so the non-root upstream image can write to the Railway volume at /data.",
                      "defaultValue": "0"
                    },
                    "SEARXNG_BASE_URL": {
                      "description": "Points the web-search plugin at the bundled private SearXNG service. Remove if you delete searxng.",
                      "defaultValue": "http://${{ searxng.RAILWAY_PRIVATE_DOMAIN }}:8080"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: Anthropic API key (recommended provider). You can also add providers later in the browser onboarding wizard.",
                      "defaultValue": ""
                    },
                    "OPENCLAW_LOG_LEVEL": {
                      "description": "Log verbosity.",
                      "defaultValue": "info"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "description": "State directory on the persistent volume: config, keys, memory, channel sessions.",
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: OpenRouter API key (one key, many models).",
                      "defaultValue": ""
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional: Telegram bot token from @BotFather. Channels can also be connected later via the Control UI.",
                      "defaultValue": ""
                    },
                    "OPENCLAW_GATEWAY_PORT": {
                      "description": "Port the gateway listens on (matches the service target port).",
                      "defaultValue": "8080"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "description": "Auto-generated admin token for the gateway + Control UI. Copy it from this Variables tab and paste it into the Control UI when prompted. Never remove it.",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "description": "Agent workspace directory on the persistent volume.",
                      "defaultValue": "/data/workspace"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "d52f78c1-992a-4bd2-82fc-8d00cedb6c76": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "openclaw",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T00:14:40.816Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_2bc25b84b1f44f438990",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,DEPLOYING"
      }
    ]
  }
}
