{
  "manifest_version": "1.0.0",
  "template": {
    "id": "23877be3-1e63-4a52-ade4-fa5f8ade2abd",
    "slug": "9router-v3",
    "name": "9Router V3",
    "description": "A self-hosted AI gateway: one endpoint, many providers, automatic fallback.",
    "url": "https://railway.com/deploy/9router-v3",
    "upstream": {
      "repo_url": "https://github.com/codestorm-official/9router-v3"
    }
  },
  "services": [
    {
      "name": "9router",
      "source": {
        "repo": "https://github.com/codestorm-official/9router-v3"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "9router",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "DATA_DIR",
      "service": "9router",
      "description": "Provide a value for DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "NODE_ENV",
      "service": "9router",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "CLOUD_URL",
      "service": "9router",
      "description": "Provide a value for CLOUD_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://9router.com"
    },
    {
      "key": "JWT_SECRET",
      "service": "9router",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INSTANCE_NAME",
      "service": "9router",
      "description": "Provide a value for INSTANCE_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "9router V3"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "9router",
      "description": "Provide a value for API_KEY_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MACHINE_ID_SALT",
      "service": "9router",
      "description": "Provide a value for MACHINE_ID_SALT.",
      "secret": false,
      "strategy": "default",
      "default": "endpoint-proxy-salt"
    },
    {
      "key": "REQUIRE_API_KEY",
      "service": "9router",
      "description": "Provide a value for REQUIRE_API_KEY.",
      "secret": true,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "9router",
      "description": "Provide a value for INITIAL_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUTH_COOKIE_SECURE",
      "service": "9router",
      "description": "Provide a value for AUTH_COOKIE_SECURE.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ENABLE_REQUEST_LOGS",
      "service": "9router",
      "description": "Provide a value for ENABLE_REQUEST_LOGS.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_CLOUD_URL",
      "service": "9router",
      "description": "Provide a value for NEXT_PUBLIC_CLOUD_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://9router.com"
    },
    {
      "key": "OBSERVABILITY_ENABLED",
      "service": "9router",
      "description": "Provide a value for OBSERVABILITY_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "9router-v3"
      }
    },
    "cli": "railway deploy --template 9router-v3",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "23877be3-1e63-4a52-ade4-fa5f8ade2abd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ce0001b8-b6be-4af8-82f2-c41659acd3ab": {
                  "icon": "https://raw.githubusercontent.com/codestorm-official/9router-v3/refs/heads/master/frontend/public/branding/9router-v3-logo.png",
                  "name": "9router",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/codestorm-official/9router-v3",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "20128"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "defaultValue": "/data"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "defaultValue": "production"
                    },
                    "CLOUD_URL": {
                      "isOptional": false,
                      "defaultValue": "https://9router.com"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "INSTANCE_NAME": {
                      "isOptional": false,
                      "defaultValue": "9router V3"
                    },
                    "API_KEY_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "isOptional": false,
                      "defaultValue": "endpoint-proxy-salt"
                    },
                    "REQUIRE_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "false"
                    },
                    "INITIAL_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "AUTH_COOKIE_SECURE": {
                      "isOptional": false,
                      "defaultValue": "false"
                    },
                    "ENABLE_REQUEST_LOGS": {
                      "isOptional": false,
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_CLOUD_URL": {
                      "isOptional": false,
                      "defaultValue": "https://9router.com"
                    },
                    "OBSERVABILITY_ENABLED": {
                      "isOptional": false,
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "ce0001b8-b6be-4af8-82f2-c41659acd3ab": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T02:37:38.986Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b1becc05a9214248a688",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 166,
    "typical_build_seconds": 71,
    "typical_start_seconds": 10,
    "slowest_service": "9router"
  }
}
