{
  "manifest_version": "1.0.0",
  "template": {
    "id": "640c12ae-cd9a-4dcd-8361-5b5397751cbe",
    "slug": "openclaw-ollama",
    "name": "OpenClaw with Ollama",
    "description": "Launch OpenClaw in minutes with open models powered by Ollama",
    "url": "https://railway.com/deploy/openclaw-ollama",
    "upstream": {
      "repo_url": "https://github.com/praveen-ks-2001/openclaw-railway"
    }
  },
  "services": [
    {
      "name": "ollama",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "openclaw",
      "source": {
        "repo": "https://github.com/praveen-ks-2001/openclaw-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "OLLAMA_HOST",
      "service": "ollama",
      "description": "Provide a value for OLLAMA_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "OLLAMA_ORIGINS",
      "service": "ollama",
      "description": "Provide a value for OLLAMA_ORIGINS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OLLAMA_DEFAULT_MODELS",
      "service": "ollama",
      "description": "Provide a value for OLLAMA_DEFAULT_MODELS.",
      "secret": false,
      "strategy": "default",
      "default": "llama3.2:1b"
    },
    {
      "key": "PORT",
      "service": "openclaw",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OLLAMA_BASE_URL",
      "service": "openclaw",
      "description": "Provide a value for OLLAMA_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "openclaw",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "OPENCLAW_VERSION",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "2026.5.20"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw",
      "description": "Provide a value for OPENCLAW_GATEWAY_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WRAPPER_ADMIN_PASSWORD",
      "service": "openclaw",
      "description": "Provide a value for WRAPPER_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openclaw-ollama"
      }
    },
    "cli": "railway deploy --template openclaw-ollama",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "640c12ae-cd9a-4dcd-8361-5b5397751cbe",
            "serializedConfig": {
              "services": {
                "2829c7cd-b2df-4dda-91d6-cbd6243fe86d": {
                  "icon": "https://djeqr6to3dedg.cloudfront.net/repo-logos/ollama/ollama/live/logo-1701412810306.png",
                  "name": "ollama",
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "defaultValue": "::"
                    },
                    "OLLAMA_ORIGINS": {
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:*"
                    },
                    "OLLAMA_DEFAULT_MODELS": {
                      "defaultValue": "llama3.2:1b"
                    }
                  },
                  "volumeMounts": {
                    "2829c7cd-b2df-4dda-91d6-cbd6243fe86d": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "441a253a-7664-4909-b149-713f96341b19": {
                  "icon": "https://openclaw.ai/favicon.svg",
                  "name": "openclaw",
                  "source": {
                    "repo": "praveen-ks-2001/openclaw-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "OLLAMA_BASE_URL": {
                      "defaultValue": "http://${{ollama.RAILWAY_PRIVATE_DOMAIN}}:11434"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "OPENCLAW_VERSION": {
                      "defaultValue": "2026.5.20"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "WRAPPER_ADMIN_PASSWORD": {
                      "defaultValue": "{{WRAPPER_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "441a253a-7664-4909-b149-713f96341b19": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T20:25:27.576Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_23877d7ee5724feab906",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 124,
    "typical_build_seconds": 51,
    "typical_start_seconds": 10,
    "slowest_service": "openclaw"
  }
}
