{
  "manifest_version": "1.0.0",
  "template": {
    "id": "64f72975-9665-4f02-ab62-5c3d16cc5d32",
    "slug": "9router",
    "name": "9Router",
    "description": "Self-hosted AI router for Claude, Gemini, Cursor & OpenAI tools.",
    "url": "https://railway.com/deploy/9router",
    "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": "Port used by the 9Router web application",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "BASE_URL",
      "service": "9router",
      "description": "Public URL used by the server-side application",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "9router",
      "description": "Directory used to store persistent application data",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "HOSTNAME",
      "service": "9router",
      "description": "Listen on all network interfaces inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "9router",
      "description": "Run 9Router in production mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "CLOUD_URL",
      "service": "9router",
      "description": "Official 9Router cloud service URL",
      "secret": false,
      "strategy": "default",
      "default": "https://9router.com"
    },
    {
      "key": "JWT_SECRET",
      "service": "9router",
      "description": "Secret used to sign and verify JWT authentication tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "9router",
      "description": "Secret used to secure and generate API credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MACHINE_ID_SALT",
      "service": "9router",
      "description": "Random salt used when generating machine-specific identifiers",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "9router",
      "description": "Optional initial password for the first application setup",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "9router",
      "description": "Public application URL exposed to the browser",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_CLOUD_URL",
      "service": "9router",
      "description": "Official 9Router cloud URL exposed to the frontend",
      "secret": false,
      "strategy": "default",
      "default": "https://9router.com"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "9router"
      }
    },
    "cli": "railway deploy --template 9router",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "64f72975-9665-4f02-ab62-5c3d16cc5d32",
            "serializedConfig": {
              "services": {
                "9cda5ab5-d78e-45cf-870e-2803f50ef02b": {
                  "icon": "https://i.imgur.com/yjb5HvR.png",
                  "name": "9router",
                  "deploy": {
                    "startCommand": "sh -c 'while true; do echo \"$(date) - Server is active\"; sleep 30; done & exec node server.js'"
                  },
                  "source": {
                    "image": "decolua/9router:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port used by the 9Router web application",
                      "defaultValue": "20128"
                    },
                    "BASE_URL": {
                      "description": "Public URL used by the server-side application",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "description": "Directory used to store persistent application data",
                      "defaultValue": "/app/data"
                    },
                    "HOSTNAME": {
                      "description": "Listen on all network interfaces inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "description": "Run 9Router in production mode",
                      "defaultValue": "production"
                    },
                    "CLOUD_URL": {
                      "description": "Official 9Router cloud service URL",
                      "defaultValue": "https://9router.com"
                    },
                    "JWT_SECRET": {
                      "description": "Secret used to sign and verify JWT authentication tokens",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "description": "Secret used to secure and generate API credentials",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "description": "Random salt used when generating machine-specific identifiers",
                      "defaultValue": "{{MACHINE_ID_SALT}}"
                    },
                    "INITIAL_PASSWORD": {
                      "description": "Optional initial password for the first application setup",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "description": "Public application URL exposed to the browser",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_CLOUD_URL": {
                      "description": "Official 9Router cloud URL exposed to the frontend",
                      "defaultValue": "https://9router.com"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "9cda5ab5-d78e-45cf-870e-2803f50ef02b": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T05:54:19.399Z",
  "generator_version": "0.1.0"
}
