{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3e1239fd-0f62-4889-9274-fed77f350da3",
    "slug": "harnessrouter-v038-api-for-coding-agents",
    "name": "HarnessRouter API for Coding Agents (Codex, Claude Code)",
    "description": "Self-hosted API and console for Codex, Claude Code, Hermes and Pi agents.",
    "url": "https://railway.com/deploy/harnessrouter-v038-api-for-coding-agents",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/harnessrouter-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "HarnessRouter",
      "source": {
        "repo": "https://github.com/baranberkay96/harnessrouter-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "HarnessRouter",
      "description": "Port of the HarnessRouter console (UI and API); the public domain and the healthcheck use it.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HR_BACKENDS",
      "service": "HarnessRouter",
      "description": "Agent harness CLIs installed into the volume at start (comma-separated). Each adds disk; see the README for the full list.",
      "secret": false,
      "strategy": "default",
      "default": "claude,codex,hermes,pi,dsh,opencode,qwen,gemini,cline,omp"
    },
    {
      "key": "HR_AUTH_USER",
      "service": "HarnessRouter",
      "description": "Console username. A username saved later under Profile replaces it.",
      "secret": false,
      "strategy": "default",
      "default": "harnessrouter"
    },
    {
      "key": "HR_SECRET_KEY",
      "service": "HarnessRouter",
      "description": "Encrypts stored provider keys and tokens on the volume. Generated; never change or delete it, or saved keys become unreadable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HR_AUTH_PASSWORD",
      "service": "HarnessRouter",
      "description": "Console password, generated at deploy; copy it from here to sign in. A password saved under Profile replaces it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "HR_WORKSPACE_TTL_HOURS",
      "service": "HarnessRouter",
      "description": "Idle session workspaces are removed after this many hours (they restore from checkpoints). 0 keeps them forever.",
      "secret": false,
      "strategy": "default",
      "default": "72"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "HarnessRouter",
      "description": "Grace period for the console, gateway and runner to stop cleanly on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "harnessrouter-v038-api-for-coding-agents"
      }
    },
    "cli": "railway deploy --template harnessrouter-v038-api-for-coding-agents",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3e1239fd-0f62-4889-9274-fed77f350da3",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d5b19fbb-87b5-560b-b835-c7b37cdc26fa": {
                  "icon": "https://cdn.jsdelivr.net/gh/HarnessRouter/harnessrouter@v0.38.2/ui/public/harnessrouter-logo.svg",
                  "name": "HarnessRouter",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/harness/v1/uhp",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 1200
                  },
                  "source": {
                    "repo": "baranberkay96/harnessrouter-railway",
                    "branch": "main",
                    "rootDirectory": "/services/harnessrouter"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the HarnessRouter console (UI and API); the public domain and the healthcheck use it.",
                      "defaultValue": "3000"
                    },
                    "HR_BACKENDS": {
                      "isOptional": true,
                      "description": "Agent harness CLIs installed into the volume at start (comma-separated). Each adds disk; see the README for the full list.",
                      "defaultValue": "claude,codex,hermes,pi,dsh,opencode,qwen,gemini,cline,omp"
                    },
                    "HR_AUTH_USER": {
                      "isOptional": true,
                      "description": "Console username. A username saved later under Profile replaces it.",
                      "defaultValue": "harnessrouter"
                    },
                    "HR_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Encrypts stored provider keys and tokens on the volume. Generated; never change or delete it, or saved keys become unreadable.",
                      "defaultValue": "{{HR_SECRET_KEY}}"
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional Google AI Studio API key, used as an environment connection (Gemini CLI and others).",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional OpenAI API key, used as an environment connection (Codex and others). Or add keys in the console.",
                      "defaultValue": ""
                    },
                    "HR_AUTH_PASSWORD": {
                      "isOptional": true,
                      "description": "Console password, generated at deploy; copy it from here to sign in. A password saved under Profile replaces it.",
                      "defaultValue": "{{HR_AUTH_PASSWORD}}"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional Anthropic API key, used as an environment connection (Claude Code and others). Or add keys in the console.",
                      "defaultValue": ""
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Optional OpenRouter API key, used as an environment connection after any direct vendor key.",
                      "defaultValue": ""
                    },
                    "HR_WORKSPACE_TTL_HOURS": {
                      "isOptional": true,
                      "description": "Idle session workspaces are removed after this many hours (they restore from checkpoints). 0 keeps them forever.",
                      "defaultValue": "72"
                    },
                    "HARNESS_GLOBAL_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Optional cap on agent turns running at once. Empty = the service CPU limit, between 2 and 4. Extra turns wait.",
                      "defaultValue": ""
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Grace period for the console, gateway and runner to stop cleanly on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "8b40837a-9966-51d1-8810-c881e49db7aa": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "HarnessRouter",
      "method": "GET",
      "path": "/api/harness/v1/uhp",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-11-11T04:15:11.344Z",
  "generator_version": "0.1.0"
}
