{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e209eaec-f2cf-498d-99cb-8711bdfd982e",
    "slug": "open-webui-4",
    "name": "Open WebUI",
    "description": "Open WebUI — ChatGPT-style UI for Ollama and OpenAI-compatible models",
    "url": "https://railway.com/deploy/open-webui-4",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-open-webui"
    }
  },
  "services": [
    {
      "name": "open-webui",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-open-webui"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "WEBUI_URL",
      "service": "open-webui",
      "description": "Public URL of this deployment. Auto-resolves to https://<railway-domain> so OAuth callbacks and CORS work out of the box. Override for custom domains (e.g., https://chat.example.com).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_MODELS",
      "service": "open-webui",
      "description": "Comma-separated list of model IDs shown in the chat picker. Default: 'gpt-4o' (OpenAI). Override with models from your configured provider — e.g., 'llama3.1:latest' for Railway Ollama, 'gpt-4o,claude-3-5-sonnet' for multi-provider.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "open-webui",
      "description": "Random placeholder string from Railway ${{secret(32)}} — replace with your real sk-... key (OpenAI / OpenRouter / Groq / Together AI / any OpenAI-compatible provider), or leave default and configure per-user keys in the admin UI later.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WEBUI_SECRET_KEY",
      "service": "open-webui",
      "description": "Cryptographic key used to sign session cookies and JWTs. Auto-generated by Railway at deploy time; do not edit unless you intentionally want to invalidate every active session.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENAI_API_BASE_URL",
      "service": "open-webui",
      "description": "Base URL for the OpenAI-compatible provider above. Default: 'https://api.openai.com/v1'. Override with 'http://ollama.railway.internal:11434/v1' (Railway Ollama), 'https://openrouter.ai/api/v1' (OpenRouter), etc.",
      "secret": false,
      "strategy": "default",
      "default": "https://api.openai.com/v1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "open-webui-4"
      }
    },
    "cli": "railway deploy --template open-webui-4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e209eaec-f2cf-498d-99cb-8711bdfd982e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "54e55cdd-de48-439a-9957-67a9324c0614": {
                  "icon": null,
                  "name": "open-webui",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-open-webui",
                    "rootDirectory": null
                  },
                  "variables": {
                    "WEBUI_URL": {
                      "description": "Public URL of this deployment. Auto-resolves to https://<railway-domain> so OAuth callbacks and CORS work out of the box. Override for custom domains (e.g., https://chat.example.com).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DEFAULT_MODELS": {
                      "isOptional": true,
                      "description": "Comma-separated list of model IDs shown in the chat picker. Default: 'gpt-4o' (OpenAI). Override with models from your configured provider — e.g., 'llama3.1:latest' for Railway Ollama, 'gpt-4o,claude-3-5-sonnet' for multi-provider.",
                      "defaultValue": "gpt-4o"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Random placeholder string from Railway ${{secret(32)}} — replace with your real sk-... key (OpenAI / OpenRouter / Groq / Together AI / any OpenAI-compatible provider), or leave default and configure per-user keys in the admin UI later.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "WEBUI_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Cryptographic key used to sign session cookies and JWTs. Auto-generated by Railway at deploy time; do not edit unless you intentionally want to invalidate every active session.",
                      "defaultValue": "{{WEBUI_SECRET_KEY}}"
                    },
                    "OPENAI_API_BASE_URL": {
                      "isOptional": true,
                      "description": "Base URL for the OpenAI-compatible provider above. Default: 'https://api.openai.com/v1'. Override with 'http://ollama.railway.internal:11434/v1' (Railway Ollama), 'https://openrouter.ai/api/v1' (OpenRouter), etc.",
                      "defaultValue": "https://api.openai.com/v1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "54e55cdd-de48-439a-9957-67a9324c0614": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T22:46:58.138Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2e8093fd634f4826b449",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 191,
    "typical_build_seconds": 133,
    "typical_start_seconds": 41,
    "slowest_service": "open-webui"
  }
}
