{
  "manifest_version": "1.0.0",
  "template": {
    "id": "96e953fe-5691-45ea-8508-cd4b9190d722",
    "slug": "omni-route",
    "name": "OmniRoute",
    "description": "Open-source LLM gateway: routing, fallbacks, API keys, cost analytics",
    "url": "https://railway.com/deploy/omni-route",
    "upstream": {
      "image": "diegosouzapw/omniroute"
    }
  },
  "services": [
    {
      "name": "omniroute",
      "source": {
        "image": "diegosouzapw/omniroute"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "omniroute",
      "description": "Bind address for the serve path",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "omniroute",
      "description": "App listen port, matches domain target port",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "BASE_URL",
      "service": "omniroute",
      "description": "Canonical server-side public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "omniroute",
      "description": "SQLite, backups and logs directory",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "HOSTNAME",
      "service": "omniroute",
      "description": "Next.js bind address inside container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "omniroute",
      "description": "Production Next.js runtime",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "JWT_SECRET",
      "service": "omniroute",
      "description": "Signs dashboard session tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "omniroute",
      "description": "Encrypts stored gateway API keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MACHINE_ID_SALT",
      "service": "omniroute",
      "description": "Salt for derived machine identifiers",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "omniroute",
      "description": "Required to write to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REQUIRE_API_KEY",
      "service": "omniroute",
      "description": "Rejects unauthenticated /v1 requests",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "omniroute",
      "description": "Bootstrap dashboard login password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUTH_COOKIE_SECURE",
      "service": "omniroute",
      "description": "Secure cookie flag behind HTTPS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OMNIROUTE_MEMORY_MB",
      "service": "omniroute",
      "description": "Explicit V8 heap ceiling in MB",
      "secret": false,
      "strategy": "default",
      "default": "2048"
    },
    {
      "key": "ALLOW_API_KEY_REVEAL",
      "service": "omniroute",
      "description": "Keeps key values masked in dashboard",
      "secret": true,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "omniroute",
      "description": "Canonical browser-facing public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DISABLE_SQLITE_AUTO_BACKUP",
      "service": "omniroute",
      "description": "Keeps pre-migration DB backups on",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omni-route"
      }
    },
    "cli": "railway deploy --template omni-route",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "96e953fe-5691-45ea-8508-cd4b9190d722",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "569816cf-8825-47bd-a938-4e2b83c6517c": {
                  "icon": null,
                  "name": "omniroute",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "diegosouzapw/omniroute"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "description": "Bind address for the serve path",
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "App listen port, matches domain target port",
                      "defaultValue": "20128"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Canonical server-side public URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "SQLite, backups and logs directory",
                      "defaultValue": "/app/data"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Next.js bind address inside container",
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Production Next.js runtime",
                      "defaultValue": "production"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs dashboard session tokens",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "isOptional": false,
                      "description": "Encrypts stored gateway API keys",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "isOptional": false,
                      "description": "Salt for derived machine identifiers",
                      "defaultValue": "{{MACHINE_ID_SALT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Required to write to the volume",
                      "defaultValue": "0"
                    },
                    "REQUIRE_API_KEY": {
                      "isOptional": false,
                      "description": "Rejects unauthenticated /v1 requests",
                      "defaultValue": "true"
                    },
                    "INITIAL_PASSWORD": {
                      "isOptional": false,
                      "description": "Bootstrap dashboard login password",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "AUTH_COOKIE_SECURE": {
                      "isOptional": false,
                      "description": "Secure cookie flag behind HTTPS",
                      "defaultValue": "true"
                    },
                    "OMNIROUTE_MEMORY_MB": {
                      "isOptional": false,
                      "description": "Explicit V8 heap ceiling in MB",
                      "defaultValue": "2048"
                    },
                    "ALLOW_API_KEY_REVEAL": {
                      "isOptional": false,
                      "description": "Keeps key values masked in dashboard",
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "isOptional": false,
                      "description": "Canonical browser-facing public URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DISABLE_SQLITE_AUTO_BACKUP": {
                      "isOptional": false,
                      "description": "Keeps pre-migration DB backups on",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "569816cf-8825-47bd-a938-4e2b83c6517c": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T10:14:37.526Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T22:58:56.308Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_65c6fe388dfe4d52b99b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 111,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "omniroute"
  }
}
