{
  "manifest_version": "1.0.0",
  "template": {
    "id": "abfc5b31-4512-4a7a-ad5a-c7f40c5528b9",
    "slug": "localai-or-just-updated-self-hosted-open",
    "name": "LocalAI | (Just Updated) Self-Hosted OpenAI API With The Model Baked In",
    "description": "OpenAI-compatible LLM API. Model and backend baked in, ready on first boot.",
    "url": "https://railway.com/deploy/localai-or-just-updated-self-hosted-open",
    "upstream": {
      "image": "ghcr.io/bon5co/localai-railway:v4.9.0"
    }
  },
  "services": [
    {
      "name": "localai",
      "source": {
        "image": "ghcr.io/bon5co/localai-railway:v4.9.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LOCALAI_API_KEY",
      "service": "localai",
      "description": "Provide a value for LOCALAI_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "localai-or-just-updated-self-hosted-open"
      }
    },
    "cli": "railway deploy --template localai-or-just-updated-self-hosted-open",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "abfc5b31-4512-4a7a-ad5a-c7f40c5528b9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ac71ac59-c64d-4429-bd9c-22bb1e8190be": {
                  "icon": null,
                  "name": "localai",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/localai-railway:v4.9.0"
                  },
                  "variables": {
                    "LOCALAI_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{LOCALAI_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "ac71ac59-c64d-4429-bd9c-22bb1e8190be": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "localai",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T20:23:15.691Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e760ef39fad94e458249",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 108,
    "typical_build_seconds": 0,
    "typical_start_seconds": 48,
    "slowest_service": "localai"
  }
}
