{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dae0a693-35c5-4368-8cac-4ae39a4d644b",
    "slug": "omniroute-latest",
    "name": "OmniRoute - Latest",
    "description": "Always up-to-date OmniRoute deployment with the latest release.",
    "url": "https://railway.com/deploy/omniroute-latest",
    "upstream": {
      "image": "redis:8.2.1"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "OmniRoute",
      "source": {
        "image": "diegosouzapw/omniroute:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname used to connect to Redis over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis server port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis username. The default Redis user is \"default\".",
      "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": "Redis password, referencing the generated REDIS_PASSWORD variable.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Automatically generated 32-character Redis password using letters only.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis externally through Railway's TCP proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "OmniRoute",
      "description": "Port the application listens on. Railway routes public traffic to this port.",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "BASE_URL",
      "service": "OmniRoute",
      "description": "Public URL where OmniRoute is accessible.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "OmniRoute",
      "description": "Directory used to store persistent application data.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "HOSTNAME",
      "service": "OmniRoute",
      "description": "Binds the application to all network interfaces so Railway can reach it.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "OmniRoute",
      "description": "Runs the Node.js application in production mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "CLOUD_URL",
      "service": "OmniRoute",
      "description": "URL of the 9Router cloud service.",
      "secret": false,
      "strategy": "default",
      "default": "https://9router.com"
    },
    {
      "key": "REDIS_URL",
      "service": "OmniRoute",
      "description": "Redis connection URL provided by the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JWT_SECRET",
      "service": "OmniRoute",
      "description": "Secret used to sign and verify JWT tokens.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MODELS_DEV",
      "service": "OmniRoute",
      "description": "Disables development model configuration.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "OmniRoute",
      "description": "Secret used to secure and validate API keys.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MACHINE_ID_SALT",
      "service": "OmniRoute",
      "description": "Salt used to generate a unique machine identifier.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "OmniRoute",
      "description": "Initial administrator password. Leave empty if the application provides another setup method.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "OmniRoute",
      "description": "Public base URL exposed to the frontend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PRICING_SYNC_ENABLED",
      "service": "OmniRoute",
      "description": "Enables automatic synchronization of model/provider pricing.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_CLOUD_URL",
      "service": "OmniRoute",
      "description": "Public OmniRoute cloud service URL used by the frontend.",
      "secret": false,
      "strategy": "default",
      "default": "https://omniroute.online/"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omniroute-latest"
      }
    },
    "cli": "railway deploy --template omniroute-latest",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dae0a693-35c5-4368-8cac-4ae39a4d644b",
            "serializedConfig": {
              "services": {
                "84186d35-b8ef-4541-b553-ff457d3b7cd5": {
                  "icon": "https://devicons.railway.com/i/redis.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.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "description": "Private hostname used to connect to Redis over Railway's private network.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "description": "Redis server port.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "description": "Redis username. The default Redis user is \"default\".",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "description": "Connection string for connecting to Redis using the private network.",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "description": "Redis password, referencing the generated REDIS_PASSWORD variable.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Automatically generated 32-character Redis password using letters only.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Connection string for connecting to Redis externally through Railway's TCP proxy.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:6379": {
                        "port": 6379
                      }
                    }
                  },
                  "volumeMounts": {
                    "84186d35-b8ef-4541-b553-ff457d3b7cd5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "eb3345d7-bfa1-4fb2-8862-7588178f8fe9": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/omniroute.svg",
                  "name": "OmniRoute",
                  "source": {
                    "image": "diegosouzapw/omniroute:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port the application listens on. Railway routes public traffic to this port.",
                      "defaultValue": "20128"
                    },
                    "BASE_URL": {
                      "description": "Public URL where OmniRoute is accessible.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "description": "Directory used to store persistent application data.",
                      "defaultValue": "/app/data"
                    },
                    "HOSTNAME": {
                      "description": "Binds the application to all network interfaces so Railway can reach it.",
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "description": "Runs the Node.js application in production mode.",
                      "defaultValue": "production"
                    },
                    "CLOUD_URL": {
                      "description": "URL of the 9Router cloud service.",
                      "defaultValue": "https://9router.com"
                    },
                    "REDIS_URL": {
                      "description": "Redis connection URL provided by the Redis service.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "JWT_SECRET": {
                      "description": "Secret used to sign and verify JWT tokens.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "MODELS_DEV": {
                      "description": "Disables development model configuration.",
                      "defaultValue": "false"
                    },
                    "API_KEY_SECRET": {
                      "description": "Secret used to secure and validate API keys.",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "description": "Salt used to generate a unique machine identifier.",
                      "defaultValue": "{{MACHINE_ID_SALT}}"
                    },
                    "INITIAL_PASSWORD": {
                      "description": "Initial administrator password. Leave empty if the application provides another setup method.",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "description": "Public base URL exposed to the frontend.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PRICING_SYNC_ENABLED": {
                      "description": "Enables automatic synchronization of model/provider pricing.",
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_CLOUD_URL": {
                      "description": "Public OmniRoute cloud service URL used by the frontend.",
                      "defaultValue": "https://omniroute.online/"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "eb3345d7-bfa1-4fb2-8862-7588178f8fe9": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T12:36:48.842Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f8bbe5ce4e8243eea66c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "OmniRoute"
  }
}
