{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5462eb10-5d3d-4dd8-87a2-3703f91e121d",
    "slug": "omniroute-llm-gateway-compression",
    "name": "OmniRoute — LLM Gateway with Prompt Compression",
    "description": "Self-host OmniRoute — cut token costs, unify LLM providers",
    "url": "https://railway.com/deploy/omniroute-llm-gateway-compression",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-omniroute"
    }
  },
  "services": [
    {
      "name": "Omniroute",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-omniroute"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Omniroute",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "DATA_DIR",
      "service": "Omniroute",
      "description": "Provide a value for DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "JWT_SECRET",
      "service": "Omniroute",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "Omniroute",
      "description": "Provide a value for API_KEY_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "Omniroute",
      "description": "Provide a value for INITIAL_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "omniroute-llm-gateway-compression"
      }
    },
    "cli": "railway deploy --template omniroute-llm-gateway-compression",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5462eb10-5d3d-4dd8-87a2-3703f91e121d",
            "serializedConfig": {
              "services": {
                "ed0655bc-160d-4df7-9281-853cc9f6500b": {
                  "icon": "https://raw.githubusercontent.com/INAPP-Mobile/railway-omniroute/main/template-icon.svg",
                  "name": "Omniroute",
                  "source": {
                    "repo": "INAPP-Mobile/railway-omniroute",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "20128"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/app/data"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "INITIAL_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "ed0655bc-160d-4df7-9281-853cc9f6500b": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:01:31.341Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2a9638693f014cd9a21a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 166,
    "typical_build_seconds": 82,
    "typical_start_seconds": 30,
    "slowest_service": "Omniroute"
  }
}
