{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0465687c-c6c8-4b6a-b15e-7447c1e7e747",
    "slug": "omnigent",
    "name": "Omnigent",
    "description": "Self-hosted AI agent meta-harness (Claude Code, Codex); admin seeded.",
    "url": "https://railway.com/deploy/omnigent",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/omnigent-railway:1.0.0"
    }
  },
  "services": [
    {
      "name": "db",
      "source": {
        "image": "postgres:18.2-alpine3.23"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "omnigent",
      "source": {
        "image": "ghcr.io/youssefsiam38/omnigent-railway:1.0.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_DB",
      "service": "db",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "omnigent"
    },
    {
      "key": "POSTGRES_USER",
      "service": "db",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "omnigent"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "db",
      "description": "PostgreSQL password, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "HOST",
      "service": "omnigent",
      "description": "Provide a value for HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "omnigent",
      "description": "Port Railway routes traffic and health checks to; keep it equal to the server's listen port (8000).",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "ARTIFACT_DIR",
      "service": "omnigent",
      "description": "Provide a value for ARTIFACT_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/artifacts"
    },
    {
      "key": "DATABASE_URL",
      "service": "omnigent",
      "description": "PostgreSQL connection string the server reads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OMNIGENT_AUTH_PROVIDER",
      "service": "omnigent",
      "description": "accounts is built-in multi-user auth; set oidc to use your own IdP.",
      "secret": false,
      "strategy": "default",
      "default": "accounts"
    },
    {
      "key": "OMNIGENT_ACCOUNTS_BASE_URL",
      "service": "omnigent",
      "description": "Public base URL for invite and magic links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OMNIGENT_ACCOUNTS_AUTO_OPEN",
      "service": "omnigent",
      "description": "0 keeps self-service registration invite-only; set 1 to open it.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "OMNIGENT_ACCOUNTS_COOKIE_SECRET",
      "service": "omnigent",
      "description": "Secret that signs session cookies, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OMNIGENT_ADMIN_CREDENTIALS_PATH",
      "service": "omnigent",
      "description": "Provide a value for OMNIGENT_ADMIN_CREDENTIALS_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "/data/admin-credentials"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "omnigent",
      "description": "The first start runs database migrations and seeds the admin.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "OMNIGENT_ACCOUNTS_INIT_ADMIN_PASSWORD",
      "service": "omnigent",
      "description": "The admin's password, generated. Copy it from here to sign in (username admin).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OMNIGENT_ACCOUNTS_INIT_ADMIN_USERNAME",
      "service": "omnigent",
      "description": "The admin username you sign in with.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omnigent"
      }
    },
    "cli": "railway deploy --template omnigent",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0465687c-c6c8-4b6a-b15e-7447c1e7e747",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "54c82f8a-4524-4057-ab80-55307e9079aa": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:18.2-alpine3.23"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "omnigent"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "omnigent"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password, generated.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "54c82f8a-4524-4057-ab80-55307e9079aa": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "c35d840b-a857-42fe-8681-6acff58d8c9b": {
                  "icon": null,
                  "name": "omnigent",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/omnigent-railway:1.0.0"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic and health checks to; keep it equal to the server's listen port (8000).",
                      "defaultValue": "8000"
                    },
                    "ARTIFACT_DIR": {
                      "isOptional": false,
                      "defaultValue": "/data/artifacts"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string the server reads.",
                      "defaultValue": "postgres://omnigent:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/omnigent"
                    },
                    "OMNIGENT_FEATURES": {
                      "isOptional": true,
                      "description": "Comma-separated release features to enable (see the Omnigent docs); empty is all off."
                    },
                    "OMNIGENT_AUTH_PROVIDER": {
                      "isOptional": false,
                      "description": "accounts is built-in multi-user auth; set oidc to use your own IdP.",
                      "defaultValue": "accounts"
                    },
                    "OMNIGENT_ACCOUNTS_BASE_URL": {
                      "isOptional": false,
                      "description": "Public base URL for invite and magic links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OMNIGENT_ACCOUNTS_AUTO_OPEN": {
                      "isOptional": false,
                      "description": "0 keeps self-service registration invite-only; set 1 to open it.",
                      "defaultValue": "0"
                    },
                    "OMNIGENT_ACCOUNTS_COOKIE_SECRET": {
                      "isOptional": false,
                      "description": "Secret that signs session cookies, generated.",
                      "defaultValue": "{{OMNIGENT_ACCOUNTS_COOKIE_SECRET}}"
                    },
                    "OMNIGENT_ADMIN_CREDENTIALS_PATH": {
                      "isOptional": false,
                      "defaultValue": "/data/admin-credentials"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "The first start runs database migrations and seeds the admin.",
                      "defaultValue": "300"
                    },
                    "OMNIGENT_ACCOUNTS_INIT_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "The admin's password, generated. Copy it from here to sign in (username admin).",
                      "defaultValue": "{{OMNIGENT_ACCOUNTS_INIT_ADMIN_PASSWORD}}"
                    },
                    "OMNIGENT_ACCOUNTS_INIT_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "The admin username you sign in with.",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "c35d840b-a857-42fe-8681-6acff58d8c9b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "omnigent",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T10:14:36.166Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-17T09:59:56.432Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_009c0a83cd614fdbbb2e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS"
      }
    ]
  }
}
