{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e73808a7-d2f9-45b6-bbcd-322cfe2b232a",
    "slug": "harnessrouter-2",
    "name": "HarnessRouter",
    "description": "Self-hosted API for Codex, Claude Code & OpenCode agents. Lean & tested",
    "url": "https://railway.com/deploy/harnessrouter-2",
    "upstream": {
      "image": "harnessrouter/harnessrouter:0.36.0@sha256:42223fddfb1dcad128d1943ab4f8306ec905eeaf282da64417c995d814af24d7"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "app",
      "source": {
        "image": "harnessrouter/harnessrouter:0.36.0@sha256:42223fddfb1dcad128d1943ab4f8306ec905eeaf282da64417c995d814af24d7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "app",
      "description": "Port Railway routes traffic and health checks to (keep it 3000, the console's port).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HR_BACKENDS",
      "service": "app",
      "description": "Agent CLIs installed into the volume on boot, comma-separated. Add more (e.g. gemini,hermes,pi) and redeploy; each uses disk.",
      "secret": false,
      "strategy": "default",
      "default": "claude,codex,opencode"
    },
    {
      "key": "HR_AUTH_USER",
      "service": "app",
      "description": "The console username you sign in with.",
      "secret": false,
      "strategy": "default",
      "default": "harnessrouter"
    },
    {
      "key": "HR_SECRET_KEY",
      "service": "app",
      "description": "Encrypts stored database connection strings, generated. Keep it unchanged across upgrades.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HR_AUTH_PASSWORD",
      "service": "app",
      "description": "The console password, generated. Copy it to sign in. A password changed on the Profile page overrides this.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "app",
      "description": "Room for the first boot, which installs the agent CLIs before the console listens.",
      "secret": false,
      "strategy": "default",
      "default": "600"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "harnessrouter-2"
      }
    },
    "cli": "railway deploy --template harnessrouter-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e73808a7-d2f9-45b6-bbcd-322cfe2b232a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e60eeeaa-cc02-45a8-a159-24dca9589080": {
                  "icon": null,
                  "name": "app",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/login",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "harnessrouter/harnessrouter:0.36.0@sha256:42223fddfb1dcad128d1943ab4f8306ec905eeaf282da64417c995d814af24d7"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic and health checks to (keep it 3000, the console's port).",
                      "defaultValue": "3000"
                    },
                    "HR_BACKENDS": {
                      "isOptional": false,
                      "description": "Agent CLIs installed into the volume on boot, comma-separated. Add more (e.g. gemini,hermes,pi) and redeploy; each uses disk.",
                      "defaultValue": "claude,codex,opencode"
                    },
                    "HR_AUTH_USER": {
                      "isOptional": false,
                      "description": "The console username you sign in with.",
                      "defaultValue": "harnessrouter"
                    },
                    "HR_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored database connection strings, generated. Keep it unchanged across upgrades.",
                      "defaultValue": "{{HR_SECRET_KEY}}"
                    },
                    "HR_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "The console password, generated. Copy it to sign in. A password changed on the Profile page overrides this.",
                      "defaultValue": "{{HR_AUTH_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Room for the first boot, which installs the agent CLIs before the console listens.",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "e60eeeaa-cc02-45a8-a159-24dca9589080": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "app",
      "method": "GET",
      "path": "/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-23T16:14:49.125Z",
  "generator_version": "0.1.0"
}
