{
  "manifest_version": "1.0.0",
  "template": {
    "id": "655c9629-8ea1-4fc9-be3c-1a478303066a",
    "slug": "9router-ai-gateway-aug26",
    "name": "9Router AI Gateway [Sep'26]",
    "description": "Self-hosted AI gateway for Claude Code, Cursor & 40+ LLM providers",
    "url": "https://railway.com/deploy/9router-ai-gateway-aug26",
    "upstream": {
      "image": "decolua/9router:0.5.55"
    }
  },
  "services": [
    {
      "name": "decolua/9router:0.5.55",
      "source": {
        "image": "decolua/9router:0.5.55"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "decolua/9router:0.5.55",
      "description": "Port the container listens on. The 9Router image binds 20128 — leave this as is.",
      "secret": false,
      "strategy": "default",
      "default": "20128"
    },
    {
      "key": "BASE_URL",
      "service": "decolua/9router:0.5.55",
      "description": "Public URL of this instance, used by 9Router's server-side sync jobs. Resolves to your Railway domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "decolua/9router:0.5.55",
      "description": "Where the SQLite database and its backups live. Must match the mounted volume path (/app/data).",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "JWT_SECRET",
      "service": "decolua/9router:0.5.55",
      "description": "Signing key for the dashboard session cookie. Generated fresh for your deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_KEY_SECRET",
      "service": "decolua/9router:0.5.55",
      "description": "HMAC secret for the API keys you issue from the dashboard. Generated fresh for your deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MACHINE_ID_SALT",
      "service": "decolua/9router:0.5.55",
      "description": "Salt used to hash machine IDs consistently. Generated fresh for your deployment.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REQUIRE_API_KEY",
      "service": "decolua/9router:0.5.55",
      "description": "Require a Bearer API key on /v1/* requests. Keep true: the endpoint is reachable from the public internet.",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "INITIAL_PASSWORD",
      "service": "decolua/9router:0.5.55",
      "description": "Password for your first dashboard login. Choose a strong one — it protects every provider key you add.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUTH_COOKIE_SECURE",
      "service": "decolua/9router:0.5.55",
      "description": "Marks the dashboard auth cookie Secure. Keep true — Railway serves this over HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_REQUEST_LOGS",
      "service": "decolua/9router:0.5.55",
      "description": "Write full request and response bodies to disk. Leave false unless you are debugging a routing problem.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_BASE_URL",
      "service": "decolua/9router:0.5.55",
      "description": "Base URL the dashboard front end calls. Resolves to your Railway domain; the upstream default points at localhost.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "9router-ai-gateway-aug26"
      }
    },
    "cli": "railway deploy --template 9router-ai-gateway-aug26",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "655c9629-8ea1-4fc9-be3c-1a478303066a",
            "serializedConfig": {
              "services": {
                "57f366c3-9cc9-4909-90a1-bd971c17a48e": {
                  "icon": "https://raw.githubusercontent.com/decolua/9router/master/public/favicon.svg",
                  "name": "decolua/9router:0.5.55",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "image": "decolua/9router:0.5.55"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port the container listens on. The 9Router image binds 20128 — leave this as is.",
                      "defaultValue": "20128"
                    },
                    "BASE_URL": {
                      "description": "Public URL of this instance, used by 9Router's server-side sync jobs. Resolves to your Railway domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "description": "Where the SQLite database and its backups live. Must match the mounted volume path (/app/data).",
                      "defaultValue": "/app/data"
                    },
                    "JWT_SECRET": {
                      "description": "Signing key for the dashboard session cookie. Generated fresh for your deployment.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_KEY_SECRET": {
                      "description": "HMAC secret for the API keys you issue from the dashboard. Generated fresh for your deployment.",
                      "defaultValue": "{{API_KEY_SECRET}}"
                    },
                    "MACHINE_ID_SALT": {
                      "description": "Salt used to hash machine IDs consistently. Generated fresh for your deployment.",
                      "defaultValue": "{{MACHINE_ID_SALT}}"
                    },
                    "REQUIRE_API_KEY": {
                      "description": "Require a Bearer API key on /v1/* requests. Keep true: the endpoint is reachable from the public internet.",
                      "defaultValue": "true"
                    },
                    "INITIAL_PASSWORD": {
                      "description": "Password for your first dashboard login. Choose a strong one — it protects every provider key you add.",
                      "defaultValue": "{{INITIAL_PASSWORD}}"
                    },
                    "AUTH_COOKIE_SECURE": {
                      "description": "Marks the dashboard auth cookie Secure. Keep true — Railway serves this over HTTPS.",
                      "defaultValue": "true"
                    },
                    "ENABLE_REQUEST_LOGS": {
                      "description": "Write full request and response bodies to disk. Leave false unless you are debugging a routing problem.",
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_BASE_URL": {
                      "description": "Base URL the dashboard front end calls. Resolves to your Railway domain; the upstream default points at localhost.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:20128": {
                        "port": 20128
                      }
                    }
                  },
                  "volumeMounts": {
                    "57f366c3-9cc9-4909-90a1-bd971c17a48e": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "decolua/9router:0.5.55",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-06T11:54:17.289Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-03T22:47:50.091Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_723ed76bb2f4418faaca",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 157
  }
}
