{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9482d9c0-08f3-4c7e-9f70-bef145a4b8c6",
    "slug": "9router-openrouter-alternative",
    "name": "9Router — Self-Hosted OpenRouter Alternative",
    "description": "Zero-markup OpenRouter alternative — self-host 60+ LLM providers",
    "url": "https://railway.com/deploy/9router-openrouter-alternative",
    "upstream": {
      "image": "decolua/9router:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "9Router",
      "source": {
        "image": "decolua/9router:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/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": "/app/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": "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": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "9Router",
      "description": "Provide a value for INITIAL_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "9Router",
      "description": "Provide a value for NEXT_PUBLIC_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "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-openrouter-alternative"
      }
    },
    "cli": "railway deploy --template 9router-openrouter-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9482d9c0-08f3-4c7e-9f70-bef145a4b8c6",
            "serializedConfig": {
              "services": {
                "902faadd-12e5-470a-ab71-8e4676bb2b82": {
                  "icon": "https://raw.githubusercontent.com/codestorm-official/9router-v3/refs/heads/master/frontend/public/branding/9router-v3-logo.png",
                  "name": "9Router",
                  "source": {
                    "image": "decolua/9router:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "20128"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/app/data"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "production"
                    },
                    "CLOUD_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://9router.com"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{MACHINE_ID_SALT}}"
                    },
                    "INITIAL_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_CLOUD_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://9router.com"
                    },
                    "OBSERVABILITY_ENABLED": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "902faadd-12e5-470a-ab71-8e4676bb2b82": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0"
}
