{
  "manifest_version": "1.0.0",
  "template": {
    "id": "49baeb4b-fa55-4ac9-a6ce-8c24ae4a881c",
    "slug": "omniroute-llm-gateway",
    "name": "OmniRoute",
    "description": "OmniRoute [Oct'26] — one OpenAI-compatible endpoint, your provider keys",
    "url": "https://railway.com/deploy/omniroute-llm-gateway",
    "upstream": {
      "image": "diegosouzapw/omniroute:latest"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "OmniRoute",
      "source": {
        "image": "diegosouzapw/omniroute:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "OmniRoute",
      "description": "Must be pinned explicitly — Railway's own auto-injected PORT would otherwise mismatch the image's internal default.",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "BASE_URL",
      "service": "OmniRoute",
      "description": "Public URL of this service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "OmniRoute",
      "description": "Directory where OmniRoute stores its persistent data — matches the volume mount path.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "HOSTNAME",
      "service": "OmniRoute",
      "description": "Must bind to all interfaces, not just loopback, for Railway to route traffic to it.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "OmniRoute",
      "description": "Standard Node.js production mode flag.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "CLOUD_URL",
      "service": "OmniRoute",
      "description": "Upstream cloud sync endpoint used by the app's built-in cloud-sync feature.",
      "secret": false,
      "strategy": "default",
      "default": "https://9router.com"
    },
    {
      "key": "REDIS_URL",
      "service": "OmniRoute",
      "description": "Live reference to the Redis service's private connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JWT_SECRET",
      "service": "OmniRoute",
      "description": "Signs session/auth JWTs.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MODELS_DEV",
      "service": "OmniRoute",
      "description": "Disables the models.dev catalog sync by default (enable later from Settings → AI).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "OmniRoute",
      "description": "Secret used to sign/verify API keys generated inside OmniRoute.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MACHINE_ID_SALT",
      "service": "OmniRoute",
      "description": "Salts the internal machine-identity hash used for instance-level tracking.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "OmniRoute",
      "description": "Dashboard login password on first boot. You must set this before deploying.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "OmniRoute",
      "description": "Client-side copy of BASE_URL, exposed to the browser bundle.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PRICING_SYNC_ENABLED",
      "service": "OmniRoute",
      "description": "Keeps the model pricing catalog synced from upstream.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_CLOUD_URL",
      "service": "OmniRoute",
      "description": "Client-side cloud-sync/marketing URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://omniroute.online/"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omniroute-llm-gateway"
      }
    },
    "cli": "railway deploy --template omniroute-llm-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "49baeb4b-fa55-4ac9-a6ce-8c24ae4a881c",
            "serializedConfig": {
              "services": {
                "bfa55faf-c6b7-45f3-8d70-304e5423f963": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "bfa55faf-c6b7-45f3-8d70-304e5423f963": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "dbc836c9-8a46-4e7a-a554-0afe9d939424": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/omniroute.svg",
                  "name": "OmniRoute",
                  "source": {
                    "image": "diegosouzapw/omniroute:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Must be pinned explicitly — Railway's own auto-injected PORT would otherwise mismatch the image's internal default.",
                      "defaultValue": "20128"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of this service.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "Directory where OmniRoute stores its persistent data — matches the volume mount path.",
                      "defaultValue": "/app/data"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Must bind to all interfaces, not just loopback, for Railway to route traffic to it.",
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Standard Node.js production mode flag.",
                      "defaultValue": "production"
                    },
                    "CLOUD_URL": {
                      "isOptional": false,
                      "description": "Upstream cloud sync endpoint used by the app's built-in cloud-sync feature.",
                      "defaultValue": "https://9router.com"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Live reference to the Redis service's private connection string.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs session/auth JWTs.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "MODELS_DEV": {
                      "isOptional": false,
                      "description": "Disables the models.dev catalog sync by default (enable later from Settings → AI).",
                      "defaultValue": "false"
                    },
                    "API_KEY_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to sign/verify API keys generated inside OmniRoute.",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "isOptional": false,
                      "description": "Salts the internal machine-identity hash used for instance-level tracking.",
                      "defaultValue": "{{MACHINE_ID_SALT}}"
                    },
                    "INITIAL_PASSWORD": {
                      "isOptional": false,
                      "description": "Dashboard login password on first boot. You must set this before deploying.",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "isOptional": false,
                      "description": "Client-side copy of BASE_URL, exposed to the browser bundle.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PRICING_SYNC_ENABLED": {
                      "isOptional": false,
                      "description": "Keeps the model pricing catalog synced from upstream.",
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_CLOUD_URL": {
                      "isOptional": false,
                      "description": "Client-side cloud-sync/marketing URL.",
                      "defaultValue": "https://omniroute.online/"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "dbc836c9-8a46-4e7a-a554-0afe9d939424": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-04T10:15:06.650Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-04T09:06:29.298Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3920fbd4a7ef460b9829",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 28,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "OmniRoute"
  }
}
